Añadidos los enemigos

This commit is contained in:
2022-08-20 20:49:35 +02:00
parent 82089bb780
commit 6d2fe4541a
17 changed files with 393 additions and 57 deletions

View File

@@ -27,7 +27,7 @@ Player::Player(SDL_Renderer *renderer, Asset *asset, Input *input, Map *map)
const SDL_Rect rect = {(int)x, (int)y, 16, 24};
sprite->setPos(rect);
sprite->setCurrentAnimation("stand");
sprite->setFlip(SDL_FLIP_HORIZONTAL);
sprite->setFlip(SDL_FLIP_NONE);
jumpStrenght = 2.0f;
gravity = 0.3f;