Skip to content

Instantly share code, notes, and snippets.

@RamiAwar
Created May 10, 2020 07:35
Show Gist options
  • Save RamiAwar/7baec0713087441a148510c12ea1ae2d to your computer and use it in GitHub Desktop.
Save RamiAwar/7baec0713087441a148510c12ea1ae2d to your computer and use it in GitHub Desktop.
Generating map upon space key pressed
func _input(event):
if Input.is_key_pressed(KEY_SPACE):
_init_grid()
_clear_tilemaps()
_create_random_path()
_spawn_tiles()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment