Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / New User + Questions
- By ? Date 2009-11-30 09:25
Greetings to the GOSU forum users.

I am an indie game developer who has been using the FlatRedBall game engine for the last few years (I recently finished a game with the FRB engine) and am considering moving to a different game engine.
Although I am very pleased with the FRB engine the need for MacOS support has started this search for a new engine.

My next game will be a 2.5d side-scroller. (I'd like the characters to be 2d, the game play 2d, but have the background and the terrain be 3d (boxes, pyramids etc.) or more speifically speaking have a 3d effect).

I read a bit about GOSU in the wiki but I have a few questions which I'd like to ask.

Here goes:
1. To create a game for several platforms (specifically Windows, Mac, Linux & IPhone) can I use the same source code or do I need to rewrite the code with a different plugin for each targeted OS?
2. What is the meaning of "no 3d rendering"? Does this mean that you can only place sprites at a 90 degrees angle from the camera? I suppose not but I didn't quite understand.
3. Does the engine use directx? Can it? (For several reasons I prefer using directx graphics over OpenGL)
4. How can I use the engine with C++ code (it is easier for me)
5. Have any 2.5d games used the GOSU engine?
6. How do I create menus and different screens wit hthe engine?

Thanks in advance, I look forward to creating games with this engine.
Ogga
- By jlnr (dev) Date 2009-11-30 09:56

> 1. To create a game for several platforms (specifically Windows, Mac, Linux & IPhone) can I use the same source code or do I need to rewrite the code with a different plugin for each targeted OS?


If you want to target the iPhone too, you need to use the C++ version. Deployment on all platforms isn't automatic, you still have to use the proper IDE on each platform and compile/package your game. Specifically on the iPhone, you need to handle completely different callbacks than on the desktop.

The iPhone version is also still not very well-documented. In short, targeting all these platforms EXCEPT the iPhone, using Ruby/Gosu, is easier. I have no idea about your performance requirements :)

> 2. What is the meaning of "no 3d rendering"? Does this mean that you can only place sprites at a 90 degrees angle from the camera? I suppose not but I didn't quite understand.


Gosu only has rectangular images (think textures, even though this is simplified). You also have a method to draw such images with four arbitrary given coordinates, so in theory you can do whatever 3D calculations you want to and ten draw the image at that point. If you want to do real 3D, you can do it using OpenGL.

> 3. Does the engine use directx? Can it? (For several reasons I prefer using directx graphics over OpenGL)


No. Gosu switched to OpenGL on all platforms. Otherwise, you couldn't have portable 3D bits in your code.

> 4. How can I use the engine with C++ code (it is easier for me)


Yes. The engine is all C++. Ruby is just a wrapped version.

> 5. Have any 2.5d games used the GOSU engine?


I didn't yet use custom OpenGL but I sometimes add some basic fake 3D effects, like in StarFerret 48h: http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=118

There is a complete 3D game which will not help you any because it uses oldschool rendering: http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=119

> 6. How do I create menus and different screens wit hthe engine?


There is nothing premade for this in Gosu (there are add-on libraries for the Ruby version). You have to be creative or get some inspiration from all the games on the showcase, most of them being open source.
Up Topic Gosu / Gosu Exchange / New User + Questions

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill