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.
Dependencies: mbed Gamepad2 ELEC2645_Project_el18rg
Dependents: ELEC2645_Project_el18rg
Splat/Splat.cpp@7:b5ef03efe784, 2020-05-27 (annotated)
- Committer:
- el18rg
- Date:
- Wed May 27 23:24:11 2020 +0000
- Revision:
- 7:b5ef03efe784
- Child:
- 8:c5a8576b2e8d
Got splat working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el18rg | 7:b5ef03efe784 | 1 | #include "Splat.h" |
el18rg | 7:b5ef03efe784 | 2 | |
el18rg | 7:b5ef03efe784 | 3 | Splat::Splat(){} // Constuctor |
el18rg | 7:b5ef03efe784 | 4 | Splat::~Splat(){} // Destructor |
el18rg | 7:b5ef03efe784 | 5 | |
el18rg | 7:b5ef03efe784 | 6 | void Splat::draw(N5110 &lcd) //draws the Cups in the start pos |
el18rg | 7:b5ef03efe784 | 7 | { |
el18rg | 7:b5ef03efe784 | 8 | const int goo[10][9] = { //the array for the Cups, 1=pixel turn on. |
el18rg | 7:b5ef03efe784 | 9 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 10 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 11 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 12 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 13 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 14 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 15 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 16 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 17 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 18 | {1,1,1,1,1,1,1,1,1,1}, |
el18rg | 7:b5ef03efe784 | 19 | }; |
el18rg | 7:b5ef03efe784 | 20 | //draws the Cups |
el18rg | 7:b5ef03efe784 | 21 | lcd.drawSprite(0,0,10,9,(int *)goo); |
el18rg | 7:b5ef03efe784 | 22 | } |