|
1 | | -# [isle.pizza](https://isle.pizza) frontend |
| 1 | +# [isle.pizza](https://isle.pizza) Frontend |
2 | 2 |
|
3 | | -This is a custom frontend for the Emscripten port of [isle-portable](https://github.com/isledecomp/isle-portable). To use this, build the Emscripten version of the game and couple `isle.js` as well as `isle.wasm` with the files in this repository, and open `index.html`. |
| 3 | +A custom web frontend for the Emscripten port of [isle-portable](https://github.com/isledecomp/isle-portable), allowing LEGO Island to run directly in modern web browsers. |
4 | 4 |
|
5 | | -[A Docker image that bundles the runtime with this frontend is also available](https://github.com/isledecomp/isle-portable/wiki/Installation#web-port-emscripten). |
| 5 | +<img width="1209" height="792" alt="image" src="https://github.com/user-attachments/assets/b98f8fef-8f30-49be-b424-99c27ea552f3" /> |
| 6 | + |
| 7 | +## Requirements |
| 8 | + |
| 9 | +- [Node.js](https://nodejs.org/) |
| 10 | + |
| 11 | +## Quick Start |
| 12 | + |
| 13 | +1. Clone the repository: |
| 14 | + ```bash |
| 15 | + git clone https://github.com/isledecomp/isle.pizza.git |
| 16 | + cd isle.pizza |
| 17 | + ``` |
| 18 | + |
| 19 | +2. Install dependencies: |
| 20 | + ```bash |
| 21 | + npm install |
| 22 | + ``` |
| 23 | + |
| 24 | +3. Obtain the game files (`isle.js` and `isle.wasm`) by building the Emscripten version of [isle-portable](https://github.com/isledecomp/isle-portable), then copy them to the project root. |
| 25 | + |
| 26 | +4. Start the development server: |
| 27 | + ```bash |
| 28 | + npm run dev |
| 29 | + ``` |
| 30 | + |
| 31 | +5. Open the URL shown in the terminal (usually `http://localhost:5173`). |
| 32 | + |
| 33 | +## Scripts |
| 34 | + |
| 35 | +| Command | Description | |
| 36 | +|---------|-------------| |
| 37 | +| `npm run dev` | Start development server with hot reload | |
| 38 | +| `npm run build` | Build for production (outputs to `dist/`) | |
| 39 | +| `npm run preview` | Preview the production build locally | |
| 40 | + |
| 41 | +## Project Structure |
| 42 | + |
| 43 | +``` |
| 44 | +isle.pizza/ |
| 45 | +├── src/ |
| 46 | +│ ├── App.svelte # Main application component |
| 47 | +│ ├── app.css # Global styles |
| 48 | +│ ├── stores.js # Svelte stores for state management |
| 49 | +│ ├── core/ # Core modules (audio, OPFS, service worker, etc.) |
| 50 | +│ └── lib/ # UI components |
| 51 | +├── public/ # Static assets (images, fonts, PDFs) |
| 52 | +├── scripts/ # Build scripts |
| 53 | +├── src-sw/ # Service worker source |
| 54 | +├── index.html # HTML entry point |
| 55 | +├── isle.js # Emscripten JS (not in repo, build from isle-portable) |
| 56 | +├── isle.wasm # Emscripten WASM (not in repo, build from isle-portable) |
| 57 | +└── LEGO/ # Game data directory (not in repo) |
| 58 | +``` |
| 59 | + |
| 60 | +## Building the Game Files |
| 61 | + |
| 62 | +The `isle.js` and `isle.wasm` files are not included in this repository. To obtain them: |
| 63 | + |
| 64 | +1. Follow the [isle-portable build instructions](https://github.com/isledecomp/isle-portable#building) for the Emscripten target |
| 65 | +2. Copy the resulting `isle.js` and `isle.wasm` to this project's root directory |
| 66 | + |
| 67 | +Alternatively, a [Docker image that bundles the runtime with this frontend](https://github.com/isledecomp/isle-portable/wiki/Installation#web-port-emscripten) is available. |
| 68 | + |
| 69 | +## Tech Stack |
| 70 | + |
| 71 | +- [Svelte 5](https://svelte.dev/) - UI framework |
| 72 | +- [Vite](https://vitejs.dev/) - Build tool and dev server |
| 73 | +- [Workbox](https://developer.chrome.com/docs/workbox/) - Service worker and offline support |
| 74 | + |
| 75 | +## License |
| 76 | + |
| 77 | +See [LICENSE](LICENSE) for details. |
0 commit comments