98 lines
3.6 KiB
Plaintext
98 lines
3.6 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://d05j5yuhlsxp0"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cywuuce71rmgb" path="res://Scenes/Map/map.tscn" id="1_1r6ip"]
|
|
[ext_resource type="Script" uid="uid://btdvxp8ckmeb3" path="res://Scenes/Main/main.gd" id="1_qw60k"]
|
|
[ext_resource type="Script" uid="uid://14cwbxcvt5dx" path="res://Scenes/Main/game_board.gd" id="4_5yls4"]
|
|
[ext_resource type="Resource" uid="uid://bpf7mj7w5kftq" path="res://Resource/Grid.tres" id="5_p6jpk"]
|
|
[ext_resource type="Script" uid="uid://dukn3yshfepum" path="res://Scenes/Main/grid_debug.gd" id="5_y3v7k"]
|
|
[ext_resource type="PackedScene" uid="uid://b1d6lktijxy3s" path="res://Scenes/Unit/move/unit.tscn" id="6_2a143"]
|
|
[ext_resource type="Script" uid="uid://cidjtc27oj1gn" path="res://Scenes/Main/cursor.gd" id="7_y3v7k"]
|
|
[ext_resource type="Script" uid="uid://dtme43jtijpok" path="res://Scenes/Main/grid_display.gd" id="8_y3v7k"]
|
|
[ext_resource type="Script" uid="uid://dm40sxvvnbdrn" path="res://Scenes/Main/player.gd" id="9_hryqi"]
|
|
|
|
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_y3v7k"]
|
|
|
|
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_imbg2"]
|
|
size = Vector2(16, 16)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hfg1r"]
|
|
size = Vector2(32, 32)
|
|
|
|
[node name="Main" type="Node"]
|
|
script = ExtResource("1_qw60k")
|
|
grid = ExtResource("5_p6jpk")
|
|
|
|
[node name="Map" parent="." instance=ExtResource("1_1r6ip")]
|
|
|
|
[node name="GameBoard" type="Node2D" parent="."]
|
|
script = ExtResource("4_5yls4")
|
|
grid = ExtResource("5_p6jpk")
|
|
|
|
[node name="GridDebug" type="Node2D" parent="GameBoard"]
|
|
script = ExtResource("5_y3v7k")
|
|
grid = ExtResource("5_p6jpk")
|
|
|
|
[node name="Unit" parent="GameBoard" instance=ExtResource("6_2a143")]
|
|
position = Vector2(400, 224)
|
|
grid = ExtResource("5_p6jpk")
|
|
|
|
[node name="Sprite2D" parent="GameBoard/Unit/PathFollow2D" index="1"]
|
|
texture = null
|
|
|
|
[node name="Cursor" type="Node2D" parent="GameBoard"]
|
|
position = Vector2(8, 8)
|
|
script = ExtResource("7_y3v7k")
|
|
grid = ExtResource("5_p6jpk")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="GameBoard/Cursor"]
|
|
position = Vector2(10, -10)
|
|
|
|
[node name="Timer" type="Timer" parent="GameBoard/Cursor"]
|
|
wait_time = 0.1
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(50, 50)
|
|
scale = Vector2(2, 2)
|
|
texture = SubResource("PlaceholderTexture2D_y3v7k")
|
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
|
|
|
[node name="GridDisplay" type="Control" parent="HUD"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
script = ExtResource("8_y3v7k")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="HUD/GridDisplay"]
|
|
layout_mode = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="HUD/GridDisplay/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="ShowGrid" type="CheckBox" parent="HUD/GridDisplay/MarginContainer/PanelContainer"]
|
|
layout_mode = 2
|
|
text = "Show Grid"
|
|
|
|
[node name="Player" type="CharacterBody2D" parent="."]
|
|
script = ExtResource("9_hryqi")
|
|
|
|
[node name="PathPrev" type="Line2D" parent="Player"]
|
|
top_level = true
|
|
width = 2.0
|
|
default_color = Color(0, 0.3372549, 0.3372549, 1)
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Player"]
|
|
texture = SubResource("PlaceholderTexture2D_imbg2")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
|
shape = SubResource("RectangleShape2D_hfg1r")
|
|
|
|
[connection signal="accept_pressed" from="GameBoard/Cursor" to="." method="get_cell_information"]
|
|
[connection signal="toggled" from="HUD/GridDisplay/MarginContainer/PanelContainer/ShowGrid" to="HUD/GridDisplay" method="toggle_grid_display"]
|
|
|
|
[editable path="GameBoard/Unit"]
|