Log In  



Cart [#puzozbuso-0#] | Code | 2019-01-26 | License: CC4-BY-NC-SA | Embed

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)

Cart [#zuguzufayi-0#] | Code | 2018-12-09 | License: CC4-BY-NC-SA | Embed

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)

Cart [#58411#] | Code | 2018-10-25 | License: CC4-BY-NC-SA | Embed

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)

Cart [#58210#] | Code | 2018-10-21 | License: CC4-BY-NC-SA | Embed

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

Full instructions in the comments.

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)

Cart [#58523#] | Code | 2018-10-29 | License: CC4-BY-NC-SA | Embed

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#] | Code | 2018-02-28 | License: CC4-BY-NC-SA | Embed

Old School button smasher!

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

Any suggestions gratefully received!

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

Cart [#49773#] | Code | 2018-02-28 | License: CC4-BY-NC-SA | Embed

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)

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-06-20 01:37 | 0.175s | 4194k | Q:82