add map02
This commit is contained in:
parent
35315e8278
commit
11b06c5b3a
4 changed files with 367 additions and 206 deletions
|
@ -256,5 +256,5 @@ shape = SubResource("RectangleShape2D_82iti")
|
|||
|
||||
[node name="scenery" type="TileMapLayer" parent="."]
|
||||
z_index = 20
|
||||
tile_map_data = PackedByteArray("AAAIAAAAAAAAAAAAABADAAEAAAAAAAAAAAAAAAMAAAACAAAAAAAFAP7/AAACAAAAAAACAP3/AAADAAAAAAD+//7/AAADAAAAAAD8/wQAAAADAAAAAAACAAkAAAADAAAAAAADAAcAAAADAAAAAAAFAAUAAAADAAAAAAD7/wMAAAADAAEAAAD5/wEAAAADAAEAAAD5/wIAAAACAAEAAAACAAMAAAACAAEAAAAHAP//AAACAAEAAAD2/wMAAAADAAEAAAD5/wYAAAADAAEAAAD//wcAAAACAAEAAAD0/wEAAAAAAAAAAAACAAsAAAAEAAAAAAAAAAsAAAAEAAAAAAABAAsAAAAAAAAAAAD//wwAAAAAAAAAAAD+/wsAAAAEAAAAAAD8/wwAAAAAAAAAAAD6/wsAAAAEAAAAAAD5/woAAAAAAAAAAAD2/wsAAAAEAAAAAAD1/wsAAAAAAAAAAAD3/wwAAAAAAAAAAAD5/w0AAAAAAAAAAAD6/wwAAAAAAAAAAAD9/w4AAAAAAAAAAAD8/w4AAAAAAAAAAAD//w0AAAAAAAAAAAD+/w0AAAAAAAAAAAABAA0AAAAAAAAAAAAAAA4AAAAAAAAAAAADAA0AAAAAAAAAAAAEAA0AAAAAAAAAAAADAAoAAAAAAAAAAAADAAsAAAAAAAAAAAAEAAoAAAAEAAAAAAAEAAsAAAAAAAAAAAAFAAkAAAAAAAAAAAAFAAoAAAAAAAAAAAAHAAoAAAAAAAAAAAAIAAgAAAAEAAAAAAAHAAgAAAAAAAAAAAAJAAkAAAAAAAAAAAAJAAoAAAAEAAAAAAALAAoAAAAAAAAAAAALAAgAAAAEAAAAAAANAAgAAAAAAAAAAAAHAAQAAAAEAAAAAAD8/wMAAAAEAAAAAAD1/wI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ALAAoAAAAAAAAAAAALAAgAAAAEAAAAAAANAAgAAAAAAAAAAAAHAAQAAAAEAAAAAAD8/wMAAAAEAAAAAAD1/wIAAAAEAAAAAAD2/wcAAAAEAAAAAAD2/wUAAAAAAAAAAAD0/wYAAAAAAAAAAAD+/wcAAAAGAAAAAAD+/wMAAAAGAAEAAAACAP7/AAAHAAAAAAAGAP//AAAHAAAAAAD3/wAAAAAHAAEAAAAEAP3/AAAHAAEAAAAMAAkAAAAHAAEAAAD//woAAAAHAAEAAAD7/wkAAAAHAAAAAAD3/wgAAAAHAAAAAAA=")
|
||||
tile_set = SubResource("TileSet_s6rw7")
|
||||
|
|
File diff suppressed because one or more lines are too long
256
scenes/map_template.tscn
Normal file
256
scenes/map_template.tscn
Normal file
|
@ -0,0 +1,256 @@
|
|||
[gd_scene load_steps=14 format=4 uid="uid://da1vjw0etwu82"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bu05e161cb61k" path="res://sprites/background/spritesheet_bg.png" id="1_c5sj7"]
|
||||
[ext_resource type="TileSet" uid="uid://beswbm12qkkxk" path="res://sprites/spritesheet_road/bg_road.tres" id="2_ckuy4"]
|
||||
[ext_resource type="TileSet" uid="uid://buu8w8n61kbxf" path="res://sprites/spritesheet_road/markings.tres" id="3_2xdfp"]
|
||||
[ext_resource type="TileSet" uid="uid://b15864hbqomim" path="res://sprites/spritesheet_road/road.tres" id="4_1kkkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://dpuhee0x5ekud" path="res://sprites/background/spritesheet_scenery.png" id="5_vxc2e"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_qbu02"]
|
||||
texture = ExtResource("1_c5sj7")
|
||||
texture_region_size = Vector2i(256, 256)
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_5knbn"]
|
||||
tile_size = Vector2i(256, 256)
|
||||
sources/1 = SubResource("TileSetAtlasSource_qbu02")
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_daqun"]
|
||||
size = Vector2(23, 222)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dltky"]
|
||||
size = Vector2(19, 108)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uys5r"]
|
||||
size = Vector2(20, 126)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_82iti"]
|
||||
size = Vector2(20, 231)
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_hclam"]
|
||||
texture = ExtResource("5_vxc2e")
|
||||
texture_region_size = Vector2i(128, 128)
|
||||
2:0/0 = 0
|
||||
3: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
|
||||
15:0/0 = 0
|
||||
2:1/0 = 0
|
||||
3: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
|
||||
15: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
|
||||
15: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
|
||||
15: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 = 0
|
||||
11:4/0 = 0
|
||||
12:4/0 = 0
|
||||
13:4/0 = 0
|
||||
14:4/0 = 0
|
||||
15:4/0 = 0
|
||||
0:5/0 = 0
|
||||
1:5/0 = 0
|
||||
2:5/0 = 0
|
||||
3:5/0 = 0
|
||||
4:5/0 = 0
|
||||
5:5/0 = 0
|
||||
6:5/0 = 0
|
||||
7:5/0 = 0
|
||||
8:5/0 = 0
|
||||
9:5/0 = 0
|
||||
10:5/0 = 0
|
||||
11:5/0 = 0
|
||||
12:5/0 = 0
|
||||
13:5/0 = 0
|
||||
14:5/0 = 0
|
||||
15:5/0 = 0
|
||||
0:6/0 = 0
|
||||
1:6/0 = 0
|
||||
2:6/0 = 0
|
||||
3:6/0 = 0
|
||||
4:6/0 = 0
|
||||
5:6/0 = 0
|
||||
6:6/0 = 0
|
||||
7:6/0 = 0
|
||||
8:6/0 = 0
|
||||
9:6/0 = 0
|
||||
10:6/0 = 0
|
||||
11:6/0 = 0
|
||||
12:6/0 = 0
|
||||
13:6/0 = 0
|
||||
14:6/0 = 0
|
||||
15:6/0 = 0
|
||||
0:7/0 = 0
|
||||
1:7/0 = 0
|
||||
2:7/0 = 0
|
||||
3:7/0 = 0
|
||||
4:7/0 = 0
|
||||
5:7/0 = 0
|
||||
6:7/0 = 0
|
||||
7:7/0 = 0
|
||||
8:7/0 = 0
|
||||
9:7/0 = 0
|
||||
10:7/0 = 0
|
||||
11:7/0 = 0
|
||||
12:7/0 = 0
|
||||
13:7/0 = 0
|
||||
14:7/0 = 0
|
||||
15:7/0 = 0
|
||||
0:0/size_in_atlas = Vector2i(2, 2)
|
||||
0:0/0 = 0
|
||||
4:0/size_in_atlas = Vector2i(2, 2)
|
||||
4:0/0 = 0
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_s6rw7"]
|
||||
tile_size = Vector2i(128, 128)
|
||||
sources/0 = SubResource("TileSetAtlasSource_hclam")
|
||||
|
||||
[node name="Map" type="Node"]
|
||||
|
||||
[node name="Background" type="TileMapLayer" parent="."]
|
||||
tile_set = SubResource("TileSet_5knbn")
|
||||
collision_enabled = false
|
||||
|
||||
[node name="road_bg" type="TileMapLayer" parent="."]
|
||||
tile_map_data = PackedByteArray("AAD/////AgAAAAAAAGD//wAAAgAAAAAAAFAAAP//AgAAAAAAAGAAAAAAAgAAAAAAAFABAP//AgAAAAAAAGABAAAAAgAAAAAAAFA=")
|
||||
tile_set = ExtResource("2_ckuy4")
|
||||
|
||||
[node name="road_bg2" type="TileMapLayer" parent="."]
|
||||
tile_set = ExtResource("2_ckuy4")
|
||||
|
||||
[node name="road_bg_fixes" type="TileMapLayer" parent="."]
|
||||
tile_set = ExtResource("2_ckuy4")
|
||||
|
||||
[node name="markings" type="TileMapLayer" parent="."]
|
||||
z_index = 1
|
||||
tile_map_data = PackedByteArray("AAAAAAAAAQAAAAAAAFAAAP//AQAAAAAAAHA=")
|
||||
tile_set = ExtResource("3_2xdfp")
|
||||
|
||||
[node name="road_r" type="TileMapLayer" parent="."]
|
||||
tile_map_data = PackedByteArray("AAD//wAAAgABAAAAAFAAAAAAAgABAAAAAFABAAAAAgABAAAAAFA=")
|
||||
tile_set = ExtResource("4_1kkkf")
|
||||
|
||||
[node name="road_l" type="TileMapLayer" parent="."]
|
||||
tile_map_data = PackedByteArray("AAABAP//AgABAAAAAHAAAP//AgABAAAAAHD/////AgABAAAAAHA=")
|
||||
tile_set = ExtResource("4_1kkkf")
|
||||
|
||||
[node name="area_finish" type="Area2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D_Fin" type="CollisionShape2D" parent="area_finish"]
|
||||
position = Vector2(89.5, -1)
|
||||
shape = SubResource("RectangleShape2D_daqun")
|
||||
|
||||
[node name="area_cp0" type="Area2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="area_cp0"]
|
||||
position = Vector2(138, -262)
|
||||
shape = SubResource("RectangleShape2D_dltky")
|
||||
|
||||
[node name="area_cp1" type="Area2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="area_cp1"]
|
||||
position = Vector2(249, -266)
|
||||
shape = SubResource("RectangleShape2D_uys5r")
|
||||
|
||||
[node name="area_cp2" type="Area2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="area_cp2"]
|
||||
position = Vector2(412, -275)
|
||||
shape = SubResource("RectangleShape2D_82iti")
|
||||
|
||||
[node name="scenery" type="TileMapLayer" parent="."]
|
||||
z_index = 20
|
||||
tile_set = SubResource("TileSet_s6rw7")
|
|
@ -30,7 +30,7 @@ func _ready() -> void:
|
|||
|
||||
#Load Map
|
||||
var checkpoints :Array[String]=[]
|
||||
var mapscene=load("res://scenes/map_01.tscn")
|
||||
var mapscene=load("res://scenes/map_02.tscn")
|
||||
var mapsceneinstance=mapscene.instantiate()
|
||||
add_child(mapsceneinstance)
|
||||
for mapc in mapsceneinstance.get_children():
|
||||
|
|
Loading…
Reference in a new issue