Share levels as files: download and upload on the web, files and drops on the desktop, share codes #12
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Weissstreifen/crystal_climb#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Share levels with other people as files: download them, send them, and upload what you got.
Export:
my_levels.ccl). On the web this is a browser download, on the desktop a file in~/Downloads(or a chosen folder), and the game shows where it went.Import:
.ccl,.txt). On the desktop: drop files on the window, or pick from the files in the import folder.Climb (2)).Share codes (small extra): copy a level as a text code to the clipboard (the board compressed and in base64), and paste a code to import, for sharing in a chat.
All of the file and clipboard handling comes from parin_kit#174 (
core/file_share), the pack writing from parin_kit#176. Until they land, keep the game's versions in one small module withTODO: move to parin_kit, see parin_kit#174.Done when: a level made in the web build on one computer can be downloaded, uploaded in the web build on another and played, and the same with the desktop build.
Implemented with parin_kit#174 (core/file_share): download one/all, upload with the browser's file picker (desktop: list of .ccl files in Downloads), drops on every screen, share codes (copy/paste). The kit module was tested in headless Firefox; the game's buttons still need a try in a real browser, so this stays open until then.