module

GSDL::Area

Instance methods

area_bounding_box

area bounding box for the trigger area

Source
area_box
Source
area_triggered?(other : Area, action : Symbol | String | Nil = nil) : Bool

Checks if this Area intersects with another Area, is facing it, and (optionally) an input action is active.

Source
facing_area?(other : Area) : Bool

Returns true if this object (if Directionable) is facing the other Area's draw coordinates. Always returns true if this object is not Directionable.

Source
on_area_trigger(others : Array(Area), action : Symbol | String | Nil = nil, &block : Area -> )

Iterates over given areas and yields the first one that triggers the interaction condition.

Source
on_area_trigger(others : Array, type : U.class, action : Symbol | String | Nil = nil, &block : U -> ) forall U

Iterates over an array of mixed objects, filters by the given type (which must include Area), and yields the first one that triggers the interaction condition.

Source
overlaps?(other : Area) : Bool
Source
overlaps?(other : Collidable) : Bool
Source
render_x

requires

Source
render_y
Source
target_in?(x : Num, y : Num)

TODO: maybe rename to target_overlaps? for consistency

Source