A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Diff: Peripherals/N5110/N5110.cpp
- Revision:
- 33:4f3948dcd2f7
- Parent:
- 30:ec915d24d3e9
--- a/Peripherals/N5110/N5110.cpp Mon May 06 08:56:48 2019 +0000 +++ b/Peripherals/N5110/N5110.cpp Mon May 06 13:27:26 2019 +0000 @@ -485,12 +485,12 @@ int y0, int nrows, int ncols, - int *sprite) + char *sprite) { for (int i = 0; i < nrows; i++) { for (int j = 0 ; j < ncols ; j++) { - int pixel = *((sprite+i*ncols)+j); + int pixel = (int)*((sprite+i*ncols)+j); if (pixel == 2) { pixel = 0; } @@ -503,12 +503,12 @@ int y0, int nrows, int ncols, - int *sprite) + char *sprite) { for (int i = 0; i < nrows; i++) { for (int j = 0 ; j < ncols ; j++) { - int pixel = *((sprite+i*ncols)+j); + int pixel = (int)*((sprite+i*ncols)+j); if (pixel != 0) { if (pixel == 2) { pixel = 0; @@ -519,7 +519,7 @@ } } -int * N5110::readScreen() +char * N5110::readScreen() { for (unsigned int i = 0; i < WIDTH; i++) { for (unsigned int j = 0; j < HEIGHT; j++) {