Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Platypus v0.7.1

Compare
Choose a tag to compare
@probityrules probityrules released this 09 Feb 15:38
· 436 commits to master since this release

Minor Changes

  1. Events triggered during Component constructors now postpone firing until the Entity finishes loading, but just prior to the "load" event. This is to allow components dependent on other components not missing events due to load order.
  2. Orientation: The "tween-transform" event handler now accepts "offset" and "anchor" properties to perform transforms apart from the entity's position. Also added support for "beforeTick" and "afterTick" methods to provide more control over entity orientation tweening. "onTick" has been deprecated.
  3. HandlerLogic: Added a timeMultiplier property to HandlerLogic to allow logic speed changes (useful for simulations) and an alwaysOn property to run logic on all entities in the world without regard to camera position.
  4. Scene: Specific assets can now be listed explicitly in Scene definitions. Scene now triggers "scene-ended" on child layers before the destroy() call.
  5. LogicDirectionalMovement: Added a "face" event handler to change the direction an entity is facing without moving in that direction.
  6. RenderSprite: Added "play-sprite" and "stop-sprite" event handlers to RenderSprite to start and stop a playing animation.
  7. Messenger: Added performance checks to Messenger. If debug is set on an event or entity, it will record the time elapsed for handling an event using the browser's performance API.
  8. Added setUP() and recycle() methods to several extensively used objects to reduce garbage collection. Also added alternative methods for arrays to reduce Array creation.

Bug Fixes

  1. CollisionBasic: Fixed "collide-on" and "collide-off" to work for individual CollisionBasic components on an Entity.
  2. LevelBuilder: Fixed a bug that was preventing the LevelBuilder from loading its assets automatically. Also updated it to handle zlib compression.
  3. HandlerCollision: Fixed an issue where attempting to remove a non-existent type would break the game.
  4. EntityContainer: Fixed a bug causing child events to be incorrectly prioritized.
  5. PIXIAnimation: Fixed a few caching issues that were causing memory leaks.