Differences From Artifact [adfd260a0a]:
- File game.c — part of check-in [8119f365c2] at 2020-11-16 04:51:13 on branch trunk — Implement properly (hopefully) the mouse button down event in edit.c and game.c (user: user, size: 3390) [annotate] [blame] [check-ins using]
To Artifact [7106f2aed5]:
- File game.c — part of check-in [c1e8833d15] at 2020-11-22 04:29:23 on branch trunk — Implement level selection in game play mode (not yet complete; needs to initialize the level too), and add some more keyboard commands to the class selection menu in the editor. (user: user, size: 3463) [annotate] [blame] [check-ins using]
| ︙ | |||
69 70 71 72 73 74 75 76 77 78 79 80 81 82 | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | + + + |
static int game_command(int prev,int cmd,int number,int argc,sqlite3_stmt*args,void*aux) {
switch(cmd) {
case '\' ': // Play a move
return number;
case '^E': // Edit
return -2;
case '^L': // Select level
load_level(number);
return 1;
case '^Q': // Quit
return -1;
default:
return prev;
}
}
|
| ︙ |