Platform: Web #591
Labels
No labels
Context: Async
Context: Bug
Context: CI
Context: Dependencies
Context: Documentation
Context: Enhancement
Context: Example
Context: Macro
Context: Runtime
Difficulty: Easy
Difficulty: Hard
Difficulty: Medium
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
Type: Discussion
Type: Evaluation
Type: Tracker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SakulFlee/Orbital#591
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?
Web and #573 & #590 share a lot of similar problems, but in different ways.
We might be able to take solutions from one target over to the other.
1. Proper build tools
There are a lot of different build tools for compiling Rust to WASM.
Unfortunately, all of them require some amount of setup first.
Similar to what we need to do in #573, we should create some kind of universal script (e.g. Makefile, Just, etc.) to generate or ready these project files. We should also think about how we even distribute this ... just a simple website with nothing but the engine? Maybe some kind of legend and info aside it? etc.
2. CI / CD
Similar to 1., we don't have any proper CI / CD setup for Web.
We'd need a way of easily replicating given configurations of Android versions X source code revisions.
Ideally, we'd build some form of distributable website package.
(Optional, not sure if needed ... probably useless for now until we have bigger examples: Push to something like GitHub-Pages!)
3. Asset management
Assets are done much differently on web platforms!
Commonly, the website (e.g. HTML & CSS files) as well as the WebAssembly (WASM) files don't include the assets. These have to be fetched from the server via a REST (or similar) request to basically download these and potentially cache them locally in the browser cache.
This also applies for writing files like save games!
There needs to be a solution for saving files locally.