Trying new stuff with the camera and grid. I want to be able to move a unit but there is a problem with the grid at the moment. I am now trying to implement a new way of handling the camera, maybe then I can move on to moving units...
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=92 format=3 uid="uid://dy7rltpxyqyw7"]
|
||||
[gd_scene load_steps=93 format=3 uid="uid://dy7rltpxyqyw7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dpu6c0bpm0dvl" path="res://Scenes/Unit/unit.gd" id="1_15sed"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgvyfsuri6vmx" path="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png" id="1_hgpyh"]
|
||||
[ext_resource type="Resource" uid="uid://bpf7mj7w5kftq" path="res://Resource/Grid.tres" id="2_jbdwb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bprproedmlhtr" path="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tiles/tile_0168.png" id="3_ladk0"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7ra2w7rdeqij" path="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tiles/tile_0169.png" id="4_iuf4a"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxtkb8rqq0j6r" path="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tiles/tile_0407.png" id="5_ulevp"]
|
||||
@@ -628,6 +629,7 @@ size = Vector2(16, 16)
|
||||
[node name="Unit" type="Node2D"]
|
||||
texture_filter = 1
|
||||
script = ExtResource("1_15sed")
|
||||
grid = ExtResource("2_jbdwb")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_7f253")
|
||||
@@ -653,5 +655,9 @@ texture = ExtResource("5_ulevp")
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("RectangleShape2D_15sed")
|
||||
|
||||
[node name="Path2D" type="Path2D" parent="."]
|
||||
|
||||
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
|
||||
|
||||
[connection signal="mouse_entered" from="Area2D" to="." method="_markUnit"]
|
||||
[connection signal="mouse_exited" from="Area2D" to="." method="_unMarkUnit"]
|
||||
|
||||
Reference in New Issue
Block a user