Behaviour component is now called Movement component!
Removed the old component.
Added a queue object that keeps track of time and manages scheduling events with a queue.
Added a Scheduler object that uses a queue to schedule events based on speed and is able to repeat them.
Added some new behaviours for the Movement component.
MapFactory now adds new enemies to the scheduler.
Added a shim for the requestAnimFrame functionality.
Entities now hold a reference to the game object and they have a speed.
Player factory now defines the speed and behaviour of the default player.
Enemy factory now defines the speed and behaviour of a skeleton.
The Game object holds a scheduler and locks and unlocks it whenever needed.
All new scripts added to the index.html.
KeyboardControl component now handles the keyDown events.
The skeleton is now a very fast spider.
A KeyboardControl component now has controls and it only reacts to those controls!
The game now holds the keyboard, we don't want a new keyboard object for every keyboardControl component.
Let these objects initialize in the 'constructor'. This way we won't have to call Initialize() on these objects anymore.
Removed the Control system as keyboardControl components now handle this functionality.
The player doesn't have a behaviour component, because it is controlled by a real person.
Spiders can't fly, they need to have walkBehaviour.