gravity allegro

This is a discussion on gravity allegro within the Game Programming forums, part of the General Programming Boards category; Hi everyone! i'm sorry for my bad english but i'm not a master in this language xD i'm a newbie ...

  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
    1,625
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,752
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    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, 09:08 PM
  3. antimatter and gravity
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-08-2003, 03:58 AM
  4. Gravity pong!
    By Nutshell in forum Game Programming
    Replies: 10
    Last Post: 04-25-2003, 09: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21