Started project, implemented keyboard and controller movement
This commit is contained in:
parent
b1f5d882f0
commit
d8fa53801b
33 changed files with 931 additions and 73 deletions
17
src/Actors/ActorFactory.cpp
Normal file
17
src/Actors/ActorFactory.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "ActorFactory.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
std::shared_ptr<Actor> ActorFactory::CreateActor(SDL_FRect hitbox)
|
||||
{
|
||||
auto actor = std::make_shared<Actor>(Actor(hitbox));
|
||||
actor ->Init();
|
||||
return actor;
|
||||
}
|
||||
|
||||
std::shared_ptr<MovingActor> ActorFactory::CreateMovingActor(SDL_FRect hitbox)
|
||||
{
|
||||
auto actor = std::make_shared<MovingActor>(MovingActor(hitbox));
|
||||
actor ->Init();
|
||||
return actor;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue