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.
Map/Map.cpp@6:12e8433382b3, 2020-04-16 (annotated)
- Committer:
- evanso
- Date:
- Thu Apr 16 16:25:53 2020 +0000
- Revision:
- 6:12e8433382b3
- Child:
- 7:0af4ced868f5
Restricted spaceship movement to middle third of the screen in the x-direction. Started adding drawing functions to map class.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| evanso | 6:12e8433382b3 | 1 | #include "Map.h" |
| evanso | 6:12e8433382b3 | 2 | |
| evanso | 6:12e8433382b3 | 3 | Map::Map() { |
| evanso | 6:12e8433382b3 | 4 | |
| evanso | 6:12e8433382b3 | 5 | } |
| evanso | 6:12e8433382b3 | 6 | |
| evanso | 6:12e8433382b3 | 7 | Map::~Map() { |
| evanso | 6:12e8433382b3 | 8 | |
| evanso | 6:12e8433382b3 | 9 | } |
| evanso | 6:12e8433382b3 | 10 | |
| evanso | 6:12e8433382b3 | 11 | void Map::init() { |
| evanso | 6:12e8433382b3 | 12 | position_x_map_ = 0; |
| evanso | 6:12e8433382b3 | 13 | position_y_map_ = 48; |
| evanso | 6:12e8433382b3 | 14 | } |
| evanso | 6:12e8433382b3 | 15 | |
| evanso | 6:12e8433382b3 | 16 | |
| evanso | 6:12e8433382b3 | 17 | void Map::draw_triangle(N5110 &lcd){ |
| evanso | 6:12e8433382b3 | 18 | lcd.drawLine(0,48,5,43,1); |
| evanso | 6:12e8433382b3 | 19 | lcd.drawLine(5,43,10,48,1); |
| evanso | 6:12e8433382b3 | 20 | } |