Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Friendly.cpp
- Revision:
- 9:3c411d37d390
- Parent:
- 8:b57e73c0cd7a
- Child:
- 10:b856d73db923
diff -r b57e73c0cd7a -r 3c411d37d390 Friendly.cpp --- a/Friendly.cpp Tue Apr 25 10:13:02 2017 +0000 +++ b/Friendly.cpp Mon May 01 13:01:20 2017 +0000 @@ -10,10 +10,10 @@ { } -void Friendly::init(int x,int height,int width) // initialization +void Friendly::init() // initialization { _x = 2; // starting x position (fixed) - _y = HEIGHT/2 - height/2; // starting y position (centre) + _y = 18; // starting y position (centre) } void Friendly::draw(N5110 &lcd) // draws friendly ship in screen buffer