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.h@2:ee9b361ba6df, 2019-05-05 (annotated)
- Committer:
- el17ttds
- Date:
- Sun May 05 21:54:07 2019 +0000
- Revision:
- 2:ee9b361ba6df
- Child:
- 3:3d35ab70b565
Basic movement with classes created. Unknown error
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17ttds | 2:ee9b361ba6df | 1 | #include "mbed.h" |
el17ttds | 2:ee9b361ba6df | 2 | #include "N5110.h" |
el17ttds | 2:ee9b361ba6df | 3 | #include "Gamepad.h" |
el17ttds | 2:ee9b361ba6df | 4 | |
el17ttds | 2:ee9b361ba6df | 5 | class Map { |
el17ttds | 2:ee9b361ba6df | 6 | |
el17ttds | 2:ee9b361ba6df | 7 | public: |
el17ttds | 2:ee9b361ba6df | 8 | Map(); |
el17ttds | 2:ee9b361ba6df | 9 | ~Map(); |
el17ttds | 2:ee9b361ba6df | 10 | void init(int width,int height); |
el17ttds | 2:ee9b361ba6df | 11 | void write(int pix_x, int pix_y); |
el17ttds | 2:ee9b361ba6df | 12 | void draw(N5110 &lcd); |
el17ttds | 2:ee9b361ba6df | 13 | private: |
el17ttds | 2:ee9b361ba6df | 14 | int _w; |
el17ttds | 2:ee9b361ba6df | 15 | int _h; |
el17ttds | 2:ee9b361ba6df | 16 | int _x1; |
el17ttds | 2:ee9b361ba6df | 17 | int _x2; |
el17ttds | 2:ee9b361ba6df | 18 | int _y1; |
el17ttds | 2:ee9b361ba6df | 19 | int _y2; |
el17ttds | 2:ee9b361ba6df | 20 | }; |