Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Committer:
el18a2k
Date:
Wed Apr 21 15:24:31 2021 +0000
Revision:
12:20ac766b3175
Parent:
10:e221bd1ce3ec
Child:
13:183bd19f3d7d
lots of bugs

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el18a2k 0:cf9660998431 1 #include "Graphics.h"
el18a2k 0:cf9660998431 2
el18a2k 12:20ac766b3175 3 //draws title screen
el18a2k 0:cf9660998431 4 void Graphics::titleScreen(N5110 &lcd){
el18a2k 12:20ac766b3175 5 //draws an F x y
el18a2k 0:cf9660998431 6 const int F[20][12] = {
el18a2k 0:cf9660998431 7 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 8 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 9 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 10 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 11 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 12 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 13 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 14 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 15 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 16 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 17 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 18 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 19 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 20 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 21 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 22 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 23 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 24 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 25 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 26 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 27 };
el18a2k 0:cf9660998431 28
el18a2k 12:20ac766b3175 29 //draws an I x y
el18a2k 0:cf9660998431 30 const int I[20][4] = {
el18a2k 0:cf9660998431 31 { 1,1,1,1, },
el18a2k 0:cf9660998431 32 { 1,1,1,1, },
el18a2k 0:cf9660998431 33 { 1,1,1,1, },
el18a2k 0:cf9660998431 34 { 1,1,1,1, },
el18a2k 0:cf9660998431 35 { 1,1,1,1, },
el18a2k 0:cf9660998431 36 { 1,1,1,1, },
el18a2k 0:cf9660998431 37 { 1,1,1,1, },
el18a2k 0:cf9660998431 38 { 1,1,1,1, },
el18a2k 0:cf9660998431 39 { 1,1,1,1, },
el18a2k 0:cf9660998431 40 { 1,1,1,1, },
el18a2k 0:cf9660998431 41 { 1,1,1,1, },
el18a2k 0:cf9660998431 42 { 1,1,1,1, },
el18a2k 0:cf9660998431 43 { 1,1,1,1, },
el18a2k 0:cf9660998431 44 { 1,1,1,1, },
el18a2k 0:cf9660998431 45 { 1,1,1,1, },
el18a2k 0:cf9660998431 46 { 1,1,1,1, },
el18a2k 0:cf9660998431 47 { 1,1,1,1, },
el18a2k 0:cf9660998431 48 { 1,1,1,1, },
el18a2k 0:cf9660998431 49 { 1,1,1,1, },
el18a2k 0:cf9660998431 50 { 1,1,1,1, },
el18a2k 0:cf9660998431 51 };
el18a2k 0:cf9660998431 52
el18a2k 12:20ac766b3175 53 //draws an s x y
el18a2k 0:cf9660998431 54 const int S[20][12] = {
el18a2k 0:cf9660998431 55 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 56 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 57 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 58 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 59 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 60 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 61 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 62 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 63 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 64 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 65 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 66 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 67 { 0,0,0,0,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 68 { 0,0,0,0,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 69 { 0,0,0,0,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 70 { 0,0,0,0,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 71 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 72 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 73 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 74 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 75 };
el18a2k 0:cf9660998431 76
el18a2k 12:20ac766b3175 77 //draws an h x y
el18a2k 0:cf9660998431 78 const int H[20][12] = {
el18a2k 0:cf9660998431 79 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 80 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 81 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 82 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 83 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 84 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 85 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 86 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 87 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 88 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 89 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 90 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 91 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 92 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 93 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 94 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 95 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 96 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 97 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 98 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 99 };
el18a2k 0:cf9660998431 100
el18a2k 12:20ac766b3175 101 //draws an e x y
el18a2k 0:cf9660998431 102 const int E[20][12] = {
el18a2k 0:cf9660998431 103 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 104 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 105 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 106 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 107 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 108 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 109 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 110 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 111 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 112 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 113 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 114 { 1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 115 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 116 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 117 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 118 { 1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 119 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 120 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 121 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 122 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 123 };
el18a2k 0:cf9660998431 124
el18a2k 12:20ac766b3175 125 //draws an a x y
el18a2k 0:cf9660998431 126 const int A[20][12] = {
el18a2k 0:cf9660998431 127 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 128 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 129 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 130 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 131 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 132 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 133 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 134 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 135 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 136 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 137 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 138 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 139 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 140 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 141 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 142 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 143 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 144 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 145 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 146 { 1,1,1,1,0,0,0,0,1,1,1,1, },
el18a2k 0:cf9660998431 147 };
el18a2k 0:cf9660998431 148
el18a2k 12:20ac766b3175 149 //draws an t x y
el18a2k 0:cf9660998431 150 const int T[20][12] = {
el18a2k 0:cf9660998431 151 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 152 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 153 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 154 { 1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 155 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 156 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 157 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 158 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 159 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 160 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 161 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 162 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 163 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 164 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 165 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 166 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 167 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 168 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 169 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 170 { 0,0,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 171 };
el18a2k 0:cf9660998431 172
el18a2k 0:cf9660998431 173 lcd.drawRect(0,0,84,48,FILL_TRANSPARENT); //draws screen border
el18a2k 0:cf9660998431 174
el18a2k 2:532b0225519f 175 //pos size
el18a2k 2:532b0225519f 176 //X Y row col
el18a2k 2:532b0225519f 177 lcd.drawSprite(16,2,20,12,(int *)F);
el18a2k 2:532b0225519f 178 lcd.drawSprite(32,2,20,4,(int *)I); //xpos = prevoius x pos + col + 4
el18a2k 2:532b0225519f 179 lcd.drawSprite(40,2,20,12,(int *)S);
el18a2k 2:532b0225519f 180 lcd.drawSprite(56,2,20,12,(int *)H);
el18a2k 0:cf9660998431 181
el18a2k 2:532b0225519f 182 lcd.drawSprite(19,26,20,12,(int *)E);
el18a2k 2:532b0225519f 183 lcd.drawSprite(35,26,20,12,(int *)A);
el18a2k 2:532b0225519f 184 lcd.drawSprite(51,26,20,12,(int *)T);
el18a2k 0:cf9660998431 185 }
el18a2k 0:cf9660998431 186
el18a2k 12:20ac766b3175 187 //creates a confirmation screen to ensure that the player is ready
el18a2k 0:cf9660998431 188 void Graphics::confirmationScreen(N5110 &lcd){
el18a2k 12:20ac766b3175 189 //draws an uneaten fish x y
el18a2k 0:cf9660998431 190 const int Title_fish[44][21] = {
el18a2k 0:cf9660998431 191 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 192 { 0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 193 { 0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 194 { 0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 195 { 0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 196 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 197 { 0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 198 { 0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 199 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 200 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 201 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 202 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 203 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 204 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 205 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 206 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 207 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 208 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 209 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 210 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 211 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 212 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 213 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 214 { 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 215 { 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 216 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 217 { 0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 218 { 0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 219 { 0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 220 { 0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 221 { 0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 222 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 223 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 224 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 225 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 226 { 0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 227 { 0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 228 { 0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 229 { 0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 230 { 0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 231 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 232 { 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 233 { 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 234 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 235 };
el18a2k 0:cf9660998431 236
el18a2k 12:20ac766b3175 237 //draws an eaten fish x y
el18a2k 0:cf9660998431 238 const int Title_fish_eaten[44][21] = {
el18a2k 0:cf9660998431 239 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 240 { 0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 241 { 0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 242 { 0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 243 { 0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 244 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 245 { 0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 246 { 0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 247 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 248 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 249 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 250 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 251 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 252 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 253 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 254 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 255 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 256 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 257 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 258 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 259 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 260 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 261 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 262 { 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 263 { 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 264 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 265 { 0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 266 { 0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 267 { 0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 268 { 0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 269 { 0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 270 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 271 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 272 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 273 { 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 274 { 0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 275 { 0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 276 { 0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 277 { 0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, },
el18a2k 0:cf9660998431 278 { 0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 279 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 280 { 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 281 { 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 282 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 283 };
el18a2k 0:cf9660998431 284
el18a2k 0:cf9660998431 285 lcd.clear();
el18a2k 0:cf9660998431 286 lcd.drawRect(0,0,84,48,FILL_TRANSPARENT); //draws screen border
el18a2k 0:cf9660998431 287 lcd.printString("Hold",12,2);
el18a2k 12:20ac766b3175 288 lcd.printString("B",24,3);
el18a2k 0:cf9660998431 289 lcd.drawSprite(59,2,44,21,(int*)Title_fish);
el18a2k 12:20ac766b3175 290 lcd.refresh();
el18a2k 0:cf9660998431 291 wait_ms(1000);
el18a2k 0:cf9660998431 292 lcd.drawSprite(59,2,44,21,(int*)Title_fish_eaten);
el18a2k 0:cf9660998431 293 lcd.refresh();
el18a2k 1:7dfa61225fcf 294 wait_ms(1000);
el18a2k 0:cf9660998431 295 }
el18a2k 0:cf9660998431 296
el18a2k 12:20ac766b3175 297 //flashes the screen using normal and inverse lcd functions
el18a2k 0:cf9660998431 298 void Graphics::screenFlash(N5110 &lcd){
el18a2k 12:20ac766b3175 299 i = 0;
el18a2k 0:cf9660998431 300
el18a2k 0:cf9660998431 301 while(i<4){
el18a2k 0:cf9660998431 302 lcd.inverseMode();
el18a2k 0:cf9660998431 303 lcd.refresh();
el18a2k 0:cf9660998431 304 wait_ms(100);
el18a2k 0:cf9660998431 305 lcd.normalMode();
el18a2k 0:cf9660998431 306 lcd.refresh();
el18a2k 0:cf9660998431 307 wait_ms(100);
el18a2k 0:cf9660998431 308 i++;
el18a2k 0:cf9660998431 309 }
el18a2k 0:cf9660998431 310 }
el18a2k 0:cf9660998431 311
el18a2k 12:20ac766b3175 312 //displays playing instructions
el18a2k 12:20ac766b3175 313 void Graphics::playerInstruc(N5110 &lcd){
el18a2k 12:20ac766b3175 314 lcd.clear();
el18a2k 12:20ac766b3175 315 lcd.printString("-- Welcome --",3,0);
el18a2k 12:20ac766b3175 316 lcd.printString("Use the",0,2);
el18a2k 12:20ac766b3175 317 lcd.printString("joystick to ",0,3);
el18a2k 12:20ac766b3175 318 lcd.printString("move the fish",0,4);
el18a2k 12:20ac766b3175 319 lcd.refresh();
el18a2k 12:20ac766b3175 320 wait_ms(4000);
el18a2k 12:20ac766b3175 321
el18a2k 12:20ac766b3175 322 lcd.clear();
el18a2k 12:20ac766b3175 323 lcd.printString("remember to",0,1);
el18a2k 12:20ac766b3175 324 lcd.printString("only eat fish",0,2);
el18a2k 12:20ac766b3175 325 lcd.printString("smaller than",0,3);
el18a2k 12:20ac766b3175 326 lcd.printString("or same as",0,4);
el18a2k 12:20ac766b3175 327 lcd.printString("you!!",0,5);
el18a2k 12:20ac766b3175 328 lcd.refresh();
el18a2k 12:20ac766b3175 329 wait_ms(4000);
el18a2k 12:20ac766b3175 330
el18a2k 12:20ac766b3175 331 lcd.clear();
el18a2k 12:20ac766b3175 332 lcd.printString("At the top",0,1);
el18a2k 12:20ac766b3175 333 lcd.printString("left youll",0,2);
el18a2k 12:20ac766b3175 334 lcd.printString("see your",0,3);
el18a2k 12:20ac766b3175 335 lcd.printString("growth bar...",0,4);
el18a2k 12:20ac766b3175 336 lcd.refresh();
el18a2k 12:20ac766b3175 337 wait_ms(4000);
el18a2k 12:20ac766b3175 338
el18a2k 12:20ac766b3175 339 lcd.clear();
el18a2k 12:20ac766b3175 340 lcd.printString("When this is",0,1);
el18a2k 12:20ac766b3175 341 lcd.printString("full your fish",0,2);
el18a2k 12:20ac766b3175 342 lcd.printString("will grow!!",0,3);
el18a2k 12:20ac766b3175 343 lcd.refresh();
el18a2k 12:20ac766b3175 344 wait_ms(4000);
el18a2k 12:20ac766b3175 345
el18a2k 12:20ac766b3175 346 lcd.clear();
el18a2k 12:20ac766b3175 347 lcd.printString("Be careful!",0,1);
el18a2k 12:20ac766b3175 348 lcd.printString("Eat a bigger",0,2);
el18a2k 12:20ac766b3175 349 lcd.printString("fish, you'll",0,3);
el18a2k 12:20ac766b3175 350 lcd.printString("loose a life!",0,4);
el18a2k 12:20ac766b3175 351 lcd.refresh();
el18a2k 12:20ac766b3175 352 wait_ms(4000);
el18a2k 12:20ac766b3175 353
el18a2k 12:20ac766b3175 354 lcd.clear();
el18a2k 12:20ac766b3175 355 lcd.printString("Good Luck!!!",6,1);
el18a2k 12:20ac766b3175 356 lcd.refresh();
el18a2k 12:20ac766b3175 357 wait_ms(4000);
el18a2k 12:20ac766b3175 358 }
el18a2k 12:20ac766b3175 359
el18a2k 12:20ac766b3175 360 void Graphics::gameOver(N5110 &lcd){
el18a2k 12:20ac766b3175 361 lcd.clear();
el18a2k 12:20ac766b3175 362 lcd.printString("Game Over!!!",6,1);
el18a2k 12:20ac766b3175 363 lcd.refresh();
el18a2k 12:20ac766b3175 364 wait_ms(4000);
el18a2k 12:20ac766b3175 365 }
el18a2k 12:20ac766b3175 366
el18a2k 12:20ac766b3175 367 //displays congatulations screen
el18a2k 12:20ac766b3175 368 void Graphics::newHighscore(N5110 &lcd, int score){
el18a2k 12:20ac766b3175 369 int displayScore = score;
el18a2k 12:20ac766b3175 370
el18a2k 12:20ac766b3175 371 //string int
el18a2k 12:20ac766b3175 372 stringCon2 = sprintf(writeScore2, "%i", displayScore); //converts int into string
el18a2k 12:20ac766b3175 373 lcd.clear();
el18a2k 12:20ac766b3175 374 lcd.drawRect(0,0,84,48,FILL_TRANSPARENT); //draws screen border
el18a2k 12:20ac766b3175 375 lcd.printString("New", 33, 1);
el18a2k 12:20ac766b3175 376 lcd.printString("High Score", 14, 2);
el18a2k 12:20ac766b3175 377 lcd.printString(writeScore2, 29, 4);
el18a2k 12:20ac766b3175 378 lcd.refresh();
el18a2k 12:20ac766b3175 379 wait_ms(4000);
el18a2k 12:20ac766b3175 380 }
el18a2k 12:20ac766b3175 381
el18a2k 10:e221bd1ce3ec 382 void Graphics::Fish_1(N5110 &lcd, int _x, int _y){
el18a2k 0:cf9660998431 383 // x y
el18a2k 0:cf9660998431 384 const int Fish_1[4][9]= {
el18a2k 0:cf9660998431 385 { 1,0,0,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 386 { 1,1,1,1,1,1,1,0,1, },
el18a2k 0:cf9660998431 387 { 1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 388 { 1,0,0,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 389 };
el18a2k 0:cf9660998431 390
el18a2k 0:cf9660998431 391 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 392 lcd.drawSprite(_x,_y,4,9,(int*)Fish_1);
el18a2k 0:cf9660998431 393 }
el18a2k 0:cf9660998431 394
el18a2k 10:e221bd1ce3ec 395 void Graphics::Fish_2(N5110 &lcd, int _x, int _y){
el18a2k 0:cf9660998431 396 // x y
el18a2k 0:cf9660998431 397 const int Fish_2[6][14] = {
el18a2k 0:cf9660998431 398 { 1,0,0,0,0,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 399 { 1,1,0,0,1,1,1,1,1,1,0,1,1,0, },
el18a2k 0:cf9660998431 400 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 401 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 402 { 1,1,0,0,1,1,1,1,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 403 { 1,0,0,0,0,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 404 };
el18a2k 0:cf9660998431 405
el18a2k 0:cf9660998431 406 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 407 lcd.drawSprite(_x,_y,6,14,(int*)Fish_2);
el18a2k 0:cf9660998431 408 }
el18a2k 0:cf9660998431 409
el18a2k 10:e221bd1ce3ec 410 void Graphics::Fish_3(N5110 &lcd, int _x, int _y){
el18a2k 0:cf9660998431 411 // x y
el18a2k 0:cf9660998431 412 const int Fish_3[8][17] = {
el18a2k 0:cf9660998431 413 { 1,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0 },
el18a2k 0:cf9660998431 414 { 1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0 },
el18a2k 0:cf9660998431 415 { 1,1,1,0,0,1,1,1,1,1,1,1,1,0,1,1,0 },
el18a2k 0:cf9660998431 416 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 },
el18a2k 0:cf9660998431 417 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 },
el18a2k 0:cf9660998431 418 { 1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0 },
el18a2k 0:cf9660998431 419 { 1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0 },
el18a2k 0:cf9660998431 420 { 1,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0 },
el18a2k 0:cf9660998431 421 };
el18a2k 0:cf9660998431 422
el18a2k 0:cf9660998431 423 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 424 lcd.drawSprite(_x,_y,8,17,(int*)Fish_3);
el18a2k 0:cf9660998431 425 }
el18a2k 0:cf9660998431 426
el18a2k 0:cf9660998431 427
el18a2k 10:e221bd1ce3ec 428 void Graphics::Fish_4(N5110 &lcd, int _x, int _y){
el18a2k 0:cf9660998431 429 // x y
el18a2k 0:cf9660998431 430 const int Fish_4[12][23] = {
el18a2k 0:cf9660998431 431 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 432 { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0, },
el18a2k 0:cf9660998431 433 { 1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 434 { 1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 435 { 1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0, },
el18a2k 0:cf9660998431 436 { 1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 437 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 438 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 0:cf9660998431 439 { 1,1,1,1,0,0,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,0, },
el18a2k 0:cf9660998431 440 { 1,1,1,0,0,0,0,1,1,1,1,1,1,0,0,1,1,1,1,0,0,0,0, },
el18a2k 0:cf9660998431 441 { 1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0, },
el18a2k 0:cf9660998431 442 { 1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0, },
el18a2k 0:cf9660998431 443 };
el18a2k 0:cf9660998431 444
el18a2k 0:cf9660998431 445 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 446 lcd.drawSprite(_x,_y,12,23,(int*)Fish_4);
el18a2k 0:cf9660998431 447 }
el18a2k 0:cf9660998431 448
el18a2k 10:e221bd1ce3ec 449 void Graphics::E_Fish_1(N5110 &lcd, int _x, int _y){
el18a2k 10:e221bd1ce3ec 450 // x y
el18a2k 10:e221bd1ce3ec 451 const int E_Fish_1[4][9]= {
el18a2k 10:e221bd1ce3ec 452 { 0,1,1,1,1,1,0,0,1, },
el18a2k 10:e221bd1ce3ec 453 { 1,0,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 454 { 1,1,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 455 { 0,1,1,1,1,1,0,0,1, },
el18a2k 10:e221bd1ce3ec 456 };
el18a2k 10:e221bd1ce3ec 457
el18a2k 10:e221bd1ce3ec 458 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 459 lcd.drawSprite(_x,_y,4,9,(int*)E_Fish_1);
el18a2k 10:e221bd1ce3ec 460 }
el18a2k 0:cf9660998431 461
el18a2k 10:e221bd1ce3ec 462 void Graphics::E_Fish_2(N5110 &lcd, int _x, int _y){
el18a2k 0:cf9660998431 463 // x y
el18a2k 10:e221bd1ce3ec 464 const int E_Fish_2[6][14] = {
el18a2k 10:e221bd1ce3ec 465 { 0,0,1,1,1,1,1,1,1,0,0,0,0,1, },
el18a2k 10:e221bd1ce3ec 466 { 0,1,1,0,1,1,1,1,1,1,0,0,1,1, },
el18a2k 10:e221bd1ce3ec 467 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 468 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 469 { 0,1,1,1,1,1,1,1,1,1,0,0,1,1, },
el18a2k 10:e221bd1ce3ec 470 { 0,0,1,1,1,1,1,1,1,0,0,0,0,1, },
el18a2k 0:cf9660998431 471 };
el18a2k 0:cf9660998431 472
el18a2k 10:e221bd1ce3ec 473 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 474 lcd.drawSprite(_x,_y,6,14,(int*)E_Fish_2);
el18a2k 10:e221bd1ce3ec 475 }
el18a2k 10:e221bd1ce3ec 476
el18a2k 10:e221bd1ce3ec 477 void Graphics::E_Fish_3(N5110 &lcd, int _x, int _y){
el18a2k 10:e221bd1ce3ec 478 // x y
el18a2k 10:e221bd1ce3ec 479 const int E_Fish_3[8][17] = {
el18a2k 10:e221bd1ce3ec 480 { 0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,1, },
el18a2k 10:e221bd1ce3ec 481 { 0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1, },
el18a2k 10:e221bd1ce3ec 482 { 0,1,1,0,1,1,1,1,1,1,1,1,0,0,1,1,1, },
el18a2k 10:e221bd1ce3ec 483 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 484 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 485 { 0,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1, },
el18a2k 10:e221bd1ce3ec 486 { 0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1, },
el18a2k 10:e221bd1ce3ec 487 { 0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,1, },
el18a2k 10:e221bd1ce3ec 488 };
el18a2k 0:cf9660998431 489
el18a2k 10:e221bd1ce3ec 490 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 491 lcd.drawSprite(_x,_y,8,17,(int*)E_Fish_3);
el18a2k 10:e221bd1ce3ec 492 }
el18a2k 10:e221bd1ce3ec 493
el18a2k 10:e221bd1ce3ec 494
el18a2k 10:e221bd1ce3ec 495 void Graphics::E_Fish_4(N5110 &lcd, int _x, int _y){
el18a2k 10:e221bd1ce3ec 496 // x y
el18a2k 10:e221bd1ce3ec 497 const int E_Fish_4[12][23] = {
el18a2k 10:e221bd1ce3ec 498 { 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0, },
el18a2k 10:e221bd1ce3ec 499 { 0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0, },
el18a2k 10:e221bd1ce3ec 500 { 0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1, },
el18a2k 10:e221bd1ce3ec 501 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1, },
el18a2k 10:e221bd1ce3ec 502 { 0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1, },
el18a2k 10:e221bd1ce3ec 503 { 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 504 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 505 { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 506 { 0,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1, },
el18a2k 10:e221bd1ce3ec 507 { 0,0,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,1,1, },
el18a2k 10:e221bd1ce3ec 508 { 0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,1,1, },
el18a2k 10:e221bd1ce3ec 509 { 0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1, },
el18a2k 10:e221bd1ce3ec 510 };
el18a2k 10:e221bd1ce3ec 511
el18a2k 10:e221bd1ce3ec 512 //pos / sprite x y / x y
el18a2k 10:e221bd1ce3ec 513 lcd.drawSprite(_x,_y,12,23,(int*)E_Fish_4);
el18a2k 0:cf9660998431 514 }