Log In  
Follow
justgage
Follow

This is part of the code I wrote to make a "foolproof" physics engine (meaning there's no way for an object to pass through a block by going too fast). It uses mget to check if a tile is there or not which should be pretty fast although maybe not the fastest. This is based on the blog post by Towerfall creator Matt. Although there's missing features like moving solids and stuff it's inspired by it.

If you haven't read the blog post about this you should, it's quite insightful!

http://mattmakesgames.tumblr.com/post/127890619821/towerfall-physics

Cart #32831 | 2016-11-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Controls:

arrows, o to jump normally, x to fly really fast upwards to show that you won't pass through things
at extreme speeds.

Feel free to use this code.

P#32832 2016-11-30 01:34 ( Edited 2016-12-03 18:48)

Follow Lexaloffle:        
Generated 2021-09-22 02:42:35 | 0.061s | Q:8