- Removal of
QuadTree
, will make an appearance again intiny-ecs-physics
. - Renamed
Spatial
toTransform
- A
Transform
scale
property is now a scaler (Number
) instead of a vector (Vec2
). - Added
Loop
class for setting up and running simultaneous fixed and variable game loops for deterministic simulations at variable render framerates. Uses aMessenger
to fire clock events. Entity
objects now have an auto-incremented uniqueid
property of typeNumber
.Entity
objects now have member functiontrigger()
that fires an event via the underlyingEntityManager#messenger
object.- Added
distance
,distance2
,perp
,lperp
,project
, andcircleIntersect
functions toVec2
class. - Renamed misspelled
Messanger
toMessenger
. - Fixed clobbering of tag list on entity remove (pooling issues)
- Added
Messanger
to serve as event hub for entities and other systems. - Created
Event
class for fluent filtering when setting up listeners. - Entity manager now takes an injected messanger that will be used to signal events.
- Entity manager now fires events on entity add/remove and component add/remove.
- Renamed
Pool
toObjectPool
- Added
removeAllEntities()
,entityRemoveAllComponents()
, andpoolStats()
functions to the entity manager. - Added the
Spatial
class, the only component included in TinyECS. This encompasses relative position, scale, rotation, and handles to the quad tree that is indexing its location. - Misc. bug fixes and speedups to the
QuadTree
- Fixed a bug of having references to components on entities not getting
- properly deleted.
- Added
removeEntitiesByTag()
method - Removing entities in a loop still bad!!
Vec2
andQuadTree
classes added.- Improvements to
Pool
class.
- Added
EntityManager#poolStats()
.
- Adding in object pooling for entities and components.
- Removed factory / recycler action.
#t 1.0.1 (2014-01-21)
- Type-hinting JSDoc and README updates.
- First release.