Log In  

Cart #sloperamp5-0 | 2022-05-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Simple code sample. [EDIT]: I really liked how Astorek86 is doing their slope / ramps code. So I'm changing these over to use that method.


Here is a version with some simply physics:

Cart #sloperamp_physics5-0 | 2022-05-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#54631 2018-08-03 02:30 ( Edited 2022-05-10 01:29)

This feels like my early Scratch games. :-)

P#54643 2018-08-03 12:02 ( Edited 2018-08-03 16:02)

Interesting. It should be possible to dedicate one color of the 16 to represent the edge that the game looks for to ensure the player is above the tiles beneath.

Years back when I made a platformer, I actually created an array map size of every vertical pixel of where the player should be ahead of time so no reading of pixels for the surface was needed afterwards.

This might be the best route to go unless you plan on pixel-removing bits and pieces of the terrain later.

P#54664 2018-08-03 22:19 ( Edited 2018-08-04 02:19)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-09-26 22:12:43 | 0.014s | Q:16