Adding menu
This commit is contained in:
5
scripts/gui/menu.gd
Normal file
5
scripts/gui/menu.gd
Normal 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")
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user