o
odin.langpkg.dev
packages / app / ninjagame

ninjagame

b125c62app

No description provided.

No license · updated 3 weeks ago

Ninja Game

Simple top-down game built with Odin and Raylib.

See docs/ for an explanation of the architecture.

Project layout

src/
  main.odin, spawn.odin, player.odin   # package main — game loop and player logic
  config/config.odin                   # package config — settings and asset paths
  engine/                              # package engine — ECS, animation, assets, input, tilemap

Prerequisites

Asset sprites live under assets/ (e.g. assets/Actor/Character/Boy/SeparateAnim/Idle.png). Run the game from the project root so those paths resolve.

Build and run

Using the Nix dev shell (includes Odin and Raylib):

nix develop
odin build src -out:ninjagame
./ninjagame

Tests

nix develop
odin test src/engine