Removed vsstudio project

works on mac
other minor changes
This commit is contained in:
2021-08-24 18:20:48 +02:00
parent f6679961f3
commit fcb1f2a9ee
14 changed files with 43 additions and 242 deletions

View File

@@ -15,7 +15,8 @@ Score::Score() {
void Score::Update() {
char strScore[10];
itoa(score, strScore, 10);
sprintf(strScore, "%d", score);
//itoa(score, strScore, 10);
Print(220, 4, strScore, 255, 255, 0);
if (lives > 0) Draw(5, 5, 10, 85, 18, 18);
if (lives > 1) Draw(25, 5, 10, 85, 18, 18);
@@ -23,10 +24,10 @@ void Score::Update() {
}
void Score::ProcessMessage(const char* msg) {
if (msg == "IncreaseScore") {
if (message_eq("IncreaseScore")) {
int* params = GetMessageParams();
score += params[0];
} else if (msg == "DecreaseLives") {
} else if (message_eq("DecreaseLives")) {
lives--;
}
}