Game Logic

Hi!
I’m a beginner dev and I want some ideas from you about a game logic.

I want to develop an endless game.
My game will have some obstacles like climbs and rocks.
I searched a little and I found the obvious: Ski Safari.

What’s the best way to do these climbs?
With some level editor or just images randomed?

Thanks a lot! :wink:

PS.: Sorry if my english sucks :stuck_out_tongue:

Diego [import]uid: 136570 topic_id: 29008 reply_id: 329008[/import]

This tutorial might help you out: http://mobile.tutsplus.com/tutorials/corona/corona-sdk-create-a-side-scroller-from-scratch/

You could also use a level editor like Gumbo or LevelHelper. Corona is supposed to be coming out with an official one soon.

Cheers!

  • Mike [import]uid: 14700 topic_id: 29008 reply_id: 116781[/import]

You could look at generating your levels randomly, but using specific random seeds so that levels can be reproduced.

Set the random seed to a random number between say 1-100000, and while testing show this number on screen.

Program your game to place the rocks, climbs etc at random intervals, obviously with some rules to make sure they aren’t too close together/too far apart/on top of each other etc

If you like the level the game makes, note down the number and then stick all the levels you like in a table, calling the appropriate seed for each level.

This will enable you to generate the same random numbers from a given seed across all platforms:

http://developer.coronalabs.com/code/portable-seedable-random-number-generator

I try to design my games like this if I can, as I really haven’t got the patience to sit down in gumbo/levelhelper and put together a load of levels!

[import]uid: 93133 topic_id: 29008 reply_id: 116817[/import]

Thanks, man.
I’ll do something like you said.

When I’ll finish my game I’ll send you a message! :wink: [import]uid: 136570 topic_id: 29008 reply_id: 116827[/import]