Win conditions

This commit is contained in:
Rendo 2026-03-15 00:47:21 +05:00
commit d32fb76f86
7 changed files with 31 additions and 28 deletions

View file

@ -10,6 +10,10 @@ void Scorepoint::draw() const {
DrawTextureRec(this->texture.get_texture(), this->texture.full_view(), this->position, WHITE);
}
void Scorepoint::ready() {
get_world().total_scorepoints++;
}
Cherry::Cherry(){
texture = {get_world().get_atlas(),112,16,16,16};
}
@ -17,3 +21,7 @@ Cherry::Cherry(){
void Cherry::draw() const {
DrawTextureRec(texture.get_texture(),texture.full_view(),position,WHITE);
}
void Cherry::ready() {
get_world().total_scorepoints++;
}