Shell code for the Tanks game
Dependencies: 4DGL-uLCD-SE EthernetInterface Game_Synchronizer MMA8452 SDFileSystem mbed-rtos mbed wave_player
Diff: Tank/tank.cpp
- Revision:
- 20:6a58052b0140
- Parent:
- 19:7aa3af04d6a8
- Child:
- 21:edfeb289b21f
--- a/Tank/tank.cpp Wed Oct 28 08:40:55 2015 +0000 +++ b/Tank/tank.cpp Thu Oct 29 02:21:11 2015 +0000 @@ -5,7 +5,10 @@ extern Game_Synchronizer sync; - +// sx is the x-coord of the bottom left corner of the tank +// sy is the y-coord of the same corner +// width is the width of the tank +// height is the height of the tank Tank::Tank(int sx, int sy, int width, int height, int color) { x = sx; y = sy; w = width; h = height;