This is a simple game just using up, down and z to shoot. Try to dodge the oncoming grey blocks while collecting the red for life and yellow for ammo.
You can shoot oncoming blocks but, beware, you may shoot a useful ammo or health block!
The closer the blocks get the more points you score - how close will you let them get?
This is a selection of easing functions to make the movement of objects more pleasing to the eye.
Simple call the function (I have included separate functions to save space) and pass four variables:
t = how far through the current movement you are
d = the total duration of the movement
b = where the movement starts
c = the final change in value at the end.
For example, if you want an object to move from y = 20 to y = 100 in 30 update loops you would set:
t = the count, starting at 0 and ending at 30
d = 30
b = 20
c = 80
You can get some great effects and it really helps make movement that little bit more realistic.
Have fun and let me know if it's useful!
Now updated with High Score table.
I also realised that I had left a debug setting switched on in 0.9 that made the player run unrealistically quickly!! This is much tougher to win now...
Old School button smasher!
Still need to get the high score table working properly, but it's not far off.
Any suggestions gratefully received!
If you are interested in adding orbits and gravity to your projects, here is a simple bare bones cart that might help. For a full explanation, check out my post here: http://gamedev.docrobs.co.uk/orbital-motion-in-pico-8
It's just a demo of the concept, so reboot the cart to see a different orbit.