One Ninja by sclark39

[raw]
made by sclark39 for LD28 (COMPO)
One Ninja, One Weapon, One Button, One Goal.

Use the mouse to control the ninja and collect all the targets.

Click above the ninja to use your grapple
Click to the left or the right of the ninja to make him run
Click on the ninja to give yourself time to think

Post your best times!

--

12-15-2013

I wish I had got a bit further. I'm definitely pleased with how the sounds and the sprites turned out. If I had more time, I'd turn this into a one-button stealth-assassin game.

This was designed primarily for tablets, as a one-button mouse-controlled game can do a passable job at representing that environment. This is the primary way the theme is integrated (you only get one button to control your ninja).

--

12-22-2013

I found an issue with playing this game on systems with graphics drivers that don't support VSYNC. I've uploaded a fixed version with an FPS limiter to address this. Both the original and current source are posted.

Please post any other game-breaking issues you encounter so I can look in to what's going on. :)

Ratings

Coolness 41% 1259
Overall 2.96 539
Audio 2.29 602
Fun 2.67 637
Graphics 2.59 665
Humor 2.27 482
Innovation 3.11 356
Mood 2.55 650
Theme 2.74 569

Feedback

馃帳 sclark39
16. Dec 2013 路 05:24 UTC
My best time 54.80
MarekkPie
16. Dec 2013 路 20:38 UTC
A bit tough on a touchpad ;)
馃帳 sclark39
16. Dec 2013 路 22:46 UTC
Haha I bet.
josefnpat
17. Dec 2013 路 08:02 UTC
Nice game! A bit tricky, but solid! Nice!
anapff
20. Dec 2013 路 01:16 UTC
Nice game! It's a bit tricky at first to get the hang of the grapple but after a bit I was taking little over 2 minutes at 8/9 (I was really really slow at first) but then somehow the application stopped working :( (maybe I spammed too many clicks on the blocks) Anyway, nice one!
TheWhiteLlama
20. Dec 2013 路 01:24 UTC
Yeah nice game! It's really challenging to get all those targets. Hold me some time playing it!
henrykun
21. Dec 2013 路 15:35 UTC
A little bit difficult but really nice idea. It could be a nice game for touchscreen devices :D. Well done!.
Photon
21. Dec 2013 路 19:04 UTC
Pretty nifty idea you have here! The grappling hook feels a little difficult to use though, maybe in particular because of its short length. Theme interpretation is a little weak as well in my opinion. But seriously, I still think this is a really cool concept; the mouse controls work pretty good!
馃帳 sclark39
21. Dec 2013 路 20:48 UTC
Just found out this game doesn't run so well on under-powered devices. It runs very slow while the ninja appears to run very fast. I think it would have been better if I had made the theme a bit more evident in my messaging as well. The use of the theme in this is really just that it is a one-button game==the rest of the ways I intended to integrate the theme I just didn't have time to complete. Thanks for your comments, all.
jonask
21. Dec 2013 路 21:06 UTC
A bit hard to manouver. Reminds me of Worms :)
wezrule
21. Dec 2013 路 21:35 UTC
Pretty fun and challenging, good job :D
GFM
21. Dec 2013 路 23:46 UTC
No audio played... :(

This is an interesting idea, making a game about hitting stuff the fastest you can while being a ninja! But I'm of the opinion that you shouldn't use the mouse like that. XD

I can see the "one button" part of your interpretation of the theme, but this really made the game a lot harder than it needed to be for me. Something as simple as the y position of the mouse deciding what your action is made me use wrong actions many times (mostly, I would throw the grapple when I just wanted to move right/left).
In a touch device, I can totally see this working (using one finger in each position/moving "instantly" from one touch to the other), but not with a mouse...

Though that's just my opinion, and I'm not really a fan of action games that have the mouse as it's sole input.

Good work, nonetheless! =D

P.S.: just read your comment bellow. Some of my problems were probably because my computer sucks... XD
(It's a single core AMD Athlon 64 bits 1.6 GHz... that's more than "under-powered" XD)
馃帳 sclark39
22. Dec 2013 路 04:36 UTC
Yup, that was exactly my intent (designed for a tablet). There is also a bug whereby clicking to the left of your guy should always make you turn around, but something is getting stomped when the hook gets thrown so it doesn't work. :(

I got a local build running better on this laptop but it still doesn't feel quite right and I really don't understand why it's screwing up like this. Seems like a bug with love2d itself and mobile gpus.
馃帳 sclark39
22. Dec 2013 路 05:24 UTC
I figured out what the problem is with crappy machines... If the driver/screen doesn't support vsync it effectively tries to run the game loop at 300 fps which makes some stuff move really fast (the ninja's feet), while the actual update loop which is capped to only run 60 times a second ends up getting starved out by the draws... so for crappy machines I need to add a FPS limiter. Fun stuff. I'll try to get a version up tomorrow to fix this issue.
GFM
22. Dec 2013 路 15:56 UTC
I'm running a Windows 7 Home Premium, with a AMD Athlon Processor TF-20 (1.6 GHz), 3 GB of RAM and a ATI Radeon HD3200 graphic card.

I tried playing your game again and kind of figure out the problem with the audio...
I turned up the volume (always try to avoid trivial errors XD) and run your game. The sounds played fine, which I found strange... Then, I closed it and tried to run again but, this time, no sounds played.
Seems like a bug that keeps resources from being freed. (my guess)
If I remember it right, when I first played your game I tried moving (I usually try to play, at first, without reading anything about the game... =X) but the character just took a step and stopped. When I understood the controls (kinda), I restarted the game to reset the timer. That's probably why I didn't notice the sounds at first and then I didn't hear it.

I took a quickly look at you code and something that may help to cap the draw rate problem is to set a flag when the ninja is updated (main.lua:166) and only draw if that flag is set (clearing it afterward). Even if the draw function is called, you can probably avoid it running whenever the world wasn't updated. :)
(I don't have any idea how the lua main loop works, so I may be wrong. XD


Now, replying your comment on my game. (your idea was great... it really worked well!)

The theme was only implemented on the ending... "You can only save one of them". The main problem with this approach (other than being weak, imo) is that some people might not see it... Well, this was on my calculations. XD
About the sprite bug, it also happens with the sparkle, but I'm not sure why... I'll have to look into that later! (the ladders was laziness, and low priority on that, of my part =X)

Thanks a lot! =D
I have another game I want to do now (my first idea for this LD), but I'll definitely come back to this game sometime later!!
馃帳 sclark39
22. Dec 2013 路 19:13 UTC
Fixed version uploaded, main description updated. This should resolve issues with "mobility" type gfx cards.
GFM
22. Dec 2013 路 23:30 UTC
It runs a lot better now! :)
And I started to get used to the controllers. It's indeed really fun! =D
(but still think that it would be better on a touch device XD)

Was able to get a time of 40.42
archaeometrician
25. Dec 2013 路 00:59 UTC
Nice game, cool mechanic with the hook !
archaeometrician
25. Dec 2013 路 01:01 UTC
Nice game, cool mechanic with the hook ! I didn't had any trouble running the game and I have a really slow laptop, good work with the fix ;) Your game is quite challenging ;)
mmickyman
27. Dec 2013 路 21:30 UTC
Challenging. Seems at first that the range of the grapple is short, then you understand a bit more how that work and it feels better.