forked from team-sg/hero-mark-2
position-based turtle spiking (closes #135)
This commit is contained in:
parent
311528e6ed
commit
ae83195868
5 changed files with 86 additions and 51 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=31 format=2]
|
||||
[gd_scene load_steps=28 format=2]
|
||||
|
||||
[ext_resource path="res://maps/map.gd" type="Script" id=1]
|
||||
[ext_resource path="res://objects/hud/hud.tscn" type="PackedScene" id=2]
|
||||
|
@ -40,21 +40,6 @@ extents = Vector2( 4, 320 )
|
|||
[sub_resource type="RectangleShape2D" id=8]
|
||||
extents = Vector2( 128, 4 )
|
||||
|
||||
[sub_resource type="Curve2D" id=13]
|
||||
_data = {
|
||||
"points": PoolVector2Array( 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 32, 8, 0, 0, 0, 0, 32, 16, 0, 0, 0, 0, 24, 24, 0, 0, 0, 0, 16, 24, 0, 0, 0, 0, 8, 24, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, -8, 24, 0, 0, 0, 0, -16, 16, 0, 0, 0, 0, -16, 8, 0, 0, 0, 0, -8, 0, 0, 0, 0, 0, 8, 0 )
|
||||
}
|
||||
|
||||
[sub_resource type="Curve2D" id=14]
|
||||
_data = {
|
||||
"points": PoolVector2Array( 0, 0, 0, 0, 8, -24, 0, 0, 0, 0, 8, -32, 0, 0, 0, 0, 8, -40, 0, 0, 0, 0, 16, -40, 0, 0, 0, 0, 64, -40, 0, 0, 0, 0, 72, -40, 0, 0, 0, 0, 72, -16, 0, 0, 0, 0, 72, -8, 0, 0, 0, 0, 8, -8, 0, 0, 0, 0, 8, -24 )
|
||||
}
|
||||
|
||||
[sub_resource type="Curve2D" id=15]
|
||||
_data = {
|
||||
"points": PoolVector2Array( 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 8, 64, 0, 0, 0, 0, 64, 64, 0, 0, 0, 0, 72, 56, 0, 0, 0, 0, 72, 8, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 8, 0 )
|
||||
}
|
||||
|
||||
[node name="Map" type="Node2D" groups=["map"]]
|
||||
pause_mode = 1
|
||||
script = ExtResource( 1 )
|
||||
|
@ -196,42 +181,24 @@ position = Vector2( 88, 528 )
|
|||
position = Vector2( 56, 40 )
|
||||
right_down_boundary = 9.0
|
||||
speed = 50
|
||||
spike_delay = 3.0
|
||||
|
||||
[node name="Turtle2" parent="Enemies" instance=ExtResource( 16 )]
|
||||
position = Vector2( 88, 264 )
|
||||
left_up_boundary = 10.0
|
||||
speed = 30
|
||||
spike_delay = 0.5
|
||||
|
||||
[node name="Eel" parent="Enemies" instance=ExtResource( 18 )]
|
||||
position = Vector2( 152, 96 )
|
||||
speed = 50.0
|
||||
|
||||
[node name="Path2D" parent="Enemies/Eel" index="0"]
|
||||
curve = SubResource( 13 )
|
||||
|
||||
[node name="Eel2" parent="Enemies" instance=ExtResource( 18 )]
|
||||
position = Vector2( 144, 256 )
|
||||
speed = 50.0
|
||||
|
||||
[node name="Path2D" parent="Enemies/Eel2" index="0"]
|
||||
curve = SubResource( 14 )
|
||||
|
||||
[node name="PathFollow2D" parent="Enemies/Eel2/Path2D" index="0"]
|
||||
position = Vector2( 8, -24 )
|
||||
rotation = -1.5708
|
||||
|
||||
[node name="Eel3" parent="Enemies" instance=ExtResource( 18 )]
|
||||
position = Vector2( 40, 112 )
|
||||
speed = 50.0
|
||||
|
||||
[node name="Path2D" parent="Enemies/Eel3" index="0"]
|
||||
curve = SubResource( 15 )
|
||||
|
||||
[node name="PathFollow2D" parent="Enemies/Eel3/Path2D" index="0"]
|
||||
rotation = 2.35619
|
||||
|
||||
[node name="Collectibles" type="Node2D" parent="."]
|
||||
|
||||
[node name="Star" parent="Collectibles" instance=ExtResource( 17 )]
|
||||
|
|
|
@ -379,20 +379,17 @@ speed = 60
|
|||
position = Vector2( 56, 32 )
|
||||
right_down_boundary = 13.0
|
||||
speed = 50
|
||||
spike_delay = 3.0
|
||||
|
||||
[node name="Turtle2" parent="Enemies/Turtle" instance=ExtResource( 16 )]
|
||||
position = Vector2( 48, 280 )
|
||||
left_up_boundary = 6.0
|
||||
speed = 30
|
||||
spike_delay = 2.5
|
||||
|
||||
[node name="Turtle3" parent="Enemies/Turtle" instance=ExtResource( 16 )]
|
||||
position = Vector2( 192, 472 )
|
||||
left_up_boundary = 3.0
|
||||
right_down_boundary = 3.0
|
||||
speed = 30
|
||||
spike_delay = 1.0
|
||||
|
||||
[node name="Collectibles" type="Node2D" parent="."]
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ material = SubResource( 4 )
|
|||
position = Vector2( 4, 4 )
|
||||
z_index = -3
|
||||
frames = SubResource( 5 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="Steam" parent="." instance=ExtResource( 23 )]
|
||||
|
@ -167,10 +168,10 @@ right_down_boundary = 5.0
|
|||
position = Vector2( 152, 152 )
|
||||
left_up_boundary = 4.0
|
||||
right_down_boundary = 4.0
|
||||
move_direction = 1
|
||||
spike_positions = [ -2.0, 2.0 ]
|
||||
|
||||
[node name="MovingPlatform" parent="." instance=ExtResource( 6 )]
|
||||
position = Vector2( 128, 152 )
|
||||
position = Vector2( 96, 144 )
|
||||
scale = Vector2( 2, 1 )
|
||||
left_up_boundary = 4.0
|
||||
right_down_boundary = 4.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue