# 17cupsofcoffee/tetra

🎮 A simple 2D game framework written in Rust

Repository: https://github.com/17cupsofcoffee/tetra
Canonical: https://ross.abutalabs.com/products/tetra
Language: Rust
License: MIT
License Family: permissive
Topics: rust, gamedev, game-frameworks, game-development, 2d-game-framework, game-engine
Last push: 2026-07-22T10:15:09+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 50, longevity 100
- inputs: {"age_days": 2894, "days_push": 42, "days_rel": 338, "gap_med": 9, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1010, forks 62 (observed 2026-08-28T04:03:13.086942+00:00)

## What it is
Tetra is a simple 2D game framework written in Rust, using SDL for events and OpenGL 3.2+ for rendering. It offers an XNA/MonoGame-inspired API with batched 2D rendering, input handling, and a deterministic game loop.

## Use cases
- build a 2D game in Rust
- make a simple 2D game with SDL and OpenGL
- XNA/MonoGame-style game framework for Rust
- render sprites with draw call batching
- handle keyboard, mouse, and gamepad input in a Rust game
- create a deterministic fixed-timestep game loop

## When to choose
- you want a simple, lightweight 2D game framework in Rust
- you prefer an XNA/MonoGame-inspired API
- you need a deterministic game loop and built-in font rendering, cameras, and screen scaling

## When to avoid
- you need a framework under active feature development - consider macroquad or ggez instead
- you need 3D rendering or a full game engine
- you require guaranteed bug fixes or new features, since the project is only passively maintained

## Facets
- artifact type: framework
- maturity: maintenance
- function: game-engine, graphics
- domain: -
- platform: cross-platform, rust
- tags: 2d, sdl2, opengl, gamedev, xna-inspired, game-development

## Member repositories
- 17cupsofcoffee/tetra (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.086942+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:53.458361+00:00, confidence not recorded.
  - readme: https://github.com/17cupsofcoffee/tetra (fetched 2026-08-28T04:03:13.086942+00:00, sha e6c0904e87d6)
  - registry_crates: https://crates.io/api/v1/crates/tetra (fetched 2026-08-29T13:11:35.991315+00:00, sha 009c850bd024)
- Data as of 2026-08-30T08:39:29.467469+00:00.
