add tileset

This commit is contained in:
Fabien Freling 2022-09-02 22:41:40 +02:00
parent cd1cc3d91e
commit 64ba67156e
8 changed files with 305 additions and 0 deletions

199
assets/kenney_mappack.tres Normal file
View file

@ -0,0 +1,199 @@
[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://dg2xg5fdqo38r"]
[ext_resource type="Texture2D" uid="uid://b6q2ia3kcm0t2" path="res://assets/mappack/Tilesheet/mapPack_tilesheet.png" id="1_ae7bl"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_26cho"]
texture = ExtResource("1_ae7bl")
texture_region_size = Vector2i(64, 64)
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
3:0/0 = 0
4:0/0 = 0
5:0/0 = 0
6:0/0 = 0
7:0/0 = 0
8:0/0 = 0
9:0/0 = 0
10:0/0 = 0
11:0/0 = 0
12:0/0 = 0
13:0/0 = 0
14:0/0 = 0
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
3:1/0 = 0
4:1/0 = 0
5:1/0 = 0
6:1/0 = 0
7:1/0 = 0
8:1/0 = 0
9:1/0 = 0
10:1/0 = 0
11:1/0 = 0
12:1/0 = 0
13:1/0 = 0
14:1/0 = 0
0:2/0 = 0
1:2/0 = 0
2:2/0 = 0
3:2/0 = 0
4:2/0 = 0
5:2/0 = 0
6:2/0 = 0
7:2/0 = 0
8:2/0 = 0
9:2/0 = 0
10:2/0 = 0
11:2/0 = 0
12:2/0 = 0
13:2/0 = 0
14:2/0 = 0
0:3/0 = 0
1:3/0 = 0
2:3/0 = 0
3:3/0 = 0
4:3/0 = 0
5:3/0 = 0
6:3/0 = 0
7:3/0 = 0
8:3/0 = 0
9:3/0 = 0
10:3/0 = 0
11:3/0 = 0
12:3/0 = 0
13:3/0 = 0
14:3/0 = 0
0:4/0 = 0
1:4/0 = 0
2:4/0 = 0
3:4/0 = 0
4:4/0 = 0
5:4/0 = 0
6:4/0 = 0
7:4/0 = 0
8:4/0 = 0
9:4/0 = 0
10:4/0 = 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9/0 = 0
12:8/0 = 0
13:8/0 = 0
14:8/0 = 0
15:8/0 = 0
16:8/0 = 0
16:9/0 = 0
15:9/0 = 0
15:10/0 = 0
16:10/0 = 0
16:11/0 = 0
15:11/0 = 0
14:11/0 = 0
13:11/0 = 0
12:11/0 = 0
[resource]
tile_size = Vector2i(64, 64)
sources/1 = SubResource("TileSetAtlasSource_26cho")

View file

@ -0,0 +1,21 @@
Map Pack
by Kenney Vleugels (Kenney.nl)
------------------------------
License (Creative Commons Zero, CC0)
http://creativecommons.org/publicdomain/zero/1.0/
You may use these assets in personal and commercial projects.
Credit (Kenney or www.kenney.nl) would be nice but is not mandatory.
------------------------------
Donate: http://support.kenney.nl
Request: http://request.kenney.nl
Follow on Twitter for updates:
@KenneyWings

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b6q2ia3kcm0t2"
path="res://.godot/imported/mapPack_tilesheet.png-ce8144ce1d7e9cd7d6c07ea2e5f59e47.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/mappack/Tilesheet/mapPack_tilesheet.png"
dest_files=["res://.godot/imported/mapPack_tilesheet.png-ce8144ce1d7e9cd7d6c07ea2e5f59e47.ctex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dh2d6j8f1kscn"
path="res://.godot/imported/mapPack_tilesheet_2X.png-7ad9ea08e2847613493c6bfeb0b5e3b4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/mappack/Tilesheet/mapPack_tilesheet_2X.png"
dest_files=["res://.godot/imported/mapPack_tilesheet_2X.png-7ad9ea08e2847613493c6bfeb0b5e3b4.ctex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
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

11
level.tscn Normal file
View file

@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://m8iev565gm8w"]
[ext_resource type="TileSet" uid="uid://dg2xg5fdqo38r" path="res://assets/kenney_mappack.tres" id="1_vehx1"]
[node name="Node2d" type="Node2D"]
[node name="TileMap" type="TileMap" parent="."]
tile_set = ExtResource("1_vehx1")
cell_quadrant_size = 64
format = 2
layer_0/tile_data = PackedInt32Array(0, 327681, 0, 1, 393217, 0, 2, 393217, 0, 3, 393217, 0, 4, 458753, 0, 65536, 327681, 1, 131072, 327681, 1, 196608, 327681, 2, 196609, 393217, 2, 196610, 393217, 2, 196611, 393217, 2, 196612, 458753, 2, 65540, 458753, 1, 131076, 458753, 1, 65537, 393217, 1, 65538, 393217, 1, 65539, 393217, 1, 131075, 393217, 1, 131074, 393217, 1, 131073, 393217, 1)

View file

@ -11,5 +11,11 @@ config_version=5
[application]
config/name="Space Explo"
run/main_scene="res://level.tscn"
config/features=PackedStringArray("4.0", "Vulkan Clustered")
config/icon="res://icon.svg"
[display]
window/size/viewport_width=480
window/size/viewport_height=270