You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add prepare:assets script for game asset setup (#11)
Add a Node.js script that sets up LEGO Island game assets via symlinks:
- Accepts source path interactively or via --path/-p flag
- Case-insensitive file matching for cross-platform compatibility
- Validates all required files before making changes
- Supports optional extra/ and textures/ folders
- Includes --force/-f flag to skip deletion confirmation
Updates README with new setup step and script documentation.
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,17 +23,27 @@ A custom web frontend for the Emscripten port of [isle-portable](https://github.
23
23
24
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
25
26
-
4. Start the development server:
26
+
4. Set up the LEGO Island game assets:
27
+
```bash
28
+
npm run prepare:assets
29
+
```
30
+
This will prompt you for the path to your LEGO Island installation or mounted ISO and create the necessary symlinks. You can also provide the path directly:
31
+
```bash
32
+
npm run prepare:assets -- -p /path/to/your/LEGO
33
+
```
34
+
35
+
5. Start the development server:
27
36
```bash
28
37
npm run dev
29
38
```
30
39
31
-
5. Open the URL shown in the terminal (usually `http://localhost:5173`).
40
+
6. Open the URL shown in the terminal (usually `http://localhost:5173`).
32
41
33
42
## Scripts
34
43
35
44
| Command | Description |
36
45
|---------|-------------|
46
+
|`npm run prepare:assets`| Set up LEGO Island game assets via symlinks |
37
47
|`npm run dev`| Start development server with hot reload |
38
48
|`npm run build`| Build for production (outputs to `dist/`) |
39
49
|`npm run preview`| Preview the production build locally |
0 commit comments