You too
This commit is contained in:
parent
827abde68f
commit
30aad69fff
17 changed files with 677 additions and 0 deletions
1
scenes/MainMenu.gd
Normal file
1
scenes/MainMenu.gd
Normal file
|
|
@ -0,0 +1 @@
|
|||
extends Control
|
||||
11
scenes/MainMenu.tscn
Normal file
11
scenes/MainMenu.tscn
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/MainMenu.gd" type="Script" id=1]
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
22
scenes/TestScene.tscn
Normal file
22
scenes/TestScene.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://objects/ships/Disky.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://objects/ships/Quills.tscn" type="PackedScene" id=2]
|
||||
|
||||
[sub_resource type="GDScript" id=1]
|
||||
script/source = "extends Node2D
|
||||
|
||||
func _process(delta):
|
||||
if Input.is_action_just_pressed(\"debug_reset\"):
|
||||
get_tree().change_scene(\"res://scenes/TestScene.tscn\")
|
||||
"
|
||||
|
||||
[node name="TestScene" type="Node2D"]
|
||||
script = SubResource( 1 )
|
||||
|
||||
[node name="Quills" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 106.783, 173.39 )
|
||||
player_number = "player_2"
|
||||
|
||||
[node name="Disky" parent="." instance=ExtResource( 1 )]
|
||||
position = Vector2( 210.244, 143.66 )
|
||||
Loading…
Add table
Add a link
Reference in a new issue