Log In  

Cart #eniplatformsample-0 | 2019-11-01 | Code ▽ | Embed ▽ | No License

Made a sample platformer, mostly to show how to do things like collisions, camera, jump buffering, and slopes. I wrote this to be clear rather than to save tokens, and it has no real gameplay to keep the core of the engine as clear as possible.

The code for this cart can also be found on github and is MIT licensed.


  • Movement and jumping
  • Collision checking and resolution
  • Jump buffering
  • Slopes
  • Platforming camera
P#69543 2019-11-01 03:09 ( Edited 2019-11-01 03:31)

Your camera is good. The ability to not track the vertical camera until the player has landed on an upper or lower solid surface is the right way to do it.

You might add a 45-degree angle slope where the player slides down with gravity.

P#69546 2019-11-01 04:48

This is a great reference. Code is really readable which is key.

Also had never thought about the camera tracking thing - something else learned!

P#69627 2019-11-04 00:17

The platforming camera is a really neat effect.

P#71738 2020-01-03 23:47

iT'S paC-MAn

P#75501 2020-04-27 19:55


P#75536 2020-04-28 06:57

Like it

P#75540 2020-04-28 07:34

[Please log in to post a comment]