Skip to content

2.5d Engine / Dungeon crawler (clone of notch's Prelude of the Chambered) in Common Lisp

Notifications You must be signed in to change notification settings

paines/cl-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2.5d Engine / Dungeon crawler (clone of notch's Prelude of the Chambered (https://www.youtube.com/watch?v=rhN35bGvM8c)) in Common Lisp

This is an attempt to redo the above mentioned game in Common Lisp. To get things running you will need

  • sdl2kit
  • png-read
  • static-vectors

Best is, pull and compile them via quicklisp.

For now following things are working:

  • rendering of floor and ceiling
  • texture mapping of floor and ceiling with the same texture
  • shading
  • keyboard / mouse handling

The intention was to experiment with writing a game and beeing able to change things more interactively than notch himself is doing in the video. Once you have the programm running you can e.g. :

  • change the width and height -> resulting in a better or worse looking quality which has of course high impact on the performance
  • load different textures
  • change the behaviour of rendering or post processing (shading in general)
  • swith of post processing completely All these things and more you can do on the fly while the program is running. You could achieve this with using Emacs + Slime. The code uses a resolution of 160x120 pixels (global parameters width and height) and scales up to whatever resolution you want (global parameters window-with and window-height).

The code is tested under Ubuntu 14.04, 64bit + SBCL in a VM (~25 fps), and Mac OSX Yosemit,64bit + CCL (~35 fps) and ECL (<10 fps).

Please note, everything is done on a per pixel basis with the cpu, the gpu is only used for scaling and blitting the resulting picture to the screen.

About

2.5d Engine / Dungeon crawler (clone of notch's Prelude of the Chambered) in Common Lisp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published