Nemesis game, rocket
Diff: Rocket.cpp
- Revision:
- 11:7734b721ed43
- Parent:
- 10:71e2de3ae034
--- a/Rocket.cpp Tue May 02 22:13:39 2017 +0000 +++ b/Rocket.cpp Wed May 03 20:03:37 2017 +0000 @@ -8,13 +8,18 @@ { } + +// Initializion method: + void Rocket::init(int x, int y) { - - _x = x; + _x = x; // X and y coordinates input when method is used. _y = y; } + +// Draws rocket onto LCD: + void Rocket::draw(N5110 &lcd) { lcd.drawLine(_x,_y,_x+78,_y,1);