Web release: mouse in the browser, saves, file sharing, upload #16

Open
opened 2026-11-04 00:43:38 +00:00 by Weissstreifen · 1 comment

Make the web build ready to put online, since that's how people will play it and share levels.

  • tools/build_web.sh --release builds; the page fills the browser window with the canvas scaled by whole numbers, black and white around it.
  • The mouse works in the canvas: the crosshair follows it, the system cursor is hidden over the field, right click doesn't open the browser menu (the game can use it), the page doesn't scroll on wheel or arrow keys.
  • Saves, My levels and the high scores survive reloads (IndexedDB); the save name is crystal_climb.
  • File download/upload and drop work in Chrome and Firefox (#12).
  • Touch: decide whether phones are supported (tap to set the crosshair, a blast button), or show a "best with a mouse" note.
  • Upload to itch.io as an HTML project (ZIP of web/index.*), or host it on our own server; a page with a short how-to-play.

Done when: the release build is online, and the full flow works there: play, editor, save, download, upload on another computer.

Make the web build ready to put online, since that's how people will play it and share levels. - `tools/build_web.sh --release` builds; the page fills the browser window with the canvas scaled by whole numbers, black and white around it. - The **mouse** works in the canvas: the crosshair follows it, the system cursor is hidden over the field, right click doesn't open the browser menu (the game can use it), the page doesn't scroll on wheel or arrow keys. - Saves, My levels and the high scores survive reloads (IndexedDB); the save name is `crystal_climb`. - File download/upload and drop work in Chrome and Firefox (#12). - Touch: decide whether phones are supported (tap to set the crosshair, a blast button), or show a "best with a mouse" note. - Upload to itch.io as an HTML project (ZIP of `web/index.*`), or host it on our own server; a page with a short how-to-play. **Done when:** the release build is online, and the full flow works there: play, editor, save, download, upload on another computer.
Author
Owner

The release web build works (tools/build_web.sh --release), tested in headless Firefox: splash, menu, a level. Right click doesn't open the browser menu, the cursor hides while steering. Not uploaded anywhere yet.

The release web build works (tools/build_web.sh --release), tested in headless Firefox: splash, menu, a level. Right click doesn't open the browser menu, the cursor hides while steering. Not uploaded anywhere yet.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/crystal_climb#16
No description provided.