Enemy
This commit is contained in:
12
scenes/Main/main.gd
Normal file
12
scenes/Main/main.gd
Normal file
@ -0,0 +1,12 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
|
||||
func _on_quit_pressed() -> void:
|
||||
get_tree().quit()
|
||||
|
||||
|
||||
|
||||
func _on_play_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://scenes/Game/world.tscn")
|
||||
|
36
scenes/Main/main.tscn
Normal file
36
scenes/Main/main.tscn
Normal file
@ -0,0 +1,36 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dj6mfxvovjlr8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/Main/main.gd" id="1_yctla"]
|
||||
[ext_resource type="Texture2D" uid="uid://dh0b1ghx4jn8s" path="res://assets/Sunny Land Collection Files/Sunny Land Collection Files/Assets/Environments/Colorful Environment/Preview.png" id="2_0hl46"]
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
script = ExtResource("1_yctla")
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
[node name="Preview" type="Sprite2D" parent="ParallaxBackground"]
|
||||
position = Vector2(576.5, 323)
|
||||
scale = Vector2(4.48828, 3.65909)
|
||||
texture = ExtResource("2_0hl46")
|
||||
|
||||
[node name="Play" type="Button" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 138.0
|
||||
offset_top = 183.0
|
||||
offset_right = 356.0
|
||||
offset_bottom = 282.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Play"
|
||||
|
||||
[node name="Quit" type="Button" parent="."]
|
||||
offset_left = 790.0
|
||||
offset_top = 444.0
|
||||
offset_right = 1026.0
|
||||
offset_bottom = 559.0
|
||||
text = "Quit"
|
||||
|
||||
[connection signal="pressed" from="Play" to="." method="_on_play_pressed"]
|
||||
[connection signal="pressed" from="Quit" to="." method="_on_quit_pressed"]
|
Reference in New Issue
Block a user