{"repo":"17cupsofcoffee/tetra","free":true,"listed":false,"github":"https://github.com/17cupsofcoffee/tetra","clone":"git clone https://github.com/17cupsofcoffee/tetra.git","description":"🎮 A simple 2D game framework written in Rust","language":"Rust","stars":1016,"topics":["rust","gamedev","game-frameworks","game-development","2d-game-framework","game-engine"],"license":"MIT","category":"game-templates","readme_excerpt":"Tetra Tetra is a simple 2D game framework written in Rust. It uses SDL for event handling and OpenGL 3.2+ for rendering. API Docs Installation Guide Distribution Guide Examples Tutorial FAQ Status Tetra is being passively maintained, as of January 2022. No new features are planned, but occasional bugfix updates may still be released from time to time. PRs may be accepted if they don't have a large maintainence burden. If you're looking for a similar framework that's more actively developed, try macroquad or GGEZ. Alternatively, you can try nova, my spiritual successor to this library (much smaller scope, still very experimental). Features XNA/MonoGame-inspired API Efficient 2D rendering, with draw call batching by default Easy input handling, via polling or events, with support for gamepads Deterministic game loop by default, à la Fix Your Timestep Common building blocks built-in, such as: Font rendering Cameras Screen scaling Installation To add Tetra to your project, add the following line to your Cargo.toml file: You will also need to install the SDL native libraries - full details are provided in the documentation. Examples To get a simple window displayed on screen, the following code can be used: You can see this example in action by running cargo run --example hello world . The full list of examples is available here. Support/Feedback Tetra is fairly early in development, so you might run into bugs/flaky docs/general weirdness. Please feel free to open an issue/PR if y","default_branch":null,"files":null,"tree":[],"storefront":"/r/17cupsofcoffee","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/17cupsofcoffee/tetra/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}