2D Games html codes
/** * Actors represent something or someone, * and can consist of one or more states, * each associated with a particular sprite, * and each associated with particular * behaviour. * * The Actor class is abstract: you must * implement your own subclass before you * can make use of it. */ abstract class Actor extends Positionable { boolean debug = false; // debug bounding box alignment float halign=0, valign=0; // are we colliding with another actor? boolean colliding = false; // regular interaction with other actors boolean interacting = true; // only interact with players boolean onlyplayerinteraction = false; // bypass regular interaction for ... frames int disabledCounter = 0; // should we be removed? boolean remove = false; // is this actor persistent with respect to viewbox draws? boolean persistent = true; boolean isPersistent() { return persistent; } // the layer this actor is in LevelLayer layer; // The active st...