|
From: | Julian Day |
Subject: | Re: [Chicken-users] Question about embedding Chicken scheme |
Date: | Wed, 23 Jan 2013 18:25:14 -0600 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
On 23/01/2013 6:09 PM, Kristian Lein-Mathisen wrote:
Are you planning on using any established game-engines or libraries? What will probably become very interesting is where your C++-code ends and where your Scheme begins.
Hi Kristian,The game is currently pure C and C++. As for libraries, I currently use xerces (XML), curses (UI), Google Test, and boost/stl. The game itself is currently in a playable state - the player can win or lose, there's a generated world to explore, etc., though it's currently pretty bare.
My plan is to start with reasonably small scope, and use Scheme for the quest logic. I'd like to have a number of optional side quests beyond the basic roguelike "dive to the bottom of the dungeon". I could do this in C++, but I see an opportunity to work in my favourite programming language, so I'm going to take it. :)
So I have a crazy idea, how about writing all of it in Scheme? So instead of exposing a function to add a message to the UI, you can expose functions to draw the UI, and do your game in Scheme. Then as you move along and things settle, you can port the slow/critical parts to faster C-code if you need to. Just a thought. There are several eggs <http://wiki.call-cc.org/chicken-projects/egg-index-4.html#graphics> for graphics available that might suit your drawing needs, like cairo or opengl.
Much too late for that, I'm afraid! The game itself is currently just under 2 MB of code, resource strings, and configuration details. I'm quite happy with its current state. I'd love to try Scheme as the main language for a game, but this project's much too far in for that.
Julian
[Prev in Thread] | Current Thread | [Next in Thread] |