So, it’s been years since I had a play around with some basic game programming and thanks to Codea I can now attempt it again during my free time (read, when im sat on the loo) and this is what I’ve got so far, I’d love some pointers from anyone that’s willing to throw in some suggestions on improving the code i have at the moment.
It’s an attempt at an arcade game i used to love to play called Lady Killer (this will be minus th naughtyness) at the moment, I’ve got the basic character animating with a joystick and button class and that’s about it. Code is here; https://gist.github.com/3176438
At the moment I’m planning on rewriting how the player is drawn to the screen, not overly keen on using Sprite and would rather use a spritemap (seen some handy posts on that lately), also the animation timing i know really sucks, i’ve just put a condition it that does the animation code every 5th redraw, im guessing i could use DeltaTime or something… I need to read up on that. And the joystick controls may need to be rewritten, it’s a bit of pain of making the diver walk faster, again need to have a look around and see the best way to do that.
Anyways, any suggestions on how to improve the code would be greatly appreciated.