This repository has been archived by the owner on Apr 15, 2022. It is now read-only.
Platypus v0.6.8
Bug Fixes
- CollisionBasic: Fixed margins on collision areas.
- RenderDebug: Correctly positions debug shapes to outline an entity's collision shape.
- RenderTiles: Fixed parallax scrolling for certain types of cached backgrounds.
- Motion: Made this component correctly handle instant events like jumping.
- ComponentSwitcher: Component-switching now takes place within the game loop just prior to "handle-logic" to provide more consistent behavior than the original
setTimeout
method. - LogicWindUpRacer: Now applying delta time to movement values.
Minor Changes
- Motion: Deprecated inconsistent syntax and put in event handlers to replace original syntax.
- Mover: Replaced "handle-logic" with a "handle-movement" listener to separate movement from other Entity logic.
- Mover: Inverted
friction
anddrag
values so that none is0
rather than1
for clarity. - Mover: Updated
maxMagnitude
to accept an object describing magnitudes for particular directions. Added amaxMagnitudeDelta
property to constrain a change in magnitudes if needed. - Mover: Added "pause-movement" and "unpause-movement" event listeners to
Mover
. - ComponentSwitcher: Added an event when the
ComponentSwitcher
has successfully removed and/or added components to an Entity. - HandlerLogic: Added two event triggers to precede and follow the "handle-logic" event: "prepare-logic" and "handle-movement" respectively.
- EntityController: Vastly improved this component's handling of controls across an Entity's various states. This is useful for blocking or adding certain inputs if, for example, a character is stunned or gains a new ability. Additionally, multiple mappings to the same behavior now provide a consistent response. For example, if both "z" and "spacebar" cause a player to jump, both must be released before the controller triggers "released". A new ActionState object has been created to encapsulate the input and state relationship.
- Camera: Deprecated the "camera-stationary" message in favor of "camera-update" with a new
stationary
Boolean property.