diff --git a/Data/Buildings.json b/Data/Buildings.json index dda5e12..eaf2d99 100644 --- a/Data/Buildings.json +++ b/Data/Buildings.json @@ -1,5 +1,4 @@ { "wall": "res://Scenes/Tiles/WallTile.tscn", - "farm": "res://Scenes/Tiles/FarmTile.tscn", - "tower": "res://Scenes/Tiles/TowerTile.tscn" + "miner": "res://Scenes/Tiles/MinerTile.tscn" } diff --git a/Scenes/Entities/Player.tscn b/Scenes/Entities/Player.tscn index 6ac8ad7..06932c0 100644 --- a/Scenes/Entities/Player.tscn +++ b/Scenes/Entities/Player.tscn @@ -7,11 +7,13 @@ script = ExtResource("1_08t41") [node name="Sprite2D" type="Sprite2D" parent="."] +rotation = 1.5708 scale = Vector2(0.1, 0.1) texture = ExtResource("1_ucweq") [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] position = Vector2(1, 2.5) +rotation = 1.5708 polygon = PackedVector2Array(54, 87.5, 62, 76.5, 7, -89.5, -1, -92.5, -10, -89.5, -64, 76.5, -55, 87.5) [node name="Camera2D" type="Camera2D" parent="."] diff --git a/Scenes/Tiles/MinerTile.png b/Scenes/Tiles/MinerTile.png new file mode 100644 index 0000000..475f585 Binary files /dev/null and b/Scenes/Tiles/MinerTile.png differ diff --git a/Scenes/Tiles/MinerTile.png.import b/Scenes/Tiles/MinerTile.png.import new file mode 100644 index 0000000..25cf464 --- /dev/null +++ b/Scenes/Tiles/MinerTile.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bn80thu20eaia" +path="res://.godot/imported/MinerTile.png-a6c5eba73cdda5685afda8ced0234fec.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Scenes/Tiles/MinerTile.png" +dest_files=["res://.godot/imported/MinerTile.png-a6c5eba73cdda5685afda8ced0234fec.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/Scenes/Tiles/MinerTile.tscn b/Scenes/Tiles/MinerTile.tscn new file mode 100644 index 0000000..f848936 --- /dev/null +++ b/Scenes/Tiles/MinerTile.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=4 format=3 uid="uid://cbu81slklwq3u"] + +[ext_resource type="Script" uid="uid://dyubkyqtpcg3a" path="res://Scripts/Tiles/MinerTile.cs" id="1_mecoy"] +[ext_resource type="Texture2D" uid="uid://bn80thu20eaia" path="res://Scenes/Tiles/MinerTile.png" id="2_mecoy"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_8o613"] +size = Vector2(54, 54) + +[node name="MinerTile" type="StaticBody2D"] +script = ExtResource("1_mecoy") + +[node name="Sprite2D" type="Sprite2D" parent="."] +scale = Vector2(0.1, 0.1) +texture = ExtResource("2_mecoy") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource("RectangleShape2D_8o613") diff --git a/Scripts/System/PlacementManager.cs b/Scripts/System/PlacementManager.cs index d58b27d..2cfd773 100644 --- a/Scripts/System/PlacementManager.cs +++ b/Scripts/System/PlacementManager.cs @@ -8,7 +8,7 @@ public partial class PlacementManager : Node2D [Export] public GridManager Grid { get; set; } [Export] public BuildingRegistry Registry { get; set; } - private string _currentBuildingId = "wall"; + private string _currentBuildingId = "miner"; private Vector2I _hoveredCell; private BaseTile _ghostBuilding; diff --git a/Scripts/Tiles/MinerTile.cs b/Scripts/Tiles/MinerTile.cs new file mode 100644 index 0000000..adb7f99 --- /dev/null +++ b/Scripts/Tiles/MinerTile.cs @@ -0,0 +1,8 @@ +using Godot; + +namespace AceFieldNewHorizon.Scripts.Tiles; + +public partial class MinerTile : BaseTile +{ + +} diff --git a/Scripts/Tiles/MinerTile.cs.uid b/Scripts/Tiles/MinerTile.cs.uid new file mode 100644 index 0000000..122d412 --- /dev/null +++ b/Scripts/Tiles/MinerTile.cs.uid @@ -0,0 +1 @@ +uid://dyubkyqtpcg3a