Author Topic: Physics in C  (Read 2388 times)

0 Members and 1 Guest are viewing this topic.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Physics in C
« 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.
I like milk.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Physics in C
« Reply #1 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
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline PierrotLL

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +2/-0
    • View Profile
Re: Physics in C
« Reply #2 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 :

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.