Jump to content

Reversed: a puzzle platformer demo in less than 13 KB


mvasilkov
 Share

Recommended Posts

Hi guys,

 

Check out my little demo! ^_^

 

post-820-0-97478700-1442698637.png

 

It was written for the js13k compo, and quite coincidentally the code isn't pretty (but still available online, FWIW).

 

Everything is mostly procedural, apart from the player character and levels, which are hardcoded.

 

In case you're brave (or bored) enough to actually read the messy source code, the only interesting-ish part there is the collision detection. It works by building a parallelogram from character's current position to the next (projected) position, and then intersects that parallelogram (instead of the hitbox) with the floor. This basically means that no matter how far the character goes between frames (given a very high speed, a very low framerate, or both), it will never fall through the floor.

 

Please tell me what you think.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...