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.
Hero/Hero.cpp@6:e8c03f264ffc, 2019-05-08 (annotated)
- Committer:
- el17ttds
- Date:
- Wed May 08 19:05:36 2019 +0000
- Revision:
- 6:e8c03f264ffc
- Parent:
- 3:3d35ab70b565
- Child:
- 7:08f78909dda7
Bullets added but don't reset
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17ttds | 2:ee9b361ba6df | 1 | #include "Hero.h" |
| el17ttds | 2:ee9b361ba6df | 2 | |
| el17ttds | 2:ee9b361ba6df | 3 | Hero::Hero() { |
| el17ttds | 2:ee9b361ba6df | 4 | |
| el17ttds | 2:ee9b361ba6df | 5 | } |
| el17ttds | 2:ee9b361ba6df | 6 | |
| el17ttds | 3:3d35ab70b565 | 7 | void Hero::init(int swidth, int sheight) { |
| el17ttds | 3:3d35ab70b565 | 8 | _x = swidth / 2; |
| el17ttds | 3:3d35ab70b565 | 9 | _y = sheight / 2; |
| el17ttds | 2:ee9b361ba6df | 10 | } |
| el17ttds | 2:ee9b361ba6df | 11 | |
| el17ttds | 2:ee9b361ba6df | 12 | void Hero::draw(N5110 &lcd) { |
| el17ttds | 3:3d35ab70b565 | 13 | lcd.drawCircle(_x,_y,5,FILL_TRANSPARENT); |
| el17ttds | 6:e8c03f264ffc | 14 | } |