[gd_scene load_steps=39 format=2] [ext_resource path="res://TileMap2.gd" type="Script" id=1] [ext_resource path="res://PlayerCar.tscn" type="PackedScene" id=2] [ext_resource path="res://OpponentCar.gd" type="Script" id=3] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0007.png" type="Texture" id=4] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0004.png" type="Texture" id=5] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0001.png" type="Texture" id=6] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0002.png" type="Texture" id=7] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0003.png" type="Texture" id=8] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0000.png" type="Texture" id=9] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0005.png" type="Texture" id=10] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/bus/busiso_0006.png" type="Texture" id=11] [ext_resource path="res://track1/policeCar/policeiso_0003.png" type="Texture" id=12] [ext_resource path="res://track1/policeCar/policeiso_0004.png" type="Texture" id=13] [ext_resource path="res://track1/policeCar/policeiso_0001.png" type="Texture" id=14] [ext_resource path="res://track1/policeCar/policeiso_0002.png" type="Texture" id=15] [ext_resource path="res://track1/policeCar/policeiso_0007.png" type="Texture" id=16] [ext_resource path="res://track1/policeCar/policeiso_0000.png" type="Texture" id=17] [ext_resource path="res://track1/policeCar/policeiso_0005.png" type="Texture" id=18] [ext_resource path="res://track1/policeCar/policeiso_0006.png" type="Texture" id=19] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0003.png" type="Texture" id=20] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0004.png" type="Texture" id=21] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0001.png" type="Texture" id=22] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0002.png" type="Texture" id=23] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0007.png" type="Texture" id=24] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0000.png" type="Texture" id=25] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0005.png" type="Texture" id=26] [ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0006.png" type="Texture" id=27] [ext_resource path="res://CarSprite.gd" type="Script" id=28] [ext_resource path="res://track2/track.png" type="Texture" id=29] [ext_resource path="res://Gui.tscn" type="PackedScene" id=30] [ext_resource path="res://Gui.gd" type="Script" id=31] [ext_resource path="res://Oswald-Bold.otf" type="DynamicFontData" id=32] [ext_resource path="res://Wrong Way.gd" type="Script" id=33] [sub_resource type="Curve2D" id=1] _data = { "points": PoolVector2Array( 0, 0, 0, 0, 480.755, 160.968, -44.1176, -1.2605, 44.1176, 1.2605, 684, 160.042, 0, 0, 0, 0, 759.607, 207.133, 0, -74.5098, 0, 74.5098, 769.296, 303.494, 0.926585, -49.109, -0.926585, 49.109, 768.41, 373.455, 31.9672, -0.926585, -31.9672, 0.926585, 708.312, 430.479, 0, 0, 0, 0, 572.437, 428.124, 6.46179, -42.6478, -6.46179, 42.6478, 517.286, 470.208, 0, 0, 0, 0, 513.409, 733.849, 76.2492, 0, -76.2492, 0, 447.99, 810.7, 0, 0, 0, 0, 382.881, 731.264, 0, 52.9867, 0, -52.9867, 384.173, 475.378, 0, 0, 0, 0, 329.971, 426.614, 13.9668, 1.39668, -13.9668, -1.39668, 184.018, 428.709, 1.39668, 43.297, -1.39668, -43.297, 121.023, 363.376, 0.814508, 29.1703, -0.814508, -29.1703, 118.928, 292.145, -63.5488, 1.39668, 63.5488, -1.39668, 182.477, 159.461, 0, 0, 0, 0, 304.658, 160.902, 0, 0, 0, 0, 480.755, 161.631 ) } [sub_resource type="SpriteFrames" id=2] animations = [ { "frames": [ ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ) ], "loop": true, "name": "bus", "speed": 5.0 }, { "frames": [ ExtResource( 12 ), ExtResource( 13 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ) ], "loop": true, "name": "police", "speed": 5.0 }, { "frames": [ ExtResource( 20 ), ExtResource( 21 ), ExtResource( 22 ), ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ) ], "loop": true, "name": "car", "speed": 5.0 } ] [sub_resource type="Gradient" id=3] colors = PoolColorArray( 0.242729, 0.410156, 0.128174, 1, 0.088892, 0.507812, 0.0753784, 1 ) [sub_resource type="GradientTexture" id=4] gradient = SubResource( 3 ) [sub_resource type="DynamicFont" id=5] size = 13 outline_size = 2 outline_color = Color( 0.254902, 0.121569, 0.121569, 1 ) extra_spacing_char = 3 extra_spacing_space = 3 font_data = ExtResource( 32 ) [node name="Track2" type="Node2D"] [node name="TileMap" type="TileMap" parent="."] cell_size = Vector2( 128, 128 ) format = 1 script = ExtResource( 1 ) [node name="Track" type="Path2D" parent="."] position = Vector2( 447.804, 23.3101 ) z_index = 2 curve = SubResource( 1 ) [node name="TrackPlayer" type="PathFollow2D" parent="Track"] position = Vector2( 480.755, 160.968 ) rotation = -0.013337 [node name="PlayerCar" parent="Track/TrackPlayer" instance=ExtResource( 2 )] position = Vector2( 0, -22.892 ) scale = Vector2( 0.25, 0.25 ) skin = "police" [node name="TrackOpponent" type="PathFollow2D" parent="Track"] position = Vector2( 480.755, 160.968 ) rotation = -0.013337 [node name="OpponentCar" type="Node2D" parent="Track/TrackOpponent"] position = Vector2( 0, 22 ) scale = Vector2( 0.25, 0.25 ) script = ExtResource( 3 ) [node name="CarSprite" type="AnimatedSprite" parent="Track/TrackOpponent/OpponentCar"] position = Vector2( -3.20422, 3.0376 ) scale = Vector2( 0.8, 0.8 ) frames = SubResource( 2 ) animation = "car" script = ExtResource( 28 ) [node name="CanvasLayer" type="CanvasLayer" parent="."] layer = -1 [node name="TextureRect" type="TextureRect" parent="CanvasLayer"] margin_right = 1923.0 margin_bottom = 1084.0 texture = ExtResource( 29 ) [node name="CanvasLayer" type="CanvasLayer" parent="CanvasLayer"] layer = -1 [node name="TextureRect2" type="TextureRect" parent="CanvasLayer/CanvasLayer"] margin_right = 1923.0 margin_bottom = 1080.0 texture = SubResource( 4 ) expand = true [node name="HBoxContainer" type="HBoxContainer" parent="."] margin_left = 11.2102 margin_top = 57.7727 margin_right = 159.21 margin_bottom = 107.773 [node name="Label" type="Label" parent="HBoxContainer"] margin_top = 17.0 margin_right = 53.0 margin_bottom = 31.0 text = "Rotation" [node name="Rotation" type="Label" parent="HBoxContainer"] margin_left = 57.0 margin_top = 17.0 margin_right = 71.0 margin_bottom = 31.0 text = "0°" [node name="GUI" parent="." instance=ExtResource( 30 )] editor/display_folded = false script = ExtResource( 31 ) [node name="Wrong Way" type="Label" parent="."] margin_left = 792.258 margin_top = 303.587 margin_right = 920.258 margin_bottom = 431.587 rect_rotation = -5.0 rect_clip_content = true custom_fonts/font = SubResource( 5 ) custom_colors/font_color = Color( 0.780392, 0.129412, 0.129412, 1 ) text = "WRONG WAY !!" align = 1 valign = 1 script = ExtResource( 33 ) [connection signal="lap_completed" from="TileMap" to="GUI" method="_on_TileMap_lap_completed"] [connection signal="player_moved" from="TileMap" to="Track/TrackPlayer/PlayerCar" method="_on_TileMap_player_moved"] [connection signal="wrong_way" from="TileMap" to="Wrong Way" method="_on_TileMap_wrong_way"] [editable path="GUI"]