Adding menu

This commit is contained in:
2024-09-01 16:19:47 +02:00
parent 510e96cde6
commit 67d7812205
3 changed files with 258 additions and 0 deletions

5
scripts/gui/menu.gd Normal file
View File

@@ -0,0 +1,5 @@
extends Control
func _input(event):
if event.is_action_pressed("plant"):
get_tree().change_scene_to_file("res://Game.tscn")

View File

@@ -171,6 +171,7 @@ func generate_noise() -> Noise:
noise.seed = randi()
noise.fractal_lacunarity = 1
noise.frequency = 0.005
noise.fractal_gain = 1000
return noise