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,8 +1,13 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://d05j5yuhlsxp0"]
|
||||
[gd_scene load_steps=9 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="PackedScene" uid="uid://bfvijh611aggp" path="res://Scenes/Camera/camera_controller.tscn" id="3_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="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="Texture2D" uid="uid://bckknh8k5fh1s" path="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tiles/tile_0448.png" id="8_hryqi"]
|
||||
|
||||
[node name="Main" type="Node"]
|
||||
script = ExtResource("1_qw60k")
|
||||
@@ -10,3 +15,24 @@ script = ExtResource("1_qw60k")
|
||||
[node name="Map" parent="." instance=ExtResource("1_1r6ip")]
|
||||
|
||||
[node name="CameraController" parent="." instance=ExtResource("3_qw60k")]
|
||||
grid = ExtResource("5_p6jpk")
|
||||
|
||||
[node name="GameBoard" type="Node2D" parent="."]
|
||||
script = ExtResource("4_5yls4")
|
||||
grid = ExtResource("5_p6jpk")
|
||||
|
||||
[node name="Unit" parent="GameBoard" instance=ExtResource("6_2a143")]
|
||||
grid = ExtResource("5_p6jpk")
|
||||
|
||||
[node name="Cursor" type="Node2D" parent="GameBoard"]
|
||||
script = ExtResource("7_y3v7k")
|
||||
grid = ExtResource("5_p6jpk")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="GameBoard/Cursor"]
|
||||
position = Vector2(10, -10)
|
||||
texture = ExtResource("8_hryqi")
|
||||
|
||||
[node name="Timer" type="Timer" parent="GameBoard/Cursor"]
|
||||
wait_time = 0.1
|
||||
|
||||
[editable path="CameraController"]
|
||||
|
||||
Reference in New Issue
Block a user