Stable jam build with resource errors fixed.
This commit is contained in:
parent
7b47e847ae
commit
2db69a689b
57 changed files with 22 additions and 1232 deletions
|
|
@ -24,7 +24,7 @@ func _ready():
|
|||
$Heart.monitoring = false
|
||||
$Heart.monitorable = false
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _process(_delta: float) -> void:
|
||||
if pause == true: return
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ func end():
|
|||
shoot_timer.stop()
|
||||
|
||||
|
||||
func _process(delta):
|
||||
func _process(_delta):
|
||||
|
||||
if rotate_direction == 0:
|
||||
rotater.rotation_degrees += 2.5 # Adjust rotation speed
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Area2D
|
||||
|
||||
@onready var bullet = $Bullet/Sprite2D
|
||||
#@onready var bullet = $Bullet/Sprite2D
|
||||
|
||||
@export var speed = -250
|
||||
var shader_active = false
|
||||
|
|
@ -12,8 +12,8 @@ var target = null
|
|||
func start(pos):
|
||||
position = pos
|
||||
|
||||
func _ready():
|
||||
var target_node = get_parent().get_node("root/$EnemyShard")
|
||||
#func _ready():
|
||||
#var target_node = get_parent().get_node("root/$EnemyShard")
|
||||
#var target = target_node.is_in_group("shards")
|
||||
|
||||
|
||||
|
|
@ -21,18 +21,18 @@ func _process(delta):
|
|||
if pause == true: return
|
||||
position.y += speed * delta
|
||||
|
||||
if target:
|
||||
var direction = (target.position - position).normalized()
|
||||
position += direction * speed * delta
|
||||
|
||||
if position.distance_to(target.position) < 10:
|
||||
stick_to_target(target)
|
||||
#if target:
|
||||
#var direction = (target.position - position).normalized()
|
||||
#position += direction * speed * delta
|
||||
#
|
||||
#if position.distance_to(target.position) < 10:
|
||||
#stick_to_target(target)
|
||||
|
||||
func stick_to_target(target):
|
||||
target.add_child(bullet)
|
||||
print("Sticking to target!")
|
||||
position = Vector2.ZERO
|
||||
|
||||
#func stick_to_target(target):
|
||||
#target.add_child(bullet)
|
||||
#print("Sticking to target!")
|
||||
#position = Vector2.ZERO
|
||||
#
|
||||
|
||||
# Signal checks to see if the bullet leaves the viewport then removes bullet.
|
||||
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
|
||||
|
|
|
|||
|
|
@ -19,6 +19,6 @@ func _on_cloud_speed():
|
|||
|
||||
var coffee_dip = create_tween().set_trans(Tween.TRANS_QUAD)
|
||||
coffee_dip.tween_property($CoffeeBuoy, "modulate", Color(0.40,0.40,0.40,0),2.5)
|
||||
coffee_dip.tween_property($CoffeeBuoy, "scale", .25, 2.5)
|
||||
#coffee_dip.tween_property($CoffeeBuoy, "scale", .25, 2.5)
|
||||
await coffee_dip.finished
|
||||
$CoffeeBuoy.hide()
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const COLS: int = 5
|
|||
const ROWS: int = 3
|
||||
|
||||
const CHICKEN = preload("res://scenes/enemy_chicken.tscn")
|
||||
const CRT = preload("res://scenes/enemy_CRT.tscn")
|
||||
const CRT = preload("res://scenes/enemy_crt.tscn")
|
||||
const MIRROR = preload("res://scenes/enemy_mirror.tscn")
|
||||
const SHARDS = preload("res://scenes/enemy_shards.tscn")
|
||||
const TABLE = preload("res://scenes/enemy_table.tscn")
|
||||
|
|
@ -25,7 +25,7 @@ func _ready():
|
|||
|
||||
func spawn_enemies():
|
||||
|
||||
if wave_count == 3: #This is for CHICKENS
|
||||
if wave_count == 0: #This is for CHICKENS
|
||||
print("Enemy Wave: ", wave_count)
|
||||
enemy = CHICKEN
|
||||
for x in range(COLS):
|
||||
|
|
@ -85,11 +85,11 @@ func spawn_enemies():
|
|||
s.show()
|
||||
|
||||
# Start Shards
|
||||
await get_tree().create_timer(2)
|
||||
get_tree().create_timer(2)
|
||||
s.start_all_animations()
|
||||
|
||||
|
||||
if wave_count == 0 : #This is for Boss
|
||||
if wave_count == 3 : #This is for Boss
|
||||
|
||||
# Hide the player
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue