cleans code. adds sign for wrong way
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=39 format=2]
|
||||
[gd_scene load_steps=40 format=2]
|
||||
|
||||
[ext_resource path="res://race_track.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/track_tiles/track.png" type="Texture" id=2]
|
||||
@@ -13,29 +13,26 @@
|
||||
[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://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0003.png" type="Texture" id=22]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0004.png" type="Texture" id=23]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0001.png" type="Texture" id=24]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0002.png" type="Texture" id=25]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0007.png" type="Texture" id=26]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0000.png" type="Texture" id=27]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0005.png" type="Texture" id=28]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0006.png" type="Texture" id=29]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0003.png" type="Texture" id=14]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0004.png" type="Texture" id=15]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0001.png" type="Texture" id=16]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0002.png" type="Texture" id=17]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0007.png" type="Texture" id=18]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0000.png" type="Texture" id=19]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0005.png" type="Texture" id=20]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/policeCar/policeiso_0006.png" type="Texture" id=21]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0003.png" type="Texture" id=22]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0004.png" type="Texture" id=23]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0001.png" type="Texture" id=24]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0002.png" type="Texture" id=25]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0007.png" type="Texture" id=26]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0000.png" type="Texture" id=27]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0005.png" type="Texture" id=28]
|
||||
[ext_resource path="res://assets/2D_Car_Pack_DevilsWorkShop_V01/car02/car02iso_0006.png" type="Texture" id=29]
|
||||
[ext_resource path="res://car_sprite.gd" type="Script" id=30]
|
||||
[ext_resource path="res://Player.gd" type="Script" id=31]
|
||||
[ext_resource path="res://wrong_way.tscn" type="PackedScene" id=32]
|
||||
|
||||
|
||||
|
||||
|
||||
[ext_resource path="res://assets/France_road_sign_B1.svg" type="Texture" id=32]
|
||||
[ext_resource path="res://wrong_way.gd" type="Script" id=33]
|
||||
|
||||
[sub_resource type="Gradient" id=1]
|
||||
colors = PoolColorArray( 0.284025, 0.4375, 0.0803223, 1, 0.30305, 0.480469, 0.0675659, 1 )
|
||||
@@ -130,12 +127,12 @@ animations = [ {
|
||||
}, {
|
||||
"frames": [ ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 20 ), ExtResource( 21 ) ],
|
||||
"loop": true,
|
||||
"name": "car",
|
||||
"name": "police",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 22 ), ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ) ],
|
||||
"loop": true,
|
||||
"name": "police",
|
||||
"name": "car",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
@@ -146,15 +143,15 @@ animations = [ {
|
||||
"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( 27 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 22 ), ExtResource( 23 ), ExtResource( 28 ), ExtResource( 29 ), ExtResource( 26 ) ],
|
||||
"frames": [ ExtResource( 19 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 20 ), ExtResource( 21 ), ExtResource( 18 ) ],
|
||||
"loop": true,
|
||||
"name": "police",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 22 ), ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ) ],
|
||||
"loop": true,
|
||||
"name": "car",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[node name="RaceTrack" type="Node"]
|
||||
@@ -182,13 +179,9 @@ position = Vector2( 606.951, 579.696 )
|
||||
rotation = 0.112563
|
||||
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 )
|
||||
[node name="CarSprite" type="AnimatedSprite" parent="TrackPath/Opponent"]
|
||||
position = Vector2( -0.801025, 22.7594 )
|
||||
scale = Vector2( 0.2, 0.2 )
|
||||
frames = SubResource( 5 )
|
||||
animation = "car"
|
||||
script = ExtResource( 30 )
|
||||
@@ -199,18 +192,24 @@ position = Vector2( 606.951, 579.696 )
|
||||
rotation = 0.112563
|
||||
script = ExtResource( 31 )
|
||||
|
||||
[node name="PlayerCar" type="Node2D" parent="TrackPath/Player"]
|
||||
position = Vector2( 1.89564, -22.3528 )
|
||||
scale = Vector2( 0.25, 0.25 )
|
||||
|
||||
[node name="CarSprite" type="AnimatedSprite" parent="TrackPath/Player/PlayerCar"]
|
||||
position = Vector2( -3.20422, 3.0376 )
|
||||
scale = Vector2( 0.8, 0.8 )
|
||||
[node name="CarSprite" type="AnimatedSprite" parent="TrackPath/Player"]
|
||||
position = Vector2( 1.09454, -21.5934 )
|
||||
scale = Vector2( 0.2, 0.2 )
|
||||
frames = SubResource( 6 )
|
||||
animation = "car"
|
||||
script = ExtResource( 30 )
|
||||
|
||||
[node name="Wrong Way" parent="." instance=ExtResource( 32 )]
|
||||
[node name="Wrong Way" type="TextureRect" parent="."]
|
||||
visible = false
|
||||
margin_left = 445.793
|
||||
margin_top = 558.431
|
||||
margin_right = 930.792
|
||||
margin_bottom = 1043.43
|
||||
rect_scale = Vector2( 0.1, 0.1 )
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource( 32 )
|
||||
stretch_mode = 4
|
||||
script = ExtResource( 33 )
|
||||
[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"]
|
||||
|
||||
Reference in New Issue
Block a user