create new map

This commit is contained in:
interfisch 2024-11-03 22:37:15 +01:00
parent b90473b305
commit 603358adee
14 changed files with 164 additions and 127 deletions

View file

@ -1,9 +1,9 @@
[gd_scene load_steps=9 format=4 uid="uid://e20v1l8vde20"]
[gd_scene load_steps=7 format=4 uid="uid://dghq8c8asg7h1"]
[ext_resource type="Texture2D" uid="uid://ca1tdkrek7wyi" path="res://sprites/Spritesheets/spritesheet_tiles.png" id="1_smdvj"]
[ext_resource type="Texture2D" uid="uid://b2v5npg0c34q7" path="res://sprites/spritesheet_road/spritesheet_road.png" id="2_pnjff"]
[ext_resource type="TileSet" uid="uid://dqj1nt8840fpl" path="res://sprites/spritesheet_road/spritesheet_marker.tres" id="3_daoba"]
[ext_resource type="TileSet" uid="uid://8x633p7ilv1h" path="res://sprites/spritesheet_road/spritesheet_road.tres" id="4_wejeu"]
[ext_resource type="TileSet" uid="uid://beswbm12qkkxk" path="res://sprites/spritesheet_road/bg_road.tres" id="2_i1338"]
[ext_resource type="TileSet" uid="uid://buu8w8n61kbxf" path="res://sprites/spritesheet_road/markings.tres" id="3_ktygs"]
[ext_resource type="TileSet" uid="uid://b15864hbqomim" path="res://sprites/spritesheet_road/road.tres" id="4_r58io"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_tvddu"]
texture = ExtResource("1_smdvj")
@ -325,28 +325,7 @@ texture_region_size = Vector2i(128, 128)
tile_size = Vector2i(128, 128)
sources/0 = SubResource("TileSetAtlasSource_tvddu")
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_5wrcn"]
texture = ExtResource("2_pnjff")
texture_region_size = Vector2i(128, 128)
0:0/0 = 0
2:0/0 = 0
4:0/0 = 0
6:0/0 = 0
1:1/0 = 0
3:1/0 = 0
4:1/0 = 0
6:1/0 = 0
0:2/0 = 0
3:2/0 = 0
5:2/0 = 0
7:2/0 = 0
1:3/0 = 0
[sub_resource type="TileSet" id="TileSet_golfy"]
tile_size = Vector2i(128, 128)
sources/2 = SubResource("TileSetAtlasSource_5wrcn")
[node name="Map01" type="Node"]
[node name="Map" type="Node"]
[node name="Background" type="TileMapLayer" parent="."]
visible = false
@ -355,13 +334,22 @@ tile_set = SubResource("TileSet_5knbn")
collision_enabled = false
[node name="road_bg" type="TileMapLayer" parent="."]
tile_map_data = PackedByteArray("AAD//wAAAgAAAAAAAFAAAAAAAgAAAAAAAFABAAAAAgAAAAAAAFACAAAAAgAAAAAAAFD/////AgAAAAAAAHAAAP//AgAAAAAAAHABAP//AgAAAAAAAHACAP//AgAAAAAAAHAEAP//AgACAAAAAAAFAP7/AgAEAAAAAAADAAAAAgAEAAAAAAADAP//AgAAAAAAAHAEAAAAAgAAAAAAACAEAAEAAgAAAAAAACADAAEAAgAAAAAAADAFAAEAAgAAAAAAADAFAAAAAgAAAAAAADAFAP//AgAAAAAAADAGAP//AgAAAAAAACAGAAAAAgAAAAAAACAGAAEAAgAAAAAAACAGAAIAAgAAAAAAACADAAIAAgAAAAAAADAEAP7/AgAAAAAAAFADAP7/AgAAAAAAAFACAP7/AgAAAAAAAFACAP3/AgAAAAAAAHADAP3/AgAAAAAAAHAEAP3/AgAAAAAAAHAGAP3/AgABAAEAAAAGAP7/AgAGAAAAAAAFAP3/AgAGAAAAAHAEAAIAAgAEAAAAADAFAAIAAgAEAAAAAFAGAAMAAgACAAAAACADAAMAAgACAAAAAEAEAAMAAgAAAAAAAFAFAAMAAgAAAAAAAFABAP3/AgAEAAAAADABAPz/AgAEAAAAAGAHAPz/AgAEAAAAAAAIAPz/AgAEAAAAADAAAP7/AgABAAEAADAAAPv/AgABAAEAAGAHAP7/AgABAAEAADAIAPv/AgACAAAAAAABAPv/AgAGAAAAAGABAP7/AgAGAAAAAEAAAP3/AgAGAAAAADAAAPz/AgAGAAAAABAHAP3/AgAGAAAAADAIAP7/AgAGAAAAAEAHAPv/AgAAAAAAAGAGAPv/AgAAAAAAAGAFAPv/AgAAAAAAAGAEAPv/AgAAAAAAAGADAPv/AgAAAAAAAGACAPv/AgAAAA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UAAAABAAEAAHAAAAYAAgACAAAAAGABAAYAAAADAAMAAGABAAcAAAACAAMAAGACAAIAAgACAAAAAFACAAEAAgACAAAAAAABAAEAAgAEAAAAAAABAAIAAgAEAAAAAFA=")
tile_set = ExtResource("2_i1338")
[node name="road_overlay" type="TileMapLayer" parent="."]
tile_map_data = PackedByteArray("AAAAAAAAAAAEAAMAAFAAAP//AAAEAAMAAHA=")
tile_set = ExtResource("3_daoba")
[node name="road_bg2" type="TileMapLayer" parent="."]
tile_map_data = PackedByteArray("AAD4/wEAAgABAAIAAAD5/wAAAgABAAIAAEAAAAgAAAAAAAIAAFD//wkAAAABAAMAAFAHAAIAAAAAAAIAAFAGAAMAAAABAAMAAFAHAAEAAAABAAMAAAAGAAAAAAAAAAIAAAD4/wgAAAAAAAIAADD3/wcAAAABAAMAADD6/wYAAAAAAAIAADD5/wUAAAABAAMAADAFAAEAAAABAAEAAEAEAAAAAAAAAAAAAEAEAAEAAAABAAAAAED+/wMAAAACAAMAADD+/wQAAAACAAIAADD9/wMAAAADAAMAADAAAAQAAgABAAEAAGD//wQAAgABAAEAAFABAAQAAgABAAEAAFACAAQAAgABAAEAAFAEAAIAAgAHAAIAAGD3/wQAAgAHAAIAADD3/wIAAgAHAAIAADD6////AgAHAAIAAGD5/wMAAgAHAAIAADD7/wEAAgAHAAIAAGD8/wEAAgABAAEAAGD8/wYAAgAHAAIAAFD6/wMAAgAHAAIAAAD7/wQAAAACAAMAADD7/wUAAAACAAIAADD6/wQAAAADAAMAADD9/wYAAgABAAEAAFD+/wYAAgABAAEAAFD//wUAAgABAAEAAGABAAYAAgABAAEAAGAAAAcAAAACAAIAAFD//wgAAgAGAAAAAAAEAAMAAgAGAAAAAAABAAIAAgABAAEAAFABAAEAAgABAAEAAGA=")
tile_set = ExtResource("2_i1338")
[node name="road" type="TileMapLayer" parent="."]
tile_map_data = PackedByteArray("AAAAAAAAAgABAAAAAFD//wAAAgABAAAAAFABAAAAAgABAAAAAFACAAAAAgABAAAA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AOAP7/AgABAAIAAAAOAP//AgAFAAEAAAANAP7/AgABAAAAAEAOAAAAAgAFAAEAAAAOAAEAAgAHAAEAAFANAAEAAgAFAAEAAFAMAAEAAgAFAAEAAFALAAEAAgAHAAEAADALAAAAAgAHAAEAAAAKAAAAAgAHAAEAAGAKAAEAAgABAAIAACAJAAEAAgADAAAAAGAKAAIAAgAHAAAAACAJAAIAAgAFAAAAACAIAAIAAgADAAAAAGAIAAMAAgACAAIAAFAHAAMAAgAHAAEAAGAKAAMAAgACAAEAACAJAAMAAgAAAAEAAFAHAAQAAgAFAAEAAAAHAAUAAgAHAAEAAFAGAAUAAgAFAAEAAFAFAAUAAgAFAAEAAFAEAAUAAgAFAAEAAFADAAUAAgAEAAIAAFACAAUAAgAFAAEAAFAAAAQAAgAGAAIAAFABAAUAAgADAAMAAGABAAQAAgAAAAMAACAAAAUAAgAAAAMAAFD//wMAAgAGAAIAAGAAAAMAAgAAAAMAAGD//wIAAgAAAAMAAGD+/wMAAgAAAAMAABD//wQAAgAAAAMAABD+/wIAAgADAAMAAFD9/wIAAgACAAMAAED9/wMAAgAAAAMAAAD8/wIAAgAAAAMAADD8/wMAAgACAAMAAHD7/wMAAgAHAAEAADD7/wIAAgAFAAEAADD7/wEAAgAFAAEAADD7////AgADAAAAAGD7/wAAAgACAAIAABD8////AgABAAAAAGD9////AgABAAAAAGD+////AgABAAAAAGD8/wAAAgABAAAAAFD9/wAAAgABAAAAAFD+/wAAAgABAAAAAFA=")
tile_set = ExtResource("4_wejeu")
[node name="markings" type="TileMapLayer" parent="."]
z_index = 1
tile_map_data = PackedByteArray("AAAAAAAAAQAAAAAAAFAAAP//AQAAAAAAAHA=")
tile_set = ExtResource("3_ktygs")
[node name="road_r" type="TileMapLayer" parent="."]
tile_map_data = PackedByteArray("AAD9/wAAAgABAAAAAFD+/wAAAgABAAAAAFD//wAAAgABAAAAAFAAAAAAAgABAAAAAFABAAAAAgABAAAAAFACAAAAAgABAAAAAFADAAAAAgABAAAAA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AAD4/wUAAgABAAAAAAD4/wQAAgABAAAAAAD4/wMAAgABAAAAAAD4/wIAAgABAAAAAAA=")
tile_set = ExtResource("4_r58io")
[node name="road_l" type="TileMapLayer" parent="."]
tile_map_data = PackedByteArray("AAAFAP//AAADAAAAAHAFAAAAAAACAAAAAHAEAP//AAADAAEAAHAHAAAAAAAHAAIAAHAHAAEAAAAGAAIAAHAGAAAAAAAHAAMAAHAHAAIAAAAHAAMAACAHAAMAAAAHAAIAACAGAAMAAAAGAAIAACAFAAMAAAAHAAEAAGAFAAQAAAAGAAEAAGAEAAQAAAAGAAAAAGADAAQAAgABAAAAAEACAAQAAgABAAAAAEABAAQAAgABAAAAAEAAAAQAAgADAAEAAED+/wQAAAAHAAMAAED9/wMAAAAGAAIAAED9/wQAAAAHAAIAAED//wQAAgABAAAAAED9/wIAAgADAAAAABD+/wIAAgABAAAAAHD//wIAAgABAAAAAHAAAAIAAgABAAAAAHABAAIAAgAFAAAAAFABAAEAAgAFAAAAAHAAAAEAAgABAAAAAFD//wEAAgABAAAAAFD+/wEAAgABAAAAAFD9/wEAAgABAAAAAFD8/wEAAgAGAAIAAED8/wIAAgAAAAIAAAD7/wIAAgAGAAEAAAD7/wMAAgAAAAIAAAD6/wMAAgAEAAIAAAADAP//AgABAAAAAHACAP//AgABAAAAAHABAP//AgABAAAAAHAAAP//AgABAAAAAHD/////AgABAAAAAHD+////AgABAAAAAHD9////AgABAAAAAHD8////AgABAAAAAHD7////AgABAAAAAHD6////AgAFAAIAAED5////AgAAAAIAAHD4/wAAAgAAAAIAAHD3/wEAAgAAAAIAAHD5/wAAAgAGAAEAAHD4/wEAAgAGAAEAAHD3/wIAAgADAAIAAAD7/wQAAAAAAAUAAED7/wUAAAABAAUAAED6/wQAAAAAAAQAAED9/wUAAAADAAAAAHD9/wYAAAACAAAAAHD8/wUAAAADAAEAAHD+/wYAAgAFAAAAAFD+/wUAAgADAAAAABD//wUAAgABAAAAAHAAAAUAAgABAAAAAHABAAUAAgABAAAAAHACAAUAAgADAAAAAAACAAYAAgADAAAAAFAAAAgAAAAGAAIAAFAAAAkAAAAHAAIAAFD//wkAAAAHAAMAAFABAAYAAAAAAAQAABABAAcAAAAAAAUAABAAAAcAAAABAAUAABD+/wkAAgABAAAAAFD9/wkAAgABAAAAAFD8/wkAAAAGAAAAAHD7/wgAAAAHAAEAAHD7/wkAAAAGAAEAAHD6/wgAAgABAAAAAFD5/wgAAgABAAAAAFD4/wgAAAAGAAIAADD3/wcAAAAHAAMAADD3/wgAAAAHAAIAADD3/wQAAgADAAEAADD3/wYAAgABAAAAADD3/wUAAgABAAAAADD3/wMAAgABAAAAADA=")
tile_set = ExtResource("4_r58io")

File diff suppressed because one or more lines are too long

View file

@ -5,6 +5,9 @@ extends CharacterBody2D
const COLLISIONMASK_FINISH=3 #set in road_overlay
const COLLISIONMASK_CHECKPOINT=4 #set in road_overlay
const ROAD_R_NAME="road_r"
const ROAD_L_NAME="road_l"
const STANDSTILLSPEED=0.5
var wheel_base = 60*0.5
@ -99,6 +102,9 @@ func get_input():
var origin=ray_cast_fl.global_transform.origin
var collision_point = ray_cast_fl.get_collision_point()
distance_fl = origin.distance_to(collision_point)
var collision_object=ray_cast_fl.get_collider()
#if collision_object.name==ROAD_R_NAME:
#print("DistanceFL "+str(distance_fl))
if ray_cast_fr.is_colliding():
var origin=ray_cast_fr.global_transform.origin

View file

@ -77,9 +77,6 @@ func _process(delta: float) -> void:
var mapped_zoomspeed_x=constrain(remap(calculatedViewCarMargin.x , viewCarMargin_zoomstart.x*viewsize.x,viewCarMargin.x*viewsize.x,0,zoomspeed),0,zoomspeed)
var mapped_zoomspeed_y=constrain(remap(calculatedViewCarMargin.y , viewCarMargin_zoomstart.y*viewsize.y,viewCarMargin.y*viewsize.y,0,zoomspeed),0,zoomspeed)
var mapped_zoomspeed=max(mapped_zoomspeed_x,mapped_zoomspeed_y)
print("calculatedViewCarMargin="+str(calculatedViewCarMargin))
print("viewCarMargin_zoomstart*viewsize="+str(viewCarMargin_zoomstart*viewsize))
print("viewCarMargin_zoombackup*viewsize="+str(viewCarMargin_zoombackup*viewsize))
if calculatedViewCarMargin.x<(viewCarMargin_zoomstart.x*viewsize.x) or calculatedViewCarMargin.y<(viewCarMargin_zoomstart.y*viewsize.y): #cars not in view
camera.zoom-=Vector2(mapped_zoomspeed*delta,mapped_zoomspeed*delta)
elif calculatedViewCarMargin.x>(viewCarMargin_zoombackup.x*viewsize.x) and calculatedViewCarMargin.y>(viewCarMargin_zoombackup.y*viewsize.y): #cars in view again

View file

@ -0,0 +1,52 @@
[gd_resource type="TileSet" load_steps=5 format=3 uid="uid://beswbm12qkkxk"]
[ext_resource type="Texture2D" uid="uid://dphq0r5wk8a8p" path="res://sprites/spritesheet_road/spritesheet_road2x2.png" id="1_5ff8j"]
[ext_resource type="Texture2D" uid="uid://cj7noshq5wkuu" path="res://sprites/spritesheet_road/spritesheet_road1x1.png" id="1_skok4"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_33l1j"]
texture = ExtResource("1_5ff8j")
texture_region_size = Vector2i(128, 128)
0:0/0 = 0
1:0/0 = 0
4:0/0 = 0
5:0/0 = 0
0:1/0 = 0
1:1/0 = 0
4:1/0 = 0
5: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
0:3/0 = 0
1:3/0 = 0
2:3/0 = 0
3:3/0 = 0
5:3/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_5wrcn"]
texture = ExtResource("1_skok4")
texture_region_size = Vector2i(128, 128)
0:0/0 = 0
2:0/0 = 0
4:0/0 = 0
6:0/0 = 0
1:1/0 = 0
4:1/0 = 0
0:2/0 = 0
1:3/0 = 0
1:2/0 = 0
2:2/0 = 0
2:1/0 = 0
5:1/0 = 0
7:1/0 = 0
7:0/0 = 0
0:1/0 = 0
7:2/0 = 0
[resource]
tile_size = Vector2i(128, 128)
sources/2 = SubResource("TileSetAtlasSource_5wrcn")
sources/0 = SubResource("TileSetAtlasSource_33l1j")

View file

@ -1,9 +1,9 @@
[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://dqj1nt8840fpl"]
[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://buu8w8n61kbxf"]
[ext_resource type="Texture2D" uid="uid://cd0r2a2yf42my" path="res://sprites/spritesheet_road/spritesheet_markings1x1.png" id="2_j34ny"]
[ext_resource type="Texture2D" uid="uid://cd0r2a2yf42my" path="res://sprites/spritesheet_road/spritesheet_markings1x1.png" id="1_hbu2l"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3gx66"]
texture = ExtResource("2_j34ny")
texture = ExtResource("1_hbu2l")
texture_region_size = Vector2i(128, 128)
0:0/0 = 0
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-64, -35, 56, -35, 56, -13, -64, -13)

View file

@ -0,0 +1,62 @@
[gd_resource type="TileSet" load_steps=5 format=3 uid="uid://b15864hbqomim"]
[ext_resource type="Texture2D" uid="uid://dphq0r5wk8a8p" path="res://sprites/spritesheet_road/spritesheet_road2x2.png" id="1_e5l6t"]
[ext_resource type="Texture2D" uid="uid://cj7noshq5wkuu" path="res://sprites/spritesheet_road/spritesheet_road1x1.png" id="2_d11sc"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_bl4c0"]
texture = ExtResource("1_e5l6t")
texture_region_size = Vector2i(128, 128)
2:0/0 = 0
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 54, -46, 58, -30, 64, -12, 64, -28, 62, -32, 60, -48, 58, -64)
3:0/0 = 0
3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-64, -28, -60, -16, -52, 4, -42, 22, -28, 40, -12, 58, -4, 64, -12, 64, -28, 48, -46, 24, -60, 0, -64, -12)
3:1/0 = 0
3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-10, -62, 6, -46, 20, -28, 34, -6, 44, 18, 50, 38, 52, 54, 52, 62, 58, 62, 56, 44, 52, 24, 44, 2, 32, -22, 18, -40, 2, -58, -2, -62)
6:0/0 = 0
6:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-52, -64, -50, -48, -46, -28, -34, 4, -22, 24, -8, 42, 4, 56, 14, 64, 6, 64, -10, 48, -24, 32, -38, 8, -48, -16, -54, -38, -58, -56, -58, -64)
6:1/0 = 0
6:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, -64, 24, -48, 38, -30, 50, -10, 58, 8, 64, 24, 64, 8, 52, -16, 42, -34, 30, -48, 14, -64)
7:1/0 = 0
7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-52, 64, -52, 54, -54, 38, -60, 20, -64, 10, -64, 24, -60, 42, -58, 64)
6:2/0 = 0
6:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-64, -52, -44, -50, -16, -46, 18, -36, 52, -20, 64, -14, 64, -22, 36, -36, 2, -48, -28, -54, -54, -58, -64, -58)
7:2/0 = 0
7:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-64, -14, -44, 0, -20, 22, -6, 38, 14, 64, 22, 64, 6, 42, -10, 22, -28, 4, -50, -12, -64, -22)
7:3/0 = 0
7:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, 64, 50, 38, 46, 10, 38, -14, 28, -38, 14, -64, 22, -64, 30, -50, 42, -24, 48, -2, 56, 26, 58, 56, 58, 64)
0:4/0 = 0
0:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-64, 52, -50, 52, -26, 56, -6, 64, -26, 64, -46, 60, -64, 58)
0:5/0 = 0
0:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-24, -64, 2, -54, 20, -40, 42, -18, 54, 2, 64, 24, 64, 8, 52, -16, 34, -36, 12, -54, -8, -64)
1:5/0 = 0
1:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-52, 64, -52, 50, -56, 24, -64, 8, -64, 24, -60, 40, -58, 64)
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_m1hpr"]
texture = ExtResource("2_d11sc")
texture_region_size = Vector2i(128, 128)
1:0/0 = 0
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 52, 64, 58, 64, 58, -64)
3:0/0 = 0
3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, 64, 50.3181, 48.2707, 46.3808, 33.1517, 40.8687, 17.8751, 32.0492, 1.81114, 16.7727, -16.3002, 0.866196, -30.0019, -16.1427, -39.4513, -33.3092, -46.2234, -47.7983, -50.0031, -64, -51.893, -64, -57.7201, -47.9557, -56.6177, -31.2618, -52.6804, -13.7804, -45.7509, 5.74839, -35.0416, 21.4974, -20.8674, 37.7189, -1.65364, 46.6958, 15.5128, 52.8379, 31.7343, 56.3027, 47.3258, 57.5627, 64)
5:0/0 = 0
5:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-57, 64, -59.295, 59.61, -64, 57.2477, -64, 52.3655, -55.0428, 55.8303, -52.3655, 64)
3:1/0 = 0
3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 52, -48, 48, -32, 40, -16, 37, 0, 40, 16, 48, 32, 52, 48, 52, 64, 58, 64, 58, 48, 54, 32, 43, 0, 54, -32, 58, -48, 58, -64)
6:1/0 = 0
6:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(64, 10, 10, 64, 18, 64, 64, 18)
0:2/0 = 0
0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(18, -64, -64, 18, -64, 10, 10, -64)
3:2/0 = 0
3:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-52.3636, 64, -52.3636, -16.1616, -49.7778, -22.6263, -45.899, -29.0909, -9.69697, -64, -18.7475, -64, -51.0707, -31.6768, -56.2424, -23.9192, -57.5354, -16.1616, -57.5354, 64)
4:2/0 = 0
4:2/0/physics_layer_0/polygon_1/points = PackedVector2Array(57.5354, 64, 57.5354, 31.6768, 64, 17.4545, 64, 9.69697, 56.2424, 17.4545, 52.3636, 27.798, 52.3636, 32.9697, 52.3636, 64)
5:2/0 = 0
5:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-52.3636, 64, -52.3636, -16.1616, -49.7778, -22.6263, -45.899, -29.0909, -9.69697, -64, -18.7475, -64, -51.0707, -31.6768, -56.2424, -23.9192, -57.5354, -16.1616, -57.5354, 64)
6:2/0 = 0
6:2/0/physics_layer_0/polygon_1/points = PackedVector2Array(57.5354, 64, 57.5354, 31.6768, 64, 17.4545, 64, 9.69697, 56.2424, 17.4545, 52.3636, 27.798, 52.3636, 32.9697, 52.3636, 64)
[resource]
tile_size = Vector2i(128, 128)
physics_layer_0/collision_layer = 3
sources/2 = SubResource("TileSetAtlasSource_m1hpr")
sources/0 = SubResource("TileSetAtlasSource_bl4c0")

