Omnimaga

Calculator Community => Casio Calculators => Topic started by: Spenceboy98 on April 27, 2012, 07:28:55 pm

Title: Physics in C
Post by: Spenceboy98 on April 27, 2012, 07:28:55 pm
Does anyone know how to do physics in Prizm C? I think I wanna try to make a platformer game.
Title: Re: Physics in C
Post by: ruler501 on April 27, 2012, 07:54:10 pm
If you found a light C library for physics you could probably use that. I'd think it would be the same since they use a version of gcc to ompile it
Title: Re: Physics in C
Post by: PierrotLL on April 28, 2012, 04:56:47 am
In a lot of game, the map is a table where each cell contains a tile. Some of them are solids, others not.
Example in Mario, each block is a tile :
(http://www.saltgames.com/wp-content/uploads/2010/01/NES_Super_Mario_Bros.gif)
Mario is as wide as the tiles, so he can to be on 2 tiles at the time. So you have to check these 2 tiles under him to know if Mario can fall down.