]>
git.r.bdr.sh - rbdr/serpentity/blob - lib/serpentity/system.js
c817be10e37170569125fae2f9649e3ba94d8765
2 * Systems contain most of the logic, and work with nodes in order to
3 * act and change their values.
5 * You usually want to inherit from this class and override the
8 Class(Serpentity
, "System")({
12 * This will be run when the system is added to the engine
14 added : function added(engine
) {
19 * This will be run when the system is removed from the engine
21 removed : function removed(engine
) {
26 * This will run every time the engine's update method is called
28 update : function update(dt
) {