2048-Shooter/Game.tscn

205 lines
5.8 KiB
Plaintext
Raw Normal View History

2022-11-24 16:00:50 +01:00
[gd_scene load_steps=13 format=2]
[ext_resource path="res://box.png" type="Texture" id=1]
[ext_resource path="res://Slot.gd" type="Script" id=2]
[ext_resource path="res://Game.gd" type="Script" id=3]
[ext_resource path="res://Spawner.gd" type="Script" id=4]
[ext_resource path="res://retrowave.png" type="Texture" id=5]
[ext_resource path="res://Font/super-legend-boy-font/SuperLegendBoy-4w8Y.ttf" type="DynamicFontData" id=6]
[ext_resource path="res://Overlay.tscn" type="PackedScene" id=7]
[sub_resource type="TileSet" id=1]
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 288, 20 )
[sub_resource type="StyleBoxTexture" id=3]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 8, 8 )
[sub_resource type="StyleBoxTexture" id=2]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 8, 8 )
[sub_resource type="DynamicFont" id=5]
font_data = ExtResource( 6 )
[node name="Game" type="Node2D"]
script = ExtResource( 3 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 288, 592 )
scale = Vector2( 0.463768, 0.5 )
texture = ExtResource( 5 )
[node name="TileMap" type="TileMap" parent="."]
tile_set = SubResource( 1 )
format = 1
[node name="Panel" type="Panel" parent="."]
margin_top = 760.0
margin_right = 576.0
margin_bottom = 800.0
rect_min_size = Vector2( 575, 32 )
[node name="Area2D" type="Area2D" parent="Panel" groups=["Border"]]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Panel/Area2D"]
position = Vector2( 288, 20 )
shape = SubResource( 4 )
[node name="Spawner" type="GridContainer" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -128.0
margin_right = 575.0
custom_constants/hseparation = 21
columns = 4
[node name="Spawner 1" type="Panel" parent="Spawner"]
margin_right = 128.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
custom_styles/panel = SubResource( 3 )
script = ExtResource( 4 )
[node name="Spawner 2" type="Panel" parent="Spawner"]
margin_left = 149.0
margin_right = 277.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
custom_styles/panel = SubResource( 3 )
script = ExtResource( 4 )
[node name="Spawner 3" type="Panel" parent="Spawner"]
margin_left = 298.0
margin_right = 426.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
custom_styles/panel = SubResource( 3 )
script = ExtResource( 4 )
[node name="Spawner 4" type="Panel" parent="Spawner"]
margin_left = 447.0
margin_right = 575.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
custom_styles/panel = SubResource( 3 )
script = ExtResource( 4 )
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_top = 800.0
margin_right = 575.0
margin_bottom = 1200.0
[node name="PanzerSlots" type="GridContainer" parent="VBoxContainer"]
margin_right = 575.0
margin_bottom = 266.0
custom_constants/vseparation = 10
custom_constants/hseparation = 21
columns = 4
[node name="Slot 1" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_right = 128.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="Slot 2" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_left = 149.0
margin_right = 277.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="Slot 3" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_left = 298.0
margin_right = 426.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="Slot 4" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_left = 447.0
margin_right = 575.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="Slot 5" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_top = 138.0
margin_right = 128.0
margin_bottom = 266.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="Slot 6" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_left = 149.0
margin_top = 138.0
margin_right = 277.0
margin_bottom = 266.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="Slot 7" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_left = 298.0
margin_top = 138.0
margin_right = 426.0
margin_bottom = 266.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="Slot 8" type="Panel" parent="VBoxContainer/PanzerSlots"]
margin_left = 447.0
margin_top = 138.0
margin_right = 575.0
margin_bottom = 266.0
rect_min_size = Vector2( 128, 128 )
rect_pivot_offset = Vector2( 64, 64 )
custom_styles/panel = SubResource( 2 )
script = ExtResource( 2 )
[node name="ButtonGrid" type="GridContainer" parent="VBoxContainer"]
margin_top = 270.0
margin_right = 575.0
margin_bottom = 398.0
columns = 4
[node name="Speed" type="Button" parent="VBoxContainer/ButtonGrid"]
margin_right = 128.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
custom_fonts/font = SubResource( 5 )
text = "Speed"
[node name="Panzer" type="Button" parent="VBoxContainer/ButtonGrid"]
margin_left = 132.0
margin_right = 260.0
margin_bottom = 128.0
rect_min_size = Vector2( 128, 128 )
custom_fonts/font = SubResource( 5 )
text = "Panzer"
[node name="Control" parent="." instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 575.0
margin_bottom = 0.0
[connection signal="pressed" from="VBoxContainer/ButtonGrid/Speed" to="." method="_on_Speed_pressed"]
[connection signal="pressed" from="VBoxContainer/ButtonGrid/Panzer" to="." method="_on_Panzer_pressed"]