Nimbin[12]?Games / Entropie / entropie/src/world/course.h

Entropie git · main

Entropie festival game; first steps

sdl c game entropie cmake · first commit 2026-10-10 · last commit 2026-11-02 (18 hours ago) · synced 10 hours ago

C 88.5% Markdown 9.1% GLSL 2.3%
git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gz
entropie/src/world/course.h 745 B · 20 lines raw
#ifndef WORLD_COURSE_H
#define WORLD_COURSE_H

/*
 * An obstacle course in the chicken farm's yard, for trying out walking,
 * running and sprinting over things. Three lanes side by side:
 *
 *   left    one thing every 4 m, getting higher: a branch, firewood, logs,
 *           crates (the last one too high to step over)
 *   middle  close together: logs a stride apart and less, then crates
 *   right   things that don't move: a bench, the cool box, a low wall, a
 *           stump, then a block to climb
 */

#include "world/world.h"

/* Lays the course out and stands who at its start, facing down it (yaw in radians); who NULL: only lays it out. */
bool Course_build(World *world, Object *who, float *yaw);

#endif /* WORLD_COURSE_H */