16 lines
302 B
GDScript
16 lines
302 B
GDScript
@abstract
|
|
extends Object
|
|
|
|
class_name Globals
|
|
|
|
const GRID_SIZE : Vector2 = Vector2(16,16)
|
|
|
|
enum Sides {
|
|
RIGHT,
|
|
DOWN,
|
|
LEFT,
|
|
UP
|
|
}
|
|
|
|
static func facing_difference(from : Structure.Facing, to : Structure.Facing) -> float:
|
|
return Structure.facing_to_vector(from).angle_to(Structure.facing_to_vector(to))
|