Laila Al Badwawi 200906179 SpaceInvaders I declare this my own independent work and understand the university rules on plagiarism.
Dependencies: mbed
Diff: Spaceship/Spaceship.cpp
- Revision:
- 108:ca888bb3ed54
- Parent:
- 107:83b0bc100600
- Child:
- 109:2137a6a63840
--- a/Spaceship/Spaceship.cpp Sun May 05 13:27:20 2019 +0000 +++ b/Spaceship/Spaceship.cpp Sun May 05 13:29:31 2019 +0000 @@ -23,3 +23,12 @@ //lcd.drawSprite(_x_spaceship,_y_spaceship,10,12,(int *) spaceship_2); } + + +void Spaceship::update(Direction d,float mag) +{ + _speed_spaceship = int(mag*10.0f); + + + +}