fix(games): correct Snake self-collision on spawn, enlarge Tetris, brighten labels
Snake: the snake was initialized with its head at the left end while moving right, so the first gravity step walked the head into its own body and the game started at Game Over. Initialize the head at the right end (cx) so the initial direction is valid. Tetris: enlarge the playfield cell (10 -> 12px) so pieces are not too small, and slow gravity (800ms base, gentler per-level ramp, 250ms floor) so pieces do not fall too fast. Both: brighten the secondary/dim text colour (0x0a3a0a -> 0x2f9f2f) so score/label/menu text is actually legible on the black background. Also wire the Games section into the real main menu: the system menu is hardcoded in the dwm-plugin dmenu (src/sxmo-dmenu/dmenu.c), not in sxmo_appmenu.sh, so add a 'games' builtin menu that loads sxmo_hook_games.sh and a Games entry after Apps in the sys menu, plus scripts/build-dmenu.sh to cross-compile dmenu.so.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user