Heck yeah, you punch those trees, Gary!
This commit is contained in:
BIN
terrain/dirt.png
Normal file
BIN
terrain/dirt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 934 B |
34
terrain/dirt.png.import
Normal file
34
terrain/dirt.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c5lr861cmya6r"
|
||||
path="res://.godot/imported/dirt.png-4b2e3b8f4083fb0baf8bb6a15680a151.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://terrain/dirt.png"
|
||||
dest_files=["res://.godot/imported/dirt.png-4b2e3b8f4083fb0baf8bb6a15680a151.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
|
||||
BIN
terrain/grass.png
Normal file
BIN
terrain/grass.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
34
terrain/grass.png.import
Normal file
34
terrain/grass.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bavfwcsgof0tp"
|
||||
path="res://.godot/imported/grass.png-a4e0c50e89c55d70401dc2d88d40db84.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://terrain/grass.png"
|
||||
dest_files=["res://.godot/imported/grass.png-a4e0c50e89c55d70401dc2d88d40db84.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
|
||||
9
terrain/terrain.gd
Normal file
9
terrain/terrain.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
extends TileMapLayer
|
||||
|
||||
var dirt_id = 0
|
||||
var grass_id = 1
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.is_pressed():
|
||||
var coords: Vector2i = local_to_map(event.position)
|
||||
set_cell(coords, dirt_id, Vector2i.ZERO, 0)
|
||||
1
terrain/terrain.gd.uid
Normal file
1
terrain/terrain.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cmgxx7uxo2ah0
|
||||
19
terrain/terrain_tileset.tres
Normal file
19
terrain/terrain_tileset.tres
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_resource type="TileSet" load_steps=5 format=3 uid="uid://resk8tvqugsx"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c5lr861cmya6r" path="res://terrain/dirt.png" id="1_m2li2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bavfwcsgof0tp" path="res://terrain/grass.png" id="2_54oqm"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_busfd"]
|
||||
texture = ExtResource("1_m2li2")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_wkw05"]
|
||||
texture = ExtResource("2_54oqm")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
|
||||
[resource]
|
||||
tile_size = Vector2i(32, 32)
|
||||
sources/0 = SubResource("TileSetAtlasSource_busfd")
|
||||
sources/1 = SubResource("TileSetAtlasSource_wkw05")
|
||||
Reference in New Issue
Block a user