Skip to content

lockie/racket-engine

Repository files navigation

racket-engine

Built with Spacemacs Code size Downloads License

A simple SDL2-based game engine in Racket language, loosely inspired by LÖVE framework. Used to create Itch.io Lisp Game Jam 2019 entry called Darkness Looming.

Screenshot

Installation

Windows

Use the provided binaries archive in releases section. Just run darkness-looming.exe from it.

Ubuntu

Use the provided binaries archive in releases section. You'll need SDL2, SDL2_image, SDL2_mixer and SDL2_ttf libraries:

sudo apt-get install libsd2-2.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 libsdl2-ttf-2.0-0
sudo ln -s /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 /usr/lib/libSDL2.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0 /usr/lib/libSDL2_image.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0 /usr/lib/libSDL2_mixer.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libSDL2_ttf-2.0.so.0 /usr/lib/libSDL2_ttf.so

To run the game in the unpacked archive directory:

cd DL/bin
./darkness-looming

If there's no sound, try running export SDL_AUDIODRIVER=alsa first.

Other Linuces

Use the provided binaries archive in releases section. You'll need SDL2, SDL2_image, SDL2_mixer and SDL2_ttf libraries. To run the game in the unpacked archive directory:

cd DL/bin
./darkness-looming

If there's no sound, try running export SDL_AUDIODRIVER=alsa first.

From source

To run the game from source:

  1. you'll need working Racket 7.0+ installation.
  2. Install necessary packages: raco pkg install csv-reading sxml sdl
  3. If you're using git, don't forget to pull all the assets from Git LFS: git lfs fetch
  4. run racket darkness-looming.rkt

Art

List of art used in the game

License

MIT