Windgate’s tutorial in English

Windgate’s excellent tutorial (which can be found here in Spanish) and covers most aspects of game programming for beginners has made quite a buzz amongst Spanish speaking Bennu users.

Being such a good resource for beginners, it made sense to have it translated into English. Currently, only chapter I (of the 22 available now) is translated and available in the wiki. Nonetheless, more lessons will be uploaded as they get translated, so keep an eye on the wiki!

Hope it’s useful for you.
Nice coding!

Remember: Bennu event in Castellón this week-end! (and another event next week)

Remember that this weekend, Pixel is hosting a Bennu programming course in a LAN Party in Castellón (Spain).
If you are around, feel free to go say Pixel hi!

Also, Iria Prieto Suárez is hosting a 2 hour Fenix/Bennu programming course during the Navarparty 7 LAN Party in Navarre (Spain) on the 24th of September (timetable in Spanish here).

Happy coding!

Otro evento más relacionado con Bennu, esta vez en Castellón

Uno de los usuarios más activos del foro, que además es artista vectorial, dueño de y sobre todo usuario de Bennu anunció recientemente en este mensaje al foro oficial de Bennu que está organizando unos cursillos sobre Bennu en el marco del Infor&Games Festival 2009 que tendrá lugar en Castellón (España) entre el 17 y el 20 de Septiembre (¡mi cumple!).

¡Continúa leyendo para saber más sobre el evento.!

Pixel se encarga de tres talleres durante la LAN Party:

  • Una conferencia sobre Bennu.
  • Un concurso de programación con Bennu.
  • Una conferencia sobre desarrollo de videojuegos en general.

Así que, si estás pensando en pasar los días anteriores al equinoccio cerquita de Castellón (¡que puede ser una idea muy recomendable!) y quieres saber algo más sobre Bennu, esta puede ser una gran oportunidad.

[Actualización] Pixel nos ha enviado el póster del evento. ¿Ves los logos de PixJuegos y Bennu? ¡Ahí estamos!

Bennu 1.0.0RC8 lanzada. Parece una versión final.

Hace un par de días, Splinter lanzó la Release Candidate 8 de BennuGD. Esta versión añade soporte para la variable global “scale_resolution”, que viene bien para aquellos que programan para diversas resoluciones, como cuando uno está desarrollando en un PC pero la plataforma final para sus juegos es una consola con una resolución inferior (¡pero mira que son majos los de GPH!).

La última revision del repositorio de desarrollo svn de Bennu sólo añade soporte para esta característica con cambios internos a libvideo, librender y libmouse.

La idea es algo como que, habiendo establecido el modo gráfico con set_mode, puedas mostrar la pantalla a otra resolución distinta con la variable global scale_resolution como sigue:
scale_resolution = WWWWHHHH ;
Donde: WWWW es la anchura deseada del modo gráfico de destino y HHHH es la altura.

En la imagen se muestra el mismo código funcionando con la variable scale_resolution activada (ventana de la derecha) y sin ella (ventanta de la izquierda).

Según Splinter, aún hay detalles que limar (por ejemplo el escalado es muy rudimentario), pero parece que ya funciona bastante bien.

¡Seguro que será útil para quienes desarrollen para consolas!

¡Feliz programación!

Community interviews (Part II) [Updated with Sandman’s desktop photo!]

I thought it might be fun and interesting to conduct a series of interviews with relevant members of the Bennu community so they could share with the rest of us their thoughts about the project and its future. Some of the answers are known to those of us that have been around longer, but I considered them to be of interest to those new to the community.

