Skip to content
/ tomegus Public

Rogue like game in C

License

Notifications You must be signed in to change notification settings

kitnil/tomegus

Repository files navigation

-*- mode: org -*-

Tomegus is a simple rogue-like game written following Coding a Classic Roguelike in C - YouTube series.

https://user-images.githubusercontent.com/7709598/139604680-d08c801d-8a08-4ccc-bb3c-4fe5c4bf54e5.gif

Build

guix time-machine --channels=channels.scm \
     -- shell --development --file=guix.scm \
     -- sh -c 'set -e; autoreconf -vfi; ./configure CFLAGS="-O0 -g -Wall -Werror" LIBS="-lm"; make'

Run

src/tomegus

Development environment (deprecated ‘guix environment’)

guix environment --root=guix-tomegus --pure --load=guix.scm --ad-hoc strace gdb coreutils findutils grep
autoreconf -vfi
./configure CFLAGS="-O0 -g -Wall -Werror" LIBS="-lm"
guix environment --pure --load=guix.scm -- ./configure LIBS="-lm"
guix environment --pure --load=guix.scm -- make
set environment C_INCLUDE_PATH=/home/natsu/src/tomegus/guix-tomegus/include
(local-set-key "<f5>" #'wi-compile)

(defun wi-compile ()
  (interactive)
  (switch-to-buffer "*gud*")
  (insert "make")
  (comint-send-input))