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.
Dependencies: mbed
Diff: Floors/Floors.cpp
- Revision:
- 2:360a6c301a4e
- Parent:
- 1:0001cb3eb053
- Child:
- 3:116913e97fd7
--- a/Floors/Floors.cpp Tue Apr 09 20:15:33 2019 +0000 +++ b/Floors/Floors.cpp Wed Apr 10 17:34:02 2019 +0000 @@ -4,13 +4,13 @@ } Floors::~Floors(){ } - -void Floors::init(int height, int width){ +// screen WIDTH =84 and HEIGHT = 48 + +void Floors::init(int _x, int _y, int height, int width){ _height = height; _width = width; - - _x = WIDTH/2 ; // initial floors position - _y = HEIGHT/2; + + _velocity.x = 0; _velocity.y = 1;