On part I of the series, Splinter suggested Sandman would be a good candidate for a new interview and therefore I got in touch with him. He agreed and some time later, here you are: Part II – Interview with Sandman.

  • First of all: thanks for accepting to take the interview. Please introduce yourself and tell us about your role in the Bennu community today.
  • How did you first get in touch with Div/Fenix/Bennu?

    Hi, I’m Freark van der Berg, more commonly known as Sandman amongst the DIV/Fenix/Bennu crowd, and I’m studying Computer Science at the University of Twente in The Netherlands. I live on the campus, near the city of Enschede, but my home and roots are still my hometown Leeuwarden.

    Around the age of 15 I got to know DIV Games Studio and gave it a go. Starting with some tutorials, it became apparent I liked programming, so I also got DIV 2. This was a disappointment though, because the sound was awful for some reason. Moreover, after a year or so fiddling with DIV, I moved to Windows XP and so DIV didn’t work anymore. This made me move to Fenix and I do not regret that move. What Fenix lacked in stability, it made up with features and expandability.

    This expandability enabled to make my own libraries for Fenix and so adding functionality I missed. The first library I did was adding a log() function I think, but I’m unsure. The mostly used library – and the only one actually advertised – is network.dll. Nowadays I think of it as a slow bugger, but back then it was a nice project to do. The goal of the library was to be easy to use and in that it succeeded splendidly if I may say so. If one considers the alternatives, it’s still a proper choice. Another library was joy.dll, adding joystick functionality. The Fenix joystick code was – and still is – very lousy. It doesn’t work correctly with multiple joystick and only supports two axis and four buttons.

    Doing these libraries, I got to know the base code of Fenix better and better and I realised it was not the best code I’d ever see. Then Juan picked up the development and started fixing bugs. It wasn’t long after when I added him on MSN, telling him about bugs here and there. Then at some point he forked Fenix into Bennu, so I followed him. This is where I came more involved in the project, where we started discussing development and goals. That’s where I am today.

  • Please, send us a photo of the physical desktop where you usually do your Bennu related work (no pre-photo cleaning allowed).


  • About Bennu itself, while reading your posts on both bennu forums, one gets the impression that quite a few of the new features that go into Bennu come from you (say joystick support, mod_crypt, the initial gp2x port and probably others). To what extent is that true?

    Yes, (better) joystick support and gp2x were my initiative. Just like Fenix, Bennu’s original joystick code was awful, so I merged joy.dll into Bennu and passed it to Juan. The idea behind the GP2X port was just because I can, with little else in mind. The latest module mod_crypt was actually a joint venture. Juan wanted to add some form of encryption to Bennu and so we discussed various options. This one was the most viable at that moment and so he made it.

  • Not long ago you announced you are working in a university project called Molapse. Please explain in plain English what’s it about and what role does Bennu play on the project. Also, what other technologies you’re using on the project?

    Molapse is a 3D viewer for multidimensional databases, making use of MOLAP. Bennu is used for the logic of the application, handling input, GUI, etc. It’s the controller part of the MVC paradigm. The model part is mod_sql and the view part is mod_renderer.

    The library mod_sql is actually more than just a module for SQL. It would have been better to call it mod_molap or something, because we implemented MOLAP operations using an SQL database, the SQLite library to be precise, because of its portability.

    The library mod_renderer is the part that renders everything to screen, using OpenGL. It makes use of some nice shaders, to make sure everything is rendered properly and beautifully.

    There are more libraries used; mod_events for example is a library I was working on to add events to Bennu. If you want to know more, you can do a checkout from the project page on Google Code. Mind that we are actually using a modified version of Bennu; the modifications are listed in a file in the modified Bennu directory.

  • What other Bennu-related projects are you working on at the moment?

    I’ve been away for some weeks at the time of writing, but in a broad sense of at the moment, you could say I am still working on some projects.

    Firstly, there’s the OpenGL library I’ve been busy with for some time now. I need to add new object sorting to it and it can actually be released I think. The goal of this project is to use OpenGL for the 2D rendering. Not only is this faster in many cases, it also provides the ability to use other things like shaders and models. I’m only interested in basic 2D drawing and basic 3D drawing. Consider the original Grand Theft Auto game and its GP2X spin-off Payback. A preview of it doing some scrolls can be found here.

    I’m also looking into making my own script language. I’ve been tinkering with libJIT and so far it seems like a viable option. The language I have in mind is a cross between Bennu and C++. I like OOP and I can’t miss it when making games, especially the inheritance is important to me. Bennu plainly lacks in that departement, not even having union or enum for that matter.

  • Not long ago, the forums appeared as a place for English-only speaking activity. Why did that happen?.

    The original creator, Squarepush, wanted to make this forum, because he didn’t quite like the original one. I can imagine why and I agree with him on that. On the original board, Spanish is just too overwhelming I think. I’m not sure if people agree with me on that, but I like an English-only board. The original board is mainly in Spanish with good reason: the main developer is Spanish and the majority of the users are Spanish.

  • You’re running some very important resources for the community like the wiki; but you basically seem to have write access to any page that has the word bennu on its url. I suppose that places you in a privileged position to talk about the state of the community. What do you think about its health as of today?

    Yes, that’s quite funny actually. I’m an administrator on every Bennu related site that comes to my mind at the moment, except for Divsite: Booleansoup, Fenixdocs, Fenixwiki, Bennuwiki,,

    I would describe the health of the Bennu community as on the rise I think. Its user base is expanding little by little and with a Wiz port on the horizon, I think it will be a popular product. When the Pandora comes out, it will play an important role there too.

  • What do you think are the most important things the project lacks right now? How would you improve them?

    Definitely a form of OOP. I really like this programming paradigm for making readable, reusable code, especially for games. For low level stuff I still use C, because it has next to no overhead. I would also add a form of messaging to processes or objects. I was looking into making that in a library, but I would have to modify the interpreter for it to work.

  • Please, talk to us about the most promising projects you’re following and the ones you consider most important.

    I’m not actively following any projects actually, Bennu related. Though, I’m hoping for a release of SDL 1.3 sometime, but that’s probably too far away. And of course I’m following the Pandora project, because I bought one!

  • Who do you think would be a good candidate for the next community interview?.

    I’m unsure, I’ve been away for some time… perhaps

    well, you know, CENSORED 😛


Hope you found it a nice reading, now back to coding!