Lem
GitHubDiscord Matrix Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

SDL2 features

The SDL2 backend of Lem adds images and graphics support. You can draw at any location on a specified buffer or window.

Mouse actions

This version also adds mouse support. Mouse clicks allow some actions:

  • a middle mouse click inserts an S-expression at the cursor position,
  • a double click or triple click selects S-expressions.

The directory mode handles clicks on files and directories.

Games

Lem can run graphical games! Try this:

M-x load-library RET tetris RET
M-x tetris

Stop the game with q. By the way, Tetris works in the ncurses frontend too.

Lem’s author also showcased running a platform game inside of Lem. See on Youtube: https://youtu.be/FKqpJhO_OHc?t=1120

He develops the game interactively. On the screenshot below, he inspects the player class, changes its X and Y coordinates and the game is updated on the fly.

Lem developers are investigating interfacing to Trial, the game engine of the Kandria game.

Misc

Transparent background

You can add a transparent background to Lem’s SDL2 GUI! Add this to your init file:

(sdl2-ffi.functions:sdl-set-window-opacity
 (lem-sdl2/display:display-window (lem-sdl2/display:current-display)) 0.9)