mirror of
https://github.com/Xevion/rust-sdl2-emscripten.git
synced 2025-12-06 01:16:14 -06:00
Project concept in README
This commit is contained in:
22
README.md
22
README.md
@@ -11,7 +11,7 @@ This is an experimental repository while testing a Rust + SDL2 project built wit
|
||||
- [X] Reproducible SDL2 Emscripten Builds
|
||||
- This ensures that the project can iterate safely and be inspected in a safe environment, free from errors. Helps ensure errors are isolated to the machine or build script.
|
||||
- [ ] SDL2 Extensions
|
||||
- [ ] Image
|
||||
- [X] Image
|
||||
- [ ] Mixer
|
||||
- [ ] TTF
|
||||
- [ ] GFX
|
||||
@@ -22,6 +22,20 @@ This is an experimental repository while testing a Rust + SDL2 project built wit
|
||||
- [ ] Windows, MacOS, Linux Builds
|
||||
- Simple ability to provide multi-platform builds in addition to the WASM build.
|
||||
|
||||
### Concept
|
||||
|
||||
- A decent codebase without extras or warnings. Straightforward build process for Windows, Linux, and WASM.
|
||||
- Note: Cross-compiling for Windows is a bit of a pain, but it's possible. That said, GitHub Actions can handle Windows builds natively.
|
||||
- While SDL2 has annoying as fuck lifetimes, Emscripten callback loop imbibes even worse static lifetimes that are damn near impossible to satisfy.
|
||||
- A simple example of a game loop, input handling, and rendering.
|
||||
- Pausing functionality, native-only quit.
|
||||
- FPS counter toggle (TTF example).
|
||||
- Sprites with Atlas
|
||||
- Resizable Canvas
|
||||
- Javascript Interop
|
||||
- LocalStorage
|
||||
- Fetch
|
||||
|
||||
### Resources
|
||||
|
||||
- [KyleMiles/Rust-SDL-Emscripten-Template/](https://github.com/KyleMiles/Rust-SDL-Emscripten-Template/)
|
||||
@@ -34,4 +48,8 @@ This is an experimental repository while testing a Rust + SDL2 project built wit
|
||||
- Image usage, decent code example
|
||||
- Has more advanced javascript config and examples to look at.
|
||||
- [deckarep/flappy-rust](https://github.com/deckarep/flappy-rust/)
|
||||
- Image + Mixer Usage, possibly GFX & TTF
|
||||
- Image + Mixer Usage, possibly GFX & TTF
|
||||
- [aelred/tetris](https://github.com/aelred/tetris)
|
||||
- No idea how well it works overall, but it has a lot more advanced Emscripten bindings.
|
||||
- Contains multiple sub-projects, including a web server. Uses SDL2 TTF & Mixer.
|
||||
- See the [REST functions](https://github.com/aelred/tetris/blob/master/tetris/src/rest.rs#L99) for Emscripten.
|
||||
Reference in New Issue
Block a user