https://github.com/xor-bits/srs2dge
Simple Rust 2D Game Engine
https://github.com/xor-bits/srs2dge
engine engine2d game-engine game-engine-2d game-library rust wgpu
Last synced: 16 days ago
JSON representation
Simple Rust 2D Game Engine
- Host: GitHub
- URL: https://github.com/xor-bits/srs2dge
- Owner: xor-bits
- License: mit
- Created: 2021-11-12T11:17:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T22:29:38.000Z (over 1 year ago)
- Last Synced: 2025-04-02T15:22:04.106Z (3 months ago)
- Topics: engine, engine2d, game-engine, game-engine-2d, game-library, rust, wgpu
- Language: Rust
- Homepage:
- Size: 1.21 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Simple Rust 2D Game Engine
[](https://deps.rs/repo/github/Overpeek/srs2dge)
[](https://github.com/Overpeek/srs2dge/actions)
[](https://crates.io/crates/srs2dge)
[](https://docs.rs/srs2dge/)### Live demo at: https://gpu.ovpk.net
## Demo images
#### examples/tetris
#### examples/platformer
#### examples/main
## Runtime env var configs:
#### `PRESENT_MODE`
- `mailbox/mail/sync/mb/m/s` for immediate without tearing
- `fifo/f` for no tearing (fallback)
- `immediate/nosync/im/i` for immediate#### `WGPU_BACKEND` (one or more comma separated)
- `vulkan/vk` to allow Vulkan
- `dx12/d3d12` to allow DirectX 12
- `dx11/d3d11` to allow DirectX 11
- `metal/mtl` to allow Metal
- `opengl/gles/gl` to allow OpenGL
- `webgpu` to allow WebGPU#### `WGPU_POWER_PREF`
- `low` to pick 'high efficiency low power GPU'
- `high` to pick 'low efficiency high power GPU'##### Examples:
- `PRESENT_MODE=mailbox` to use 'vertical sync'
- `WGPU_BACKEND=vulkan,opengl` to allow vulkan and/or opengl to be used
- `WGPU_POWER_PREF=low` to prefer low power video cards