Created
May 10, 2020 07:35
-
-
Save RamiAwar/7baec0713087441a148510c12ea1ae2d to your computer and use it in GitHub Desktop.
Generating map upon space key pressed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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