← Back to all projects

Mouse Visual

A pixel-art mouse drawn frame by frame in pure C with Raylib. A low-level 2D graphics exercise.

Real recording of the program running ·view original GIF →

Key Features

Pure C with Raylib

2D rendering through Raylib's minimal API: no engines or frameworks, just the static library on top of X11/OpenGL.

One Makefile, Two Platforms

`make` builds the Linux binary linking libraylib.a; `make windows` cross-builds mouse_app.exe with x86_64-w64-mingw32-gcc without inheriting X11 flags.

Automatic Dependency Setup

`download_raylib.sh` downloads and compiles raylib for both Linux and Windows (MinGW) before the first build.

Style Discipline

Constants defined with #define in alphabetical order and intermediate variables before every Raylib call as a deliberate convention.

Building

Linux

./download_raylib.sh
make
./mouse_app

Windows (cross compile)

make windows
# -> mouse_app.exe via MinGW

Explore the Code

Review the full source code and the multiplatform Makefile on GitHub.

View on GitHub