Added a new component, the sprite component! For now it just holds the color of an entity.
Added a renderer system that handles renderering entities on the screen.
Renderer object is no longer responsible for drawing objects.
The mapfactory now generates door entities!
The player is going to be an entity. It is no longer the responsibility of the render object to render it.
The camera object now tracks the position of the specified entities position component.
The player is now an entity with certain components!
I no longer need this array with colors. Entities have a sprite component that handles the image/color.
Huge update to the controlSystem. It is now capable of capturing keys and sending them to each entity that has the keyboardControl component!
The systems.js file was already getting way too big. Seperated it into different files.
Renamed the systems. No need to specify everytime that they are systems.
Refactored the control system and made it responsible for managing the keyboard.
Removed the keyboard from the game object. See previous commit.
Forgot to refer to the local keyboard object. Fixed!
Switches are pretty.
Refactrored the render system.
Removed components.js and placed every component in a seperate file.
The entrance object is now also an entity with components.
Removed the object class, as everything is an entity now!
Removed the player class, as this is handeled with entities and components now.