The Daily Click ::. Forums ::. Klik Coding Help ::. Automatically created level?
 

Post Reply  Post Oekaki 
 

Posted By Message

Aruthaz

Forsaken Protector

Registered
  24/06/2011
Points
  76
22nd October, 2011 at 19:30:25 -

I was thinking for a while, but I could not figure it out... how did Anders make the level in http://www.create-games.com/download.asp?id=8336 infinite and progressively harder? I have a few ideas for games that could be built off of this kind of level. If anyone has any ideas or knows how to do this please respond.

 
-----------------------------------------
Death is the only cure for madness such as his, even that solace escapes him.
iOS App -> http://itunes.apple.com/us/app/jimmy-dungeon-escape!/id467193691?ls=1&mt=8

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
22nd October, 2011 at 23:45:22 -

There two real approaches- one is called "Procedural Generation". Thats when the terrain is generated through a function which gives the same effect every time, but gives a fairly random looking result. An example might be, every 50 frames, he generates a new piece of terrain, picked by the function X^34 % 393

The other way to do it is to simply randomly pick pieces to throw in. Maybe every 50 frames, it just does a random(10) and spawns one of 10 terrain pieces for each area. As the game goes on, you can decrease the offset, perhaps having it at random, to make it harder

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
   

Post Reply



 



Advertisement

Worth A Click