Thread: gravity allegro

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    2

    gravity allegro

    Hi everyone!
    i'm sorry for my bad english but i'm not a master in this language xD
    i'm a newbie in Allegro programming.
    how can i simulate gravity in an allegro game?
    how can i jump my pg?

    can you help me maybe with few lines of code?

    thx all!!

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Have you heard about physics?
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    2
    Quote Originally Posted by Sipher View Post
    Have you heard about physics?
    you are too kind

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Make your search a little less specific.
    https://encrypted.google.com/search?...vity+in+a+game

    The allegro bit is irrelevant, since the same code would be used if you were using OpenGL or DirectX
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Quote Originally Posted by nukecake View Post
    you are too kind
    Hehe, my bad. I guess my link was too generic...
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Gravity in game
    By Eman in forum Game Programming
    Replies: 17
    Last Post: 12-19-2010, 09:33 AM
  2. SDL gravity.
    By bijan311 in forum Tech Board
    Replies: 4
    Last Post: 06-02-2010, 08:08 PM
  3. antimatter and gravity
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-08-2003, 02:58 AM
  4. Gravity pong!
    By Nutshell in forum Game Programming
    Replies: 10
    Last Post: 04-25-2003, 08:52 AM
  5. Gravity? We don't need no steenking gravity!
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 22
    Last Post: 03-28-2002, 07:24 PM