more hub world tweaking

This commit is contained in:
Derek
2025-02-23 16:11:53 -06:00
parent fd2a32dde9
commit a303eb6430
18 changed files with 557 additions and 143 deletions

View File

@@ -5,7 +5,6 @@ extends Node3D
@export var TIMER_MIN = 0.0
@export var TIMER_MAX = 20.0
@onready var item_pickup = preload("res://assets/item_pickup.tscn")
@onready var timer = $Timer
@onready var cannonparticles = $cannonparticles
@onready var cannon_dir = $RayCast3D
@@ -14,7 +13,6 @@ extends Node3D
var fire = true
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
@@ -33,7 +31,7 @@ func _on_timer_timeout():
timer.wait_time = rand_timer #rand_timer
# Shoot that shit
var pickup_spawn = item_pickup.instantiate()
var pickup_spawn = level_control.item_pickup.instantiate()
var item_stats = level_control.pickup_spawn(false)
##SET VARIABLES
pickup_spawn.pickup_type = item_stats["pickup_type"]