1

I'm trying to make my very first game using Stencyl. The game is based on a very simple concept but I am finding it difficult to generate the levels.

This is how the game works, the player is stationary and is able to change lanes to the left and right, the actual 'obstacles' (horizontal and vertical lines) moves down. I need to somehow generate these horizontal and vertical lines in a way that the player is never 'trapped' (i.e. all four lanes are NEVER blocked off at any one time).

My initial idea was to create a few different layouts (10-30) and spawn a random layout off screen (top) which then moves down. The problem with this is that it is not very efficient memory wise.

I am thinking of creating some sort of layout generator that will create and spawn possible layouts. I am open to using different software/tools if need be. Any guidance would be appreciated. Example of what I am trying to avoid

enter image description here

  • With "no dead ends", do you mean "no unreachable parts"? Because the example has a dead end at the upper left corner. – m69's been on strike for years Jul 25 '16 at 20:22
  • Sorry for not explaining it very clearly. The player is stationary and the vertical and horizontal lines are moving down (at the same speed), the player has to move between lanes avoid the dead ends (horizontal lines). The map generator has to avoid creating dead ends on all 4 lanes at any one time so that the player isn't trapped. Does this make more sense? – Mustafa Nuur Jul 25 '16 at 23:58
  • You can edit the question to include this information. – m69's been on strike for years Jul 26 '16 at 00:08

0 Answers0