Space Invaders–style game using raylib-go (github.com/gen2brain/raylib-go/raylib). Part of the polyglot repo; see the root README for context, controls overview, and comparison notes.
- Go — version in
go.mod(currentlygo 1.25.6). - CGO and Raylib — raylib-go wraps the C library. Install Raylib development files for your OS so the linker can find
libraylib(and typical graphics deps: OpenGL, X11/Wayland, etc., depending on platform).
From the repository root:
cd go-invaders
go run .cd go-invaders
go test ./...main.go— window, input, game loop, rendering.config.go— screen size, speeds, limits.entities.go— shared types / helpers for game objects.
Move with Left / Right, A / D, or H / L. Space fires with an 8-frame cooldown (key-down). Enter restarts after game over or win. Full table and differences vs Rust/Zig: root README — Controls.