[gd_scene load_steps=39 format=2] [ext_resource path="res://RaceTrack.gd" type="Script" id=1] [ext_resource path="res://assets/track_tiles/track.png" type="Texture" id=2] [ext_resource path="res://TileMap.gd" type="Script" id=3] [ext_resource path="res://TrackPath.gd" type="Script" id=4] [ext_resource path="res://OpponentCar.gd" type="Script" id=5] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0007.png" type="Texture" id=6] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0004.png" type="Texture" id=7] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0001.png" type="Texture" id=8] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0002.png" type="Texture" id=9] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0003.png" type="Texture" id=10] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0000.png" type="Texture" id=11] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0005.png" type="Texture" id=12] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0006.png" type="Texture" id=13] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0003.png" type="Texture" id=14] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0004.png" type="Texture" id=15] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0001.png" type="Texture" id=16] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0002.png" type="Texture" id=17] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0007.png" type="Texture" id=18] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0000.png" type="Texture" id=19] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0005.png" type="Texture" id=20] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0006.png" type="Texture" id=21] [ext_resource path="res://track1/policeCar/policeiso_0003.png" type="Texture" id=22] [ext_resource path="res://track1/policeCar/policeiso_0004.png" type="Texture" id=23] [ext_resource path="res://track1/policeCar/policeiso_0001.png" type="Texture" id=24] [ext_resource path="res://track1/policeCar/policeiso_0002.png" type="Texture" id=25] [ext_resource path="res://track1/policeCar/policeiso_0007.png" type="Texture" id=26] [ext_resource path="res://track1/policeCar/policeiso_0000.png" type="Texture" id=27] [ext_resource path="res://track1/policeCar/policeiso_0005.png" type="Texture" id=28] [ext_resource path="res://track1/policeCar/policeiso_0006.png" type="Texture" id=29] [ext_resource path="res://CarSprite.gd" type="Script" id=30] [ext_resource path="res://Player.gd" type="Script" id=31] [ext_resource path="res://PlayerCar.tscn" type="PackedScene" id=32] [ext_resource path="res://wrong_way.tscn" type="PackedScene" id=33] [sub_resource type="Gradient" id=1] colors = PoolColorArray( 0.284025, 0.4375, 0.0803223, 1, 0.30305, 0.480469, 0.0675659, 1 ) [sub_resource type="GradientTexture" id=2] gradient = SubResource( 1 ) width = 1920 [sub_resource type="TileSet" id=3] 0/name = "dl" 0/texture = ExtResource( 2 ) 0/tex_offset = Vector2( 0, 0 ) 0/modulate = Color( 1, 1, 1, 1 ) 0/region = Rect2( 0, 0, 128, 128 ) 0/tile_mode = 0 0/occluder_offset = Vector2( 0, 0 ) 0/navigation_offset = Vector2( 0, 0 ) 0/shapes = [ ] 0/z_index = 0 1/name = "dr" 1/texture = ExtResource( 2 ) 1/tex_offset = Vector2( 0, 0 ) 1/modulate = Color( 1, 1, 1, 1 ) 1/region = Rect2( 128, 0, 128, 128 ) 1/tile_mode = 0 1/occluder_offset = Vector2( 0, 0 ) 1/navigation_offset = Vector2( 0, 0 ) 1/shapes = [ ] 1/z_index = 0 2/name = "lr" 2/texture = ExtResource( 2 ) 2/tex_offset = Vector2( 0, 0 ) 2/modulate = Color( 1, 1, 1, 1 ) 2/region = Rect2( 256, 0, 128, 128 ) 2/tile_mode = 0 2/occluder_offset = Vector2( 0, 0 ) 2/navigation_offset = Vector2( 0, 0 ) 2/shapes = [ ] 2/z_index = 0 3/name = "start" 3/texture = ExtResource( 2 ) 3/tex_offset = Vector2( 0, 0 ) 3/modulate = Color( 1, 1, 1, 1 ) 3/region = Rect2( 384, 0, 128, 128 ) 3/tile_mode = 0 3/occluder_offset = Vector2( 0, 0 ) 3/navigation_offset = Vector2( 0, 0 ) 3/shapes = [ ] 3/z_index = 0 4/name = "ud" 4/texture = ExtResource( 2 ) 4/tex_offset = Vector2( 0, 0 ) 4/modulate = Color( 1, 1, 1, 1 ) 4/region = Rect2( 0, 128, 128, 128 ) 4/tile_mode = 0 4/occluder_offset = Vector2( 0, 0 ) 4/navigation_offset = Vector2( 0, 0 ) 4/shapes = [ ] 4/z_index = 0 5/name = "ul" 5/texture = ExtResource( 2 ) 5/tex_offset = Vector2( 0, 0 ) 5/modulate = Color( 1, 1, 1, 1 ) 5/region = Rect2( 128, 128, 128, 128 ) 5/tile_mode = 0 5/occluder_offset = Vector2( 0, 0 ) 5/navigation_offset = Vector2( 0, 0 ) 5/shapes = [ ] 5/z_index = 0 6/name = "ur" 6/texture = ExtResource( 2 ) 6/tex_offset = Vector2( 0, 0 ) 6/modulate = Color( 1, 1, 1, 1 ) 6/region = Rect2( 256, 128, 128, 128 ) 6/tile_mode = 0 6/occluder_offset = Vector2( 0, 0 ) 6/navigation_offset = Vector2( 0, 0 ) 6/shapes = [ ] 6/z_index = 0 [sub_resource type="Curve2D" id=4] _data = { "points": PoolVector2Array( 0, 0, 0, 0, -17.3556, 327.792, 0, 0, 0, 0, 1930.1, 452.427 ) } [sub_resource type="SpriteFrames" id=5] animations = [ { "frames": [ ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 13 ) ], "loop": true, "name": "bus", "speed": 5.0 }, { "frames": [ ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 20 ), ExtResource( 21 ) ], "loop": true, "name": "car", "speed": 5.0 }, { "frames": [ ExtResource( 22 ), ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ) ], "loop": true, "name": "police", "speed": 5.0 } ] [node name="RaceTrack" type="Node"] script = ExtResource( 1 ) [node name="TextureRect" type="TextureRect" parent="."] margin_right = 1920.0 margin_bottom = 1080.0 texture = SubResource( 2 ) expand = true [node name="TileMap" type="TileMap" parent="."] tile_set = SubResource( 3 ) cell_size = Vector2( 128, 128 ) format = 1 tile_data = PoolIntArray( 131079, 3, 0, 131080, 2, 0, 131081, 0, 0, 196616, 1, 0, 196617, 5, 0, 262152, 4, 0, 327688, 4, 0, 327690, 4, 0, 393224, 6, 0, 393225, 2, 0, 393226, 5, 0 ) script = ExtResource( 3 ) [node name="TrackPath" type="Path2D" parent="."] curve = SubResource( 4 ) script = ExtResource( 4 ) [node name="Opponent" type="PathFollow2D" parent="TrackPath"] position = Vector2( -17.3556, 327.792 ) rotation = 0.0639077 script = ExtResource( 5 ) [node name="OpponentCar" type="Node2D" parent="TrackPath/Opponent"] position = Vector2( 0, 22 ) scale = Vector2( 0.25, 0.25 ) [node name="CarSprite" type="AnimatedSprite" parent="TrackPath/Opponent/OpponentCar"] position = Vector2( -3.20422, 3.0376 ) scale = Vector2( 0.8, 0.8 ) frames = SubResource( 5 ) animation = "car" script = ExtResource( 30 ) skin = "police" [node name="Player" type="PathFollow2D" parent="TrackPath"] position = Vector2( -17.3556, 327.792 ) rotation = 0.0639077 script = ExtResource( 31 ) [node name="PlayerCar" parent="TrackPath/Player" instance=ExtResource( 32 )] position = Vector2( 1.89564, -22.3528 ) scale = Vector2( 0.25, 0.25 ) script = null [node name="Wrong Way" parent="." instance=ExtResource( 33 )] visible = false [connection signal="player_moved" from="." to="TrackPath/Player" method="_on_RaceTrack_player_moved"] [connection signal="wrong_way" from="." to="Wrong Way" method="_on_RaceTrack_wrong_way"]