How to use the preprocessor commands?
Monkey Forums/Monkey Programming/How to use the preprocessor commands?
| ||
I thought I would share with you how to use the preprocessor commands, it took me a time to work it out. This is how you would use the #TARGET command: #If TARGET="android" then DrawText "X = "+AccelX(), self.playerBat.x+20, self.playerBat.y DrawText "Y = "+AccelY(), self.playerBat.x+20, self.playerBat.y+10 DrawText "Z = "+AccelZ(), self.playerBat.x+20, self.playerBat.y+20 #Endif So when I run my app on android it will display these 3 lines of text. |