Changeset 711 for soft/giet_vm/applications/raycast/game.c
- Timestamp:
- Oct 3, 2015, 1:48:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/raycast/game.c
r710 r711 23 23 {4, 0, 0, 0, 0, 0, 1, 0, 0, 1}, 24 24 {0, 4, 4, 4, 4, 0, 0, 0, 1, 0} 25 }, 25 26 // {1, , , , , 1, , , 1, 1}, 27 // { , , , , , 1, , , , 2}, 28 // { , , , , 1, , , , 1, 1}, 29 // { , , , 1, 3, , 3, , , }, 30 // { , , , 1, 3, , 3, , , 1}, 31 // { , , , 1, 3, , 3, , , }, 32 // { , , , 1, 1, , 3, , , 1}, 33 // {4, , , , , , 1, , , }, 34 // {4, , , , , , 1, , , 1}, 35 // { , 4, 4, 4, 4, , , , 1, } 36 }, 26 37 .w = 10, 27 38 .h = 10, … … 168 179 // Only six commands are accepted: 169 180 // - key Q : quit game 170 // - key UP : forward move 171 // - key DOWN : backward move 172 // - key RIGHT : right move 173 // - key LEFT : left move 174 // - any other key : continue 175 // several moves can be made before continue 181 // - key UP : move forward 182 // - key DOWN : move backward 183 // - key RIGHT : move right 184 // - key LEFT : move left 185 // - key SPACE : continue 186 // All other keys are ignored 187 // Several<move> can be made before <continue> 176 188 177 189 char c; … … 200 212 giet_tty_printf("QUIT\n"); 201 213 } 202 else 214 else if (c == 0x20 ) // continue 203 215 { 204 216 done = 1; … … 212 224 state = 2; 213 225 } 214 else 226 else if (c == 0x20 ) // continue 215 227 { 216 228 done = 1; … … 246 258 state = 0; 247 259 } 248 else 260 else if (c == 0x20 ) // continue 249 261 { 250 262 done = 1;
Note: See TracChangeset
for help on using the changeset viewer.