Lots of polish things and wrapping up all three levels

This commit is contained in:
Nathan Anderson
2022-08-08 15:32:57 -06:00
parent c7d42e09ce
commit 09eada305d
176 changed files with 3068 additions and 403 deletions
+39 -2
View File
@@ -1,7 +1,9 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=9 format=2]
[ext_resource path="res://assets/trolley-lg.png" type="Texture" id=1]
[ext_resource path="res://scripts/trolley.gd" type="Script" id=2]
[ext_resource path="res://assets/trolley.wav" type="AudioStream" id=3]
[ext_resource path="res://assets/smoke.png" type="Texture" id=4]
[sub_resource type="CircleShape2D" id=4]
radius = 172.29
@@ -9,10 +11,14 @@ radius = 172.29
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 38, 10 )
[sub_resource type="Gradient" id=5]
offsets = PoolRealArray( 0.133152, 0.782609, 0.942935 )
colors = PoolColorArray( 0.143419, 0.143419, 0.143419, 1, 0.34375, 0.34375, 0.34375, 1, 0.631373, 0.631373, 0.631373, 0 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 44.5, 8.25 )
[node name="Trolley" type="KinematicBody2D"]
[node name="Trolley" type="KinematicBody2D" groups=["pausable", "plays_audio"]]
collision_layer = 4
script = ExtResource( 2 )
@@ -29,6 +35,29 @@ collision_layer = 0
position = Vector2( -1, -41 )
shape = SubResource( 2 )
[node name="SmokeParticles" type="CPUParticles2D" parent="."]
position = Vector2( -145, -12 )
amount = 24
lifetime = 10.0
preprocess = 10.0
explosiveness = 0.07
randomness = 0.95
lifetime_randomness = 0.36
texture = ExtResource( 4 )
direction = Vector2( -1, -0.1 )
spread = 7.85
gravity = Vector2( 0, -20 )
initial_velocity = 160.0
initial_velocity_random = 0.13
angular_velocity = -6.61
angular_velocity_random = 1.0
damping = 8.71
angle = 231.2
angle_random = 1.0
scale_amount = 10.18
color_ramp = SubResource( 5 )
hue_variation_random = 1.0
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, -70 )
scale = Vector2( 6, 6 )
@@ -43,5 +72,13 @@ polygon = PoolVector2Array( 172, -5, 198, 106, 150, 106, 122, 127, 74, 109, 46,
position = Vector2( 0, -2.25 )
shape = SubResource( 3 )
[node name="Timer" type="Timer" parent="."]
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
pitch_scale = 0.99
max_distance = 800.0
[connection signal="body_shape_exited" from="TrolleySurroundingArea" to="." method="_on_TrolleySurroundingArea_body_exited"]
[connection signal="body_entered" from="TrolleySeatArea" to="." method="_on_TrolleySeatArea_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]