Win conditions
This commit is contained in:
parent
c67ddcc6d2
commit
d32fb76f86
7 changed files with 31 additions and 28 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue