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
18
src/Actors/ActorFactory.h
Normal file
18
src/Actors/ActorFactory.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef ACTOR_FACTORY_H
|
||||
#define ACTOR_FACTORY_H
|
||||
|
||||
#include <memory>
|
||||
#include <SDL3/SDL_rect.h>
|
||||
#include "Actor.h"
|
||||
#include "MovingActor.h"
|
||||
|
||||
class ActorFactory
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<Actor> CreateActor(SDL_FRect hitbox);
|
||||
static std::shared_ptr<MovingActor> CreateMovingActor(SDL_FRect hitbox);
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue