SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
ControllerComponent.hpp
Go to the documentation of this file.
1 #ifndef CONTROLLERCOMPONENT_HPP
2 #define CONTROLLERCOMPONENT_HPP
3 
4 #include "Component.hpp"
5 #include "PhysicsComponent.hpp"
6 #include "TinyMath.hpp"
7 #include "SDL2/SDL.h"
8 #include "GameManager.hpp"
9 
10 #include "InputManager.hpp"
11 
12 #define PLAYER_SPEED 15
13 #define PLAYER_JUMP_VEL 30
14 
16 {
17 public:
20 
21  void Update(float deltaTime);
22 private:
23  PhysicsComponent* physics = nullptr;
24 };
25 
26 #endif
Definition: PhysicsComponent.hpp:8
void Update(float deltaTime)
Update this component according to the deltaTime.
Definition: ControllerComponent.cpp:12
~ControllerComponent()
Definition: ControllerComponent.cpp:8
ControllerComponent()
Definition: ControllerComponent.cpp:4
Definition: Component.hpp:13
Definition: ControllerComponent.hpp:15