balance boss
This commit is contained in:
parent
0eea9e8cca
commit
e7a171bc1a
3 changed files with 8 additions and 9 deletions
4
laser-apezoid.gd
Normal file
4
laser-apezoid.gd
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
extends "res://Laser.gd"
|
||||||
|
|
||||||
|
func fire():
|
||||||
|
pass
|
|
@ -6,7 +6,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://br5lt5658ioy3" path="res://apezoid_engine.png" id="3_paps8"]
|
[ext_resource type="Texture2D" uid="uid://br5lt5658ioy3" path="res://apezoid_engine.png" id="3_paps8"]
|
||||||
[ext_resource type="Texture2D" uid="uid://1jurox63577w" path="res://apezoid-engine-idle.png" id="4_0rv3w"]
|
[ext_resource type="Texture2D" uid="uid://1jurox63577w" path="res://apezoid-engine-idle.png" id="4_0rv3w"]
|
||||||
[ext_resource type="Texture2D" uid="uid://djfjdlri5xdkn" path="res://dotted line.png" id="6_05kle"]
|
[ext_resource type="Texture2D" uid="uid://djfjdlri5xdkn" path="res://dotted line.png" id="6_05kle"]
|
||||||
[ext_resource type="Script" path="res://Laser.gd" id="7_otdmu"]
|
[ext_resource type="Script" path="res://laser-apezoid.gd" id="7_f1dfs"]
|
||||||
[ext_resource type="AudioStream" uid="uid://4ou7posn1vbd" path="res://laserSmall_004.ogg" id="8_6whae"]
|
[ext_resource type="AudioStream" uid="uid://4ou7posn1vbd" path="res://laserSmall_004.ogg" id="8_6whae"]
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8qb1c"]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8qb1c"]
|
||||||
|
@ -191,16 +191,11 @@ points = PackedVector2Array(0, 0, 1075, 0)
|
||||||
width = 30.0
|
width = 30.0
|
||||||
texture = ExtResource("6_05kle")
|
texture = ExtResource("6_05kle")
|
||||||
texture_mode = 1
|
texture_mode = 1
|
||||||
script = ExtResource("7_otdmu")
|
script = ExtResource("7_f1dfs")
|
||||||
|
|
||||||
[node name="VisibleTimer" type="Timer" parent="Laser" index="0"]
|
[node name="RayCast2D" type="RayCast2D" parent="Laser" index="0"]
|
||||||
wait_time = 0.2
|
|
||||||
|
|
||||||
[node name="RayCast2D" type="RayCast2D" parent="Laser" index="1"]
|
|
||||||
target_position = Vector2(50000, 2.08165e-12)
|
target_position = Vector2(50000, 2.08165e-12)
|
||||||
collision_mask = 3
|
collision_mask = 3
|
||||||
|
|
||||||
[node name="LaserFX" type="AudioStreamPlayer2D" parent="." index="5"]
|
[node name="LaserFX" type="AudioStreamPlayer2D" parent="." index="5"]
|
||||||
stream = ExtResource("8_6whae")
|
stream = ExtResource("8_6whae")
|
||||||
|
|
||||||
[connection signal="timeout" from="Laser/VisibleTimer" to="Laser" method="set_transparent"]
|
|
||||||
|
|
2
tar.gd
2
tar.gd
|
@ -28,7 +28,7 @@ func _ready():
|
||||||
|
|
||||||
func _physics_process(delta):
|
func _physics_process(delta):
|
||||||
if phase2_active:
|
if phase2_active:
|
||||||
apply_central_force((global_position - player.global_position).normalized() * -1600)
|
apply_central_force((global_position - player.global_position).normalized() * -1600 * (player.speed / 1000))
|
||||||
|
|
||||||
func phase():
|
func phase():
|
||||||
if phase2_active:
|
if phase2_active:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue