Follow
DocRobs
 2
[ :: Read More :: ]

Cart #puzozbuso-0 | 2019-01-26 | Code ▽ | License: CC4-BY-NC-SA
2

This is a quick version of snake that used tables for most of the code. I will be doing a YouTube video on tables pretty soon and this code will be useful for anyone following it.

P#61227 2019-01-26 10:08 ( Edited 2019-01-26 10:09)

 5
[ :: Read More :: ]

Cart #zuguzufayi-0 | 2018-12-09 | Code ▽ | License: CC4-BY-NC-SA
5

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?

P#59853 2018-12-09 10:00 ( Edited 2018-12-09 10:00)

 19
[ :: Read More :: ]

Cart #58411 | 2018-10-25 | Code ▽ | License: CC4-BY-NC-SA
19

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!

P#58412 2018-10-25 13:02 ( Edited 2018-10-26 10:30)

 18
[ :: Read More :: ]

Cart #58210 | 2018-10-21 | Code ▽ | License: CC4-BY-NC-SA
18

This is a lightweight particle system that can be used to simulate most particle systems.

Feel free to use it in your projects, but let me know if you do - I'd love to know if it's useful!

P#58211 2018-10-21 10:14 ( Edited 2018-10-23 17:52)

 6
[ :: Read More :: ]

Cart #58523 | 2018-10-29 | Code ▽ | License: CC4-BY-NC-SA
6

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...

Cart #49784 | 2018-02-28 | Code ▽ | License: CC4-BY-NC-SA
6

Old School button smasher!

Still need to get the high score table working properly, but it's not far off.

P#49785 2018-02-28 12:41 ( Edited 2018-10-30 00:12)

 5
[ :: Read More :: ]

Cart #49773 | 2018-02-28 | Code ▽ | License: CC4-BY-NC-SA
5

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.

P#49774 2018-02-28 08:20 ( Edited 2018-02-28 17:25)