View file

@ -1,24 +0,0 @@
[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://fy1cu3bt11db"]
[ext_resource type="Texture2D" uid="uid://cj7noshq5wkuu" path="res://sprites/spritesheet_road/spritesheet_road1x1.png" id="1_5axip"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_5wrcn"]
texture = ExtResource("1_5axip")
texture_region_size = Vector2i(128, 128)
0:0/0 = 0
2:0/0 = 0
4:0/0 = 0
6:0/0 = 0
1:1/0 = 0
3:1/0 = 0
4:1/0 = 0
6:1/0 = 0
0:2/0 = 0
3:2/0 = 0
5:2/0 = 0
7:2/0 = 0
1:3/0 = 0
[resource]
tile_size = Vector2i(128, 128)
sources/2 = SubResource("TileSetAtlasSource_5wrcn")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -1,54 +0,0 @@
[gd_resource type="TileSet" load_steps=5 format=3 uid="uid://dfo0ra568q52r"]
[ext_resource type="Texture2D" uid="uid://dphq0r5wk8a8p" path="res://sprites/spritesheet_road - Kopie/spritesheet_road2x2.png" id="1_fh6vp"]
[ext_resource type="Texture2D" uid="uid://cj7noshq5wkuu" path="res://sprites/spritesheet_road - Kopie/spritesheet_road1x1.png" id="2_p3txp"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_bl4c0"]
texture = ExtResource("1_fh6vp")
texture_region_size = Vector2i(128, 128)
2:0/size_in_atlas = Vector2i(2, 2)
2:0/0 = 0
6:0/size_in_atlas = Vector2i(2, 2)
6:0/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_m1hpr"]
texture = ExtResource("2_p3txp")
texture_region_size = Vector2i(128, 128)
1:0/0 = 0
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 52, 64, 58, 64, 58, -64)
3:0/0 = 0
3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, 64, 50.3181, 48.2707, 46.3808, 33.1517, 40.8687, 17.8751, 32.0492, 1.81114, 16.7727, -16.3002, 0.866196, -30.0019, -16.1427, -39.4513, -33.3092, -46.2234, -47.7983, -50.0031, -64, -51.893, -64, -57.7201, -47.9557, -56.6177, -31.2618, -52.6804, -13.7804, -45.7509, 5.74839, -35.0416, 21.4974, -20.8674, 37.7189, -1.65364, 46.6958, 15.5128, 52.8379, 31.7343, 56.3027, 47.3258, 57.5627, 64)
5:0/0 = 0
5:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-57, 64, -59.295, 59.61, -64, 57.2477, -64, 52.3655, -55.0428, 55.8303, -52.3655, 64)
0:1/0 = 0
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 52, 64, 58, 64, 58, -64)
0:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-52, -64, -52, 64, -58, 64, -58, -64)
2:1/0 = 0
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, 64, 50.3181, 48.2707, 46.3808, 33.1517, 40.8687, 17.8751, 32.0492, 1.81114, 16.7727, -16.3002, 0.866196, -30.0019, -16.1427, -39.4513, -33.3092, -46.2234, -47.7983, -50.0031, -64, -51.893, -64, -57.7201, -47.9557, -56.6177, -31.2618, -52.6804, -13.7804, -45.7509, 5.74839, -35.0416, 21.4974, -20.8674, 37.7189, -1.65364, 46.6958, 15.5128, 52.8379, 31.7343, 56.3027, 47.3258, 57.5627, 64)
2:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-57.7201, 64, -59.295, 59.61, -64, 57.2477, -64, 52.3655, -55.0428, 55.8303, -52.3655, 64)
4:1/0 = 0
4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 52, 64, 58, 64, 58, -64)
4:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-57, 64, -59.295, 59.61, -64, 57.2477, -64, 52.3655, -55.0428, 55.8303, -52.3655, 64)
5:1/0 = 0
5:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 52, 64, 58, 64, 58, -64)
5:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-57, 64, -59.295, 59.61, -64, 57.2477, -64, 52.3655, -55.0428, 55.8303, -52.3655, 64)
7:1/0 = 0
7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(52, -64, 52, -48, 48, -32, 40, -16, 37, 0, 40, 16, 48, 32, 52, 48, 52, 64, 58, 64, 58, 48, 54, 32, 43, 0, 54, -32, 58, -48, 58, -64)
7:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-52, -64, -52, -48, -48, -32, -40, -16, -37, 0, -40, 16, -48, 32, -52, 48, -52, 64, -58, 64, -58, 48, -54, 32, -43, 0, -54, -32, -58, -48, -58, -64)
1:2/0 = 0
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-64, -9.69697, -9.69697, -64, -17.4545, -64, -64, -17.4545)
1:2/0/physics_layer_0/polygon_1/points = PackedVector2Array(64, 9.69697, 9.69697, 64, 18.7475, 64, 64, 18.7475)
3:2/0 = 0
3:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(17.4545, -64, -64, 17.4545, -64, 9.69697, 9.69697, -64)
5:2/0 = 0
5:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-52.3636, 64, -52.3636, -16.1616, -49.7778, -22.6263, -45.899, -29.0909, -9.69697, -64, -18.7475, -64, -51.0707, -31.6768, -56.2424, -23.9192, -57.5354, -16.1616, -57.5354, 64)
5:2/0/physics_layer_0/polygon_1/points = PackedVector2Array(57.5354, 64, 57.5354, 31.6768, 64, 17.4545, 64, 9.69697, 56.2424, 17.4545, 52.3636, 27.798, 52.3636, 32.9697, 52.3636, 64)
6:2/0 = 0
6:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-52.3636, 64, -52.3636, -16.1616, -49.7778, -22.6263, -45.899, -29.0909, -9.69697, -64, -18.7475, -64, -51.0707, -31.6768, -56.2424, -23.9192, -57.5354, -16.1616, -57.5354, 64)
6:2/0/physics_layer_0/polygon_1/points = PackedVector2Array(57.5354, 64, 57.5354, 31.6768, 64, 17.4545, 64, 9.69697, 56.2424, 17.4545, 52.3636, 27.798, 52.3636, 32.9697, 52.3636, 64)
[resource]
tile_size = Vector2i(128, 128)
physics_layer_0/collision_layer = 3
sources/2 = SubResource("TileSetAtlasSource_m1hpr")
sources/0 = SubResource("TileSetAtlasSource_bl4c0")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 12 KiB