✨ Add more tiles
This commit is contained in:
@@ -19,5 +19,29 @@
|
||||
"buildTime": 3.0,
|
||||
"allowedRotations": [0],
|
||||
"layer": 1
|
||||
},
|
||||
"ground": {
|
||||
"scene": "res://Scenes/Tiles/GroundTile.tscn",
|
||||
"cost": {},
|
||||
"durability": 200,
|
||||
"buildTime": 0.0,
|
||||
"allowedRotations": [0],
|
||||
"layer": 0
|
||||
},
|
||||
"stone": {
|
||||
"scene": "res://Scenes/Tiles/StoneTile.tscn",
|
||||
"cost": {},
|
||||
"durability": 200,
|
||||
"buildTime": 0.0,
|
||||
"allowedRotations": [0],
|
||||
"layer": 0
|
||||
},
|
||||
"stone_iron": {
|
||||
"scene": "res://Scenes/Tiles/StoneIronTile.tscn",
|
||||
"cost": {},
|
||||
"durability": 200,
|
||||
"buildTime": 0.0,
|
||||
"allowedRotations": [0],
|
||||
"layer": 0
|
||||
}
|
||||
}
|
||||
|
@@ -19,5 +19,4 @@ Grid = NodePath("../GridSystem")
|
||||
Registry = NodePath("../BuildingRegistry")
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("3_oss8w")]
|
||||
position = Vector2(602, 324)
|
||||
scale = Vector2(0.35, 0.35)
|
||||
|
BIN
Scenes/Tiles/GroundTile.png
Normal file
BIN
Scenes/Tiles/GroundTile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 486 KiB |
34
Scenes/Tiles/GroundTile.png.import
Normal file
34
Scenes/Tiles/GroundTile.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cww1edmqcmb8b"
|
||||
path="res://.godot/imported/GroundTile.png-b193d222fbf869e7606f01318fb918f7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/Tiles/GroundTile.png"
|
||||
dest_files=["res://.godot/imported/GroundTile.png-b193d222fbf869e7606f01318fb918f7.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
|
23
Scenes/Tiles/GroundTile.tscn
Normal file
23
Scenes/Tiles/GroundTile.tscn
Normal file
@@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://7735luf8htft"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dh0jdeplrigxu" path="res://Scripts/Tiles/GroundTile.cs" id="1_mqsaf"]
|
||||
[ext_resource type="Texture2D" uid="uid://cww1edmqcmb8b" path="res://Scenes/Tiles/GroundTile.png" id="2_tow7r"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8o613"]
|
||||
size = Vector2(54, 54)
|
||||
|
||||
[node name="GroundTile" type="StaticBody2D"]
|
||||
script = ExtResource("1_mqsaf")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("2_tow7r")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_8o613")
|
||||
|
||||
[node name="ProgressOverlay" type="ColorRect" parent="."]
|
||||
offset_left = -27.0
|
||||
offset_top = -27.0
|
||||
offset_right = 27.0
|
||||
offset_bottom = 27.0
|
BIN
Scenes/Tiles/StoneIronTile.png
Normal file
BIN
Scenes/Tiles/StoneIronTile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 474 KiB |
34
Scenes/Tiles/StoneIronTile.png.import
Normal file
34
Scenes/Tiles/StoneIronTile.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c3qdue55e6blv"
|
||||
path="res://.godot/imported/StoneIronTile.png-a3d6be6bb8b8b8a0f32242e23f1c00ca.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/Tiles/StoneIronTile.png"
|
||||
dest_files=["res://.godot/imported/StoneIronTile.png-a3d6be6bb8b8b8a0f32242e23f1c00ca.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
|
23
Scenes/Tiles/StoneIronTile.tscn
Normal file
23
Scenes/Tiles/StoneIronTile.tscn
Normal file
@@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dnkcl5ucmip40"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dh0jdeplrigxu" path="res://Scripts/Tiles/GroundTile.cs" id="1_ewklp"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3qdue55e6blv" path="res://Scenes/Tiles/StoneIronTile.png" id="2_ewklp"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8o613"]
|
||||
size = Vector2(54, 54)
|
||||
|
||||
[node name="StoneIronTile" type="StaticBody2D"]
|
||||
script = ExtResource("1_ewklp")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("2_ewklp")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_8o613")
|
||||
|
||||
[node name="ProgressOverlay" type="ColorRect" parent="."]
|
||||
offset_left = -27.0
|
||||
offset_top = -27.0
|
||||
offset_right = 27.0
|
||||
offset_bottom = 27.0
|
BIN
Scenes/Tiles/StoneTile.png
Normal file
BIN
Scenes/Tiles/StoneTile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 590 KiB |
34
Scenes/Tiles/StoneTile.png.import
Normal file
34
Scenes/Tiles/StoneTile.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ca0qwr6hngho2"
|
||||
path="res://.godot/imported/StoneTile.png-20e063912018fbf7fd000e734fc2097f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/Tiles/StoneTile.png"
|
||||
dest_files=["res://.godot/imported/StoneTile.png-20e063912018fbf7fd000e734fc2097f.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
|
23
Scenes/Tiles/StoneTile.tscn
Normal file
23
Scenes/Tiles/StoneTile.tscn
Normal file
@@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bafvcatjix3mx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dh0jdeplrigxu" path="res://Scripts/Tiles/GroundTile.cs" id="1_rndy8"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca0qwr6hngho2" path="res://Scenes/Tiles/StoneTile.png" id="2_rndy8"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8o613"]
|
||||
size = Vector2(54, 54)
|
||||
|
||||
[node name="StoneTile" type="StaticBody2D"]
|
||||
script = ExtResource("1_rndy8")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("2_rndy8")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_8o613")
|
||||
|
||||
[node name="ProgressOverlay" type="ColorRect" parent="."]
|
||||
offset_left = -27.0
|
||||
offset_top = -27.0
|
||||
offset_right = 27.0
|
||||
offset_bottom = 27.0
|
8
Scripts/Tiles/GroundTile.cs
Normal file
8
Scripts/Tiles/GroundTile.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Godot;
|
||||
|
||||
namespace AceFieldNewHorizon.Scripts.Tiles;
|
||||
|
||||
public partial class GroundTile : BaseTile
|
||||
{
|
||||
|
||||
}
|
1
Scripts/Tiles/GroundTile.cs.uid
Normal file
1
Scripts/Tiles/GroundTile.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dh0jdeplrigxu
|
Reference in New Issue
Block a user