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.
Image.cpp@3:d31341240f10, 2019-04-23 (annotated)
- Committer:
- MYY
- Date:
- Tue Apr 23 17:49:07 2019 +0000
- Revision:
- 3:d31341240f10
- Parent:
- 2:b6d3420ab907
- Child:
- 6:100377ba0900
Create new image for second game level.;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| MYY | 0:da6e8a366665 | 1 | #include "Image.h" |
| MYY | 0:da6e8a366665 | 2 | |
| MYY | 0:da6e8a366665 | 3 | |
| MYY | 0:da6e8a366665 | 4 | void Image::draw_1(N5110 &lcd) |
| MYY | 0:da6e8a366665 | 5 | { |
| MYY | 0:da6e8a366665 | 6 | int i; |
| MYY | 0:da6e8a366665 | 7 | //big gold |
| MYY | 0:da6e8a366665 | 8 | for(i=0; i<3; i=i+1) { |
| MYY | 0:da6e8a366665 | 9 | lcd.drawSprite(level_1_x[i],level_1_y[i], 5, 8, (int*)BigGold); |
| MYY | 0:da6e8a366665 | 10 | }; |
| MYY | 0:da6e8a366665 | 11 | // small gold |
| MYY | 0:da6e8a366665 | 12 | for(i=3; i<5; i=i+1) { |
| MYY | 0:da6e8a366665 | 13 | lcd.drawSprite(level_1_x[i], level_1_y[i], 4, 3, (int*)SmallGold); |
| MYY | 0:da6e8a366665 | 14 | }; |
| MYY | 0:da6e8a366665 | 15 | //Big rock |
| MYY | 0:da6e8a366665 | 16 | for(i=5; i<7; i=i+1) { |
| MYY | 0:da6e8a366665 | 17 | lcd.drawSprite(level_1_x[i], level_1_y[i], 8, 10, (int*)BigRock); |
| MYY | 0:da6e8a366665 | 18 | } |
| MYY | 0:da6e8a366665 | 19 | } |
| MYY | 3:d31341240f10 | 20 |