Scorepoints

This commit is contained in:
rendo 2026-03-13 15:26:27 +05:00
commit ed0c9eb221
4 changed files with 26 additions and 0 deletions

11
src/scorepoint.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "components.h"
#include "world.h"
#include <raylib.h>
Scorepoint::Scorepoint(){
this->texture = TextureAtlas(get_world().get_atlas(),112,0,16,16);
}
void Scorepoint::draw() const {
DrawTextureRec(this->texture.get_texture(), this->texture.full_view(), this->position, WHITE);
}