• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

orthecreedence/ghostie: A platformer/2D game engine in CL

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

orthecreedence/ghostie

开源软件地址(OpenSource Url):

https://github.com/orthecreedence/ghostie

开源编程语言(OpenSource Language):

Common Lisp 87.6%

开源软件介绍(OpenSource Introduction):

Ghostie

Ghostie is a 2D game engine engine for Common Lisp. See the demo here in low-res with shitty colors (anyone know a good screencasting tool for windows?).

The goal of Ghostie is to provide an engine for easily creating beautiful games without making (m)any assumptions about the gameplay itself.

Dependencies

Some of these probably aren't in Quicklisp, so you'll have to put them into your local-projects/. Sorry.

  • cl-svg-polygon - Used to convert SVG files into levels.
  • glu-tessellate - Used to transform polygons into triangles (for OpenGL rendering).
  • clipmunk - My fork of the clipmunk bindings, which wrap the latest versions of the Chipmunk physics library.
  • chipmunk-wrapper - Some nice CLOS wrappage around clipmunk that makes the bindings a bit more lispy.

C Libraries

You will need to have Chipmunk physics >= 6.1.3 (compiled with -DCHIPMUNK_FFI) and GLFW installed on your system for Ghostie to run.

Usage

(ql:quickload :ghostie-demo)
(ghostie-demo:start)

This starts the demo level, which is a basic demonstration of a mobile character and interaction with the physics environment. The demo level is tiny for now, but the idea is eventually to create a full-blown game level in the demo.

Key bindings:

  • Arrow keys: move character
  • a: Add box to simulation (for testing physics)
  • l: Reload level from scratch (reset player position, remove any boxes, etc)
  • -: Zoom out camera
  • =: Zoom in camera
  • c: Recompile shaders (allows modification of shaders in-game)
  • q: Quit

TODO

This is constantly changing as I figure out what I want to do with Ghostie. For a complete TODO, see the issues list.

Notes

Ghostie requires OpenGL >= 3.3 as it makes use of shaders and some other newer OpenGL extensions that are only available in later versions. Get with the times, man.

Ghostie currently runs everything (game logic/physics/rendering) in one thread. Control is immediately returned to the caller after the thread is spawned.

Ghostie is entirely a work in progress and there is a lot of non-trivial work to do on it, as outlined above. My goal is to not only provide a viable option for 2D game programming in lisp, but make it so easy that armed with a vision and some time, anybody can make a good looking, fun to play game in the best programming language available.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap