Started project, implemented keyboard and controller movement

This commit is contained in:
Sarah Faey 2025-04-17 22:53:25 +02:00
parent b1f5d882f0
commit d8fa53801b
33 changed files with 931 additions and 73 deletions

View 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;
}