class Phase::EnemyGroup
- Phase::EnemyGroup
- Reference
- Object
Defined in:
phase/enemy_group.crConstant Summary
-
FacingRotationThreshold =
0.1_f32
-
RotationSpeed =
100
-
TargetDistanceThreshold =
500
-
TargetMoveSpeed =
300
Constructors
Instance Method Summary
- #distance(obj : HealthObj)
- #enemies : Array(EnemyShip)
- #facing?(target_rotation)
- #mid_x
- #mid_y
- #move_forward(speed, objs : Array(HealthObj))
- #move_to_target(frame_time, objs : Array(HealthObj))
- #rotate(amount)
- #rotate_to_target(frame_time)
- #rotate_towards(target_rotation, rotation_speed)
- #rotation : Float32
- #rotation_to(obj : HealthObj)
- #star_base_target
- #star_bases : Array(StarBase)
- #update(frame_time, objs : Array(HealthObj))
- #update_movement(frame_time, objs : Array(HealthObj))
- #x
- #y
Constructor Detail
def self.new(star_bases : Array(Phase::StarBase), enemies : Array(Phase::EnemyShip) = [] of EnemyShip)
#