LD56 is over. This is the game.
This commit is contained in:
16
entities/ants/indicator.gd
Normal file
16
entities/ants/indicator.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
class_name Indicator extends Node3D
|
||||
|
||||
enum IndicatorType {
|
||||
ANT_WORKER, ANT_SOLDIER, BUILDING_BALISTA,
|
||||
OTHER
|
||||
}
|
||||
|
||||
@export var type:IndicatorType
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
var raycast := Player.instance.raycast
|
||||
if raycast.get_collider() is Terrain:
|
||||
visible = true
|
||||
global_position = raycast.get_collision_point()
|
||||
else:
|
||||
visible = false
|
||||
Reference in New Issue
Block a user