jrheard / voke

a roguelite in clojurescript
MIT License
32 stars 2 forks source link

load levels and put the player in them #43

Open jrheard opened 7 years ago

jrheard commented 7 years ago

right now, my favorite algorithm for this is the cellular automata one. but it can have islands/subcaves, and we currently don't fill those in.

so, do these things in order:

  1. manually construct and save a particular 2d grid level
  2. pick a point on the level to put the player in
  3. turn the grid into a list of (e/wall) entities
  4. get the game running with the player in there
  5. implement a flood-fill system that fills in small subcaves
  6. write a function that picks a starting point for the player in empty space
  7. undo step 1, hook up random level generation to this system
jrheard commented 7 years ago

nah, let's do flood fill first