Just testing displaying images for the lequel
main.cpp@18:09c54d06944e, 2018-12-13 (annotated)
- Committer:
- Vampirics
- Date:
- Thu Dec 13 14:05:40 2018 +0000
- Revision:
- 18:09c54d06944e
- Parent:
- 17:2bf164ef973d
1st version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pokitto | 0:2d2a3994d55d | 1 | #include "Pokitto.h" |
Vampirics | 18:09c54d06944e | 2 | #include "loverushtitle.h" |
Pokitto | 0:2d2a3994d55d | 3 | |
Pokitto | 0:2d2a3994d55d | 4 | Pokitto::Core mygame; |
Pokitto | 0:2d2a3994d55d | 5 | |
Vampirics | 18:09c54d06944e | 6 | int main () |
Vampirics | 18:09c54d06944e | 7 | { |
Pokitto | 0:2d2a3994d55d | 8 | mygame.begin(); |
Vampirics | 18:09c54d06944e | 9 | mygame.display.load565Palette(loverushtitle_pal); //load the palette for the image |
Vampirics | 18:09c54d06944e | 10 | mygame.display.bgcolor=1; // set color 1 (purple) as background |
Vampirics | 18:09c54d06944e | 11 | /* the "while" loop runs as long as the program is running */ |
Pokitto | 0:2d2a3994d55d | 12 | while (mygame.isRunning()) { |
Vampirics | 18:09c54d06944e | 13 | /* mygame.update() is processed whenever it is time to update the screen */ |
Vampirics | 18:09c54d06944e | 14 | if (mygame.update()) { |
Vampirics | 18:09c54d06944e | 15 | mygame.display.drawBitmap(0,0,loverushtitle); // draw the pokitto_icon graphic |
Vampirics | 18:09c54d06944e | 16 | } |
Vampirics | 18:09c54d06944e | 17 | } |
Vampirics | 18:09c54d06944e | 18 | |
Vampirics | 18:09c54d06944e | 19 | return 0; // this is "good programming manners". Program informs it ended without errors |
Pokitto | 0:2d2a3994d55d | 20 | } |