Files
turnbasedstrategygame/Scenes/Unit/unit_base.tscn

32 lines
925 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://ct0rg5jelnb3x"]
[ext_resource type="Script" uid="uid://dm40sxvvnbdrn" path="res://Scenes/Main/player.gd" id="1_bo1wp"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_imbg2"]
size = Vector2(16, 16)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hfg1r"]
size = Vector2(32, 32)
[node name="BaseUnit" type="CharacterBody2D"]
motion_mode = 1
script = ExtResource("1_bo1wp")
unitData = {
"MoveRange": 10,
"MoveRangeV": Vector2(5, 5),
"MoveRangeVi": Vector2i(5, 5),
"Speed": 400.0
}
[node name="PathPrev" type="Line2D" parent="."]
top_level = true
width = 2.0
default_color = Color(0, 0.3372549, 0.3372549, 1)
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("PlaceholderTexture2D_imbg2")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(0.5, 0.5)
shape = SubResource("RectangleShape2D_hfg1r")