2D random terrain generator - help needed

Hi,

I am a very new developer with little experience, but have been enjoying reading and coding along with the tutorials. I’m interested in making a game with a 2D random terrain generator (with hills, mountains, etc.) but am having a bit of trouble on where to start.

I’ve found a lot of information on Perlin Noise algorithms (sadly not in LUA, only Java or C++) that can be used for generating 2D terrain, but it looks very complex. I’m willing to give it a shot, but if someone has something similar that I can reverse-engineer that would be good. I guess the closest thing I can think of would be a similar generator to iShoot. Not sure if this matters, but the game I’m producing will be Landscape mode only.

If anyone has any other methods aside from Perlin noise I’m all ears :).

Also, I would like to have “destructible” terrain - I did some searching on the forums and from what I can see this isn’t possible with LUA without a lot of work and killing FPS. Can anyone confirm this?

Any help/advice would be much appreciated. [import]uid: 153752 topic_id: 27067 reply_id: 327067[/import]

may we use pre-made graphic and show them randomly on screen?

something like this? http://divmob.com/940-math-runner.html [import]uid: 91892 topic_id: 27067 reply_id: 109907[/import]

Not sure I understood your reply - I’m not looking to make random images on screen but have a terrain generator create random terrain.

I’ve been doing more reading and it seems like destructible terrain is not a likely feature in Corona - can anyone please confirm? [import]uid: 153752 topic_id: 27067 reply_id: 109911[/import]

generating terrain is making some images and show them on screen, so you can pre-made them by using graphic editor, then show them on screen. Sure that it is not cool as generating on the fly. [import]uid: 91892 topic_id: 27067 reply_id: 109913[/import]

Thanks for you input - I suppose I can make 30 or 40 presets to make it seemingly indistinguishable from being randomly generated, which is what I may actually do. A major part of my game depends on whether or not I can make part of the terrain destructible though. As far as similar types of generators, I think scorched earth comes the closest to the type of terrain generator and destructible terrain. [import]uid: 153752 topic_id: 27067 reply_id: 109917[/import]

Sorry the double post, but I just was wondering - can I use LUA for the majority of my game and code the random terrain generator and destructible environments in C++? [import]uid: 153752 topic_id: 27067 reply_id: 109947[/import]

Corona: No
Gideros (http://www.giderosmobile.com/): Yes, but I am not sure in your case. [import]uid: 91892 topic_id: 27067 reply_id: 109951[/import]