From: Greg McIntyre Date: 2002-10-24T18:58:49+09:00 Subject: Re: Ever write a video game in ruby? I know people who have written little action games in Python, and I expect the same thing can be done in Ruby (and more easily because of the nice C interface). Although I'm not sure why such simple game logic as exists in these games requires the power and flexibility of Ruby. I'm writing a game which makes heavy use of Ruby to script all its plot-and-dialogue-heavy activity. I currently have a demo where you can walk around a map. Most of the data including the map structure is stored in Ruby data structures, and is only queried and drawn from the C library. It's fast enough but only just. It's probable that I could make it more efficient but I'm currently more interested in implementing the game's features. > I have an in mind project to use ruby to control my graphic routines > (made in C++ & asm). The thing I don't know now is if I'll embed ruby > in my library or make my library a module of ruby. I'm currently using the latter approach and it seems to work well. Because the C library can define Ruby modules, methods and data structures it can provide plug in replacements for equivalent Ruby modules, for time-critical code. -- Greg McIntyre greg@puyo.cjb.net http://puyo.cjb.net