✨ Miner tile
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
@@ -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="."]
|
||||
|
BIN
Scenes/Tiles/MinerTile.png
Normal file
BIN
Scenes/Tiles/MinerTile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 438 KiB |
34
Scenes/Tiles/MinerTile.png.import
Normal file
34
Scenes/Tiles/MinerTile.png.import
Normal file
@@ -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
|
17
Scenes/Tiles/MinerTile.tscn
Normal file
17
Scenes/Tiles/MinerTile.tscn
Normal file
@@ -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")
|
@@ -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;
|
||||
|
8
Scripts/Tiles/MinerTile.cs
Normal file
8
Scripts/Tiles/MinerTile.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Godot;
|
||||
|
||||
namespace AceFieldNewHorizon.Scripts.Tiles;
|
||||
|
||||
public partial class MinerTile : BaseTile
|
||||
{
|
||||
|
||||
}
|
1
Scripts/Tiles/MinerTile.cs.uid
Normal file
1
Scripts/Tiles/MinerTile.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dyubkyqtpcg3a
|
Reference in New Issue
Block a user