New unit base scene. This unit is able to be selected and moves along a path working together with the cursor.
This commit is contained in:
24
Scenes/Unit/unit_base.tscn
Normal file
24
Scenes/Unit/unit_base.tscn
Normal file
@@ -0,0 +1,24 @@
|
||||
[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"]
|
||||
script = ExtResource("1_bo1wp")
|
||||
currentCell = Vector2i(20, 20)
|
||||
|
||||
[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="."]
|
||||
shape = SubResource("RectangleShape2D_hfg1r")
|
||||
Reference in New Issue
Block a user