mirror of
https://github.com/Yadciel1/2048-Shooter.git
synced 2024-11-08 23:21:22 +01:00
13394479bd
Slots can update, other scaling
184 lines
5.5 KiB
Plaintext
184 lines
5.5 KiB
Plaintext
[gd_scene load_steps=15 format=2]
|
|
|
|
[ext_resource path="res://retrowave.png" type="Texture" id=1]
|
|
[ext_resource path="res://Objects/Overlay.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://Main Scenes/Game.gd" type="Script" id=3]
|
|
[ext_resource path="res://Objects/Slot.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://Objects/Spawner.gd" type="Script" id=5]
|
|
[ext_resource path="res://Font/super-legend-boy-font/SuperLegendBoy-4w8Y.ttf" type="DynamicFontData" id=6]
|
|
[ext_resource path="res://box.png" type="Texture" id=7]
|
|
[ext_resource path="res://Objects/PanzerButton.tscn" type="PackedScene" id=8]
|
|
|
|
[sub_resource type="TileSet" id=1]
|
|
|
|
[sub_resource type="RectangleShape2D" id=4]
|
|
extents = Vector2( 288, 20 )
|
|
|
|
[sub_resource type="StyleBoxTexture" id=3]
|
|
texture = ExtResource( 7 )
|
|
region_rect = Rect2( 0, 0, 8, 8 )
|
|
|
|
[sub_resource type="DynamicFont" id=5]
|
|
font_data = ExtResource( 6 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=6]
|
|
extents = Vector2( 288, 64 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=7]
|
|
extents = Vector2( 287, 88 )
|
|
|
|
[node name="Game" type="Node2D"]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Background" type="Sprite" parent="."]
|
|
position = Vector2( 288, 592 )
|
|
scale = Vector2( 0.463768, 0.5 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[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="LifeBar" type="ProgressBar" parent="Panel/Area2D"]
|
|
margin_right = 576.0
|
|
margin_bottom = 40.0
|
|
|
|
[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" groups=["Spawner"]]
|
|
margin_right = 128.0
|
|
margin_bottom = 128.0
|
|
rect_min_size = Vector2( 128, 128 )
|
|
custom_styles/panel = SubResource( 3 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="Spawner 2" type="Panel" parent="Spawner" groups=["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( 5 )
|
|
|
|
[node name="Spawner 3" type="Panel" parent="Spawner" groups=["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( 5 )
|
|
|
|
[node name="Spawner 4" type="Panel" parent="Spawner" groups=["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( 5 )
|
|
|
|
[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" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
|
|
[node name="Slot 2" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
margin_left = 149.0
|
|
margin_right = 277.0
|
|
|
|
[node name="Slot 3" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
margin_left = 298.0
|
|
margin_right = 426.0
|
|
|
|
[node name="Slot 4" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
margin_left = 447.0
|
|
margin_right = 575.0
|
|
|
|
[node name="Slot 5" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
margin_top = 138.0
|
|
margin_bottom = 266.0
|
|
|
|
[node name="Slot 6" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
margin_left = 149.0
|
|
margin_top = 138.0
|
|
margin_right = 277.0
|
|
margin_bottom = 266.0
|
|
|
|
[node name="Slot 7" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
margin_left = 298.0
|
|
margin_top = 138.0
|
|
margin_right = 426.0
|
|
margin_bottom = 266.0
|
|
|
|
[node name="Slot 8" parent="VBoxContainer/PanzerSlots" instance=ExtResource( 4 )]
|
|
margin_left = 447.0
|
|
margin_top = 138.0
|
|
margin_right = 575.0
|
|
margin_bottom = 266.0
|
|
|
|
[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 )
|
|
disabled = true
|
|
text = "Speed"
|
|
|
|
[node name="Panzer" parent="VBoxContainer/ButtonGrid" instance=ExtResource( 8 )]
|
|
disabled = true
|
|
|
|
[node name="Overlay" parent="." instance=ExtResource( 2 )]
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 575.0
|
|
margin_bottom = 0.0
|
|
|
|
[node name="Bullet_Grave" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Bullet_Grave"]
|
|
position = Vector2( 288, -16 )
|
|
shape = SubResource( 6 )
|
|
|
|
[node name="CheckSpawnSpeed" type="Area2D" parent="."]
|
|
position = Vector2( 288, 145 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CheckSpawnSpeed"]
|
|
position = Vector2( 0, 42 )
|
|
shape = SubResource( 7 )
|
|
|
|
[connection signal="pressed" from="VBoxContainer/ButtonGrid/Speed" to="." method="_on_Speed_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/ButtonGrid/Panzer" to="." method="_on_Panzer_pressed"]
|
|
[connection signal="area_entered" from="Bullet_Grave" to="." method="_on_Bullet_Grave_area_entered"]
|