added ui, enemy, sounds, fixed anims

This commit is contained in:
h4570
2020-12-06 16:41:40 +01:00
parent 94e4f8ea3a
commit bcad6f7941
12 changed files with 470 additions and 137 deletions
+35
View File
@@ -0,0 +1,35 @@
/*
# ______ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2020, tyra - https://github.com/h4570/tyra
# Licenced under Apache License 2.0
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#ifndef _UI_
#define _UI_
#include <modules/texture_repository.hpp>
#include <modules/renderer.hpp>
#include "objects/player.hpp"
#include <tamtypes.h>
class Ui
{
public:
Ui(TextureRepository *t_texRepo);
~Ui();
void update(const Player &player);
void render(Renderer *t_renderer);
private:
u8 isTask1Done, isTask2Done;
Sprite task1, task2, task1Checkbox, task2Checkbox;
Texture *grayCheckboxTex, *blueCheckboxTex;
};
#endif