Switchable tiles

This commit is contained in:
2025-08-28 02:15:19 +08:00
parent 6d91d4efb8
commit 19f7243101
7 changed files with 20 additions and 12 deletions

View File

@@ -23,3 +23,4 @@ offset_left = -27.0
offset_top = -27.0
offset_right = 27.0
offset_bottom = 27.0
metadata/_edit_use_anchors_ = true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 KiB

After

Width:  |  Height:  |  Size: 506 KiB

View File

@@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bn80thu20eaia"
uid="uid://bt6xmcgrbb078"
path="res://.godot/imported/MinerTile.png-a6c5eba73cdda5685afda8ced0234fec.ctex"
metadata={
"vram_texture": false

View File

@@ -1,12 +1,13 @@
[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"]
[ext_resource type="Texture2D" uid="uid://bt6xmcgrbb078" 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"]
scale = Vector2(3, 3)
script = ExtResource("1_mecoy")
TileId = "miner"