android - Game layout generator (no dead ends) -


i'm trying make first game using stencyl. game based on simple concept finding difficult generate levels.

this how game works, player stationary , able change lanes left , right, actual 'obstacles' (horizontal , vertical lines) moves down. need somehow generate these horizontal , vertical lines in way player never 'trapped' (i.e. 4 lanes never blocked off @ 1 time).

my initial idea create few different layouts (10-30) , spawn random layout off screen (top) moves down. problem is not efficient memory wise.

i thinking of creating sort of layout generator create , spawn possible layouts. open using different software/tools if need be. guidance appreciated. example of trying avoid

enter image description here


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -