source-code/
snakey
Public
codeCodeinfoIssues 0call_splitPull Requestsplay_circleActions
snakey/src/game/constants.ts
typescript13 lines300 B
export const GRID_SIZE = 20;
export const CANVAS_WIDTH = 800;
export const CANVAS_HEIGHT = 600;
export const MOVE_INTERVAL = 120; // milliseconds per move

export const GAME_COLORS = {
  SNAKE_BODY: 0x3b82f6,
  SNAKE_HEAD: 0x1d4ed8,
  FOOD: 0xef4444,
  SPECIAL_FOOD: 0xff0000,
  OVERLAY: 0xffffff
};

About

Snakey Web Game is the official hub and sandbox playground for the Snakey project. Built with React 19, Phaser 3, and Tailwind CSS, it offers a central playable zone alongside a Sandbox Playground that lets visitors test eating custom HTML elements. It also hosts and serves self-compiled browser extension packages (ZIP) for Chrome and Firefox, as well as a dynamically-generated bookmarklet installer that enables users to drag-and-drop a shortcut to run the game on any external website.

Web GamePhaserReactTypeScriptTailwind CSSViteBookmarklet

Contributors

1