we're so close to working multiplayer

This commit is contained in:
2023-11-16 00:07:41 +11:00
parent 1500c22ccc
commit 2d123bd731
81 changed files with 578 additions and 388 deletions

View File

@ -3,7 +3,7 @@ class_name ProjectileTower
@export var projectile_scene : PackedScene
var force := 2.0
var force := 20.0
var projectile_id := 0

View File

@ -0,0 +1,22 @@
extends HitscanTower
class_name StatusApplyingTower
@export var status_stats : StatusStats
func shoot():
super.shoot()
if targeted_enemy and is_instance_valid(targeted_enemy) and targeted_enemy.alive:
targeted_enemy.damage(damage)
targeted_enemy.status_manager.add_effect(build_status_object())
func build_status_object() -> StatusEffect:
var status = StatusEffect.new()
status.stats = status_stats
return status
@rpc("reliable")
func networked_shoot():
super.networked_shoot()