| ... | ... |
@@ -85,7 +85,7 @@ BRK |
| 85 | 85 |
|
| 86 | 86 |
### Controller(dev/ctrl) |
| 87 | 87 |
|
| 88 |
-A device that works like a NES controller, each button is a bit from a single byte. |
|
| 88 |
+A device that works like a NES controller, each button is a bit from a single byte. Press `h` to toggle debugger. |
|
| 89 | 89 |
|
| 90 | 90 |
- `0x01` Ctrl |
| 91 | 91 |
- `0x02` Alt |
| ... | ... |
@@ -258,6 +258,8 @@ void |
| 258 | 258 |
doctrl(SDL_Event *event, int z) |
| 259 | 259 |
{
|
| 260 | 260 |
Uint8 flag = 0x00; |
| 261 |
+ if(z && event->key.keysym.sym == SDLK_h) |
|
| 262 |
+ GUIDES = !GUIDES; |
|
| 261 | 263 |
if(SDL_GetModState() & KMOD_LCTRL || SDL_GetModState() & KMOD_RCTRL) |
| 262 | 264 |
flag = 0x01; |
| 263 | 265 |
if(SDL_GetModState() & KMOD_LALT || SDL_GetModState() & KMOD_RALT) |
| ... | ... |
@@ -394,7 +396,7 @@ main(int argc, char **argv) |
| 394 | 396 |
|
| 395 | 397 |
devconsole = portuxn(&u, "console", defaultrw, consolew); |
| 396 | 398 |
devscreen = portuxn(&u, "screen", screenr, screenw); |
| 397 |
- devsprite = portuxn(&u, "sprite", defaultrw, spritew); |
|
| 399 |
+ devsprite = portuxn(&u, "sprite", screenr, spritew); |
|
| 398 | 400 |
devcontroller = portuxn(&u, "controller", defaultrw, defaultrw); |
| 399 | 401 |
devkey = portuxn(&u, "key", defaultrw, consolew); |
| 400 | 402 |
devmouse = portuxn(&u, "mouse", defaultrw, defaultrw); |
| ... | ... |
@@ -29,7 +29,7 @@ BRK |
| 29 | 29 |
|
| 30 | 30 |
( check paint ) |
| 31 | 31 |
#04 IOR #00 EQU ,skip ROT JMP? POP2 |
| 32 |
- #05 ,brush_large ~mousex #0004 SUB2 ~mousey #0004 SUB2 ,drawsprite JSR |
|
| 32 |
+ #05 ,brush_large ~mousex #0004 SUB2 ~mousey #0004 SUB2 ,drawsprite JSR |
|
| 33 | 33 |
@skip |
| 34 | 34 |
|
| 35 | 35 |
~mousex =lastx ~mousey =lasty |