Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 19 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 (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T22:29:38.000Z (10 months ago)
- Last Synced: 2024-10-20T00:10:46.593Z (2 months ago)
- Topics: engine, engine2d, game-engine, game-engine-2d, game-library, rust, wgpu
- Language: Rust
- Homepage:
- Size: 1.21 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Simple Rust 2D Game Engine
[![dependency status](https://deps.rs/repo/github/Overpeek/srs2dge/status.svg)](https://deps.rs/repo/github/Overpeek/srs2dge)
[![build status](https://github.com/Overpeek/srs2dge/actions/workflows/rust.yml/badge.svg)](https://github.com/Overpeek/srs2dge/actions)
[![crates.io](https://img.shields.io/crates/v/srs2dge.svg?label=srs2dge)](https://crates.io/crates/srs2dge)
[![docs.rs](https://docs.rs/srs2dge/badge.svg)](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