Nimbin[12]?Games / Entropie / entropie/src/people/dog.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/people/dog.h 757 B · 25 lines raw
#ifndef PEOPLE_DOG_H
#define PEOPLE_DOG_H

/*
 * Alice, the dachshund.
 *
 * She trots after you when you walk off, sniffs around, begs from anyone
 * holding a sausage, comes when called (R), wags her tail when petted
 * (click on her) and lies down by a burning fire. A woof now and then.
 */

#include "world/object.h"
#include "render/renderer.h"

void Dog_update(Object *dog, Object *const *objects, int count, float dt);
/* Called by name: she comes running. */
void Dog_call(Object *dog, const Object *player);
/* Petted: tail wagging, happy noises. */
void Dog_pet(Object *dog);
/* Body, legs and tail. */
void Dog_draw(Renderer *r, const Object *dog);
/* Frees the shared leg and tail meshes. */
void Dog_shutdown(void);

#endif /* PEOPLE_DOG_H */