Removed vsstudio project
works on mac other minor changes
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user