how do you program infinite levels , like canabalt

Discussion in 'Public Game Developers Forum' started by Krehol Games, Nov 19, 2010.

  1. Krehol Games

    Krehol Games Well-Known Member

    Iam trying to figure out in C langauge an easy way to make infinite levels like in canabalt . I have done some myself but never comes out nearly as smooth .
  2. Kalimba

    Kalimba Member

    Apr 3, 2009
    Infinite levels is a game design concept, and has nothing to do with the language in which you're writing code. :confused:
  3. goldglover411

    goldglover411 Well-Known Member

    Apr 11, 2009
    ipod touch game reviewer
    i think he is asking how to code for a random never ending game mode, where secotion are generated randomly
  4. Tanzerine

    Tanzerine Member

    Nov 9, 2010
    You could have a certain number of segments, and generate a random number that corresponds with each segment...
  5. NickFalk

    NickFalk Well-Known Member

    What Tanzerine said...

    Plus: You could have some segments being more likely to be chosen than others. You would also possibly want to keep track of the last couple of segments used, so that you don't have the same one appearing next to each other...

Share This Page