PDA

View Full Version : 2D Game engine and an article about a 2D software renderer


Mattias Gustavsson
10-24-2007, 04:29 AM
I've just published an article on a 2D software renderer I did some time ago:

http://www.colossusentertainment.com/Articles/2DSoftwareRenderer.html

and I've also released the source code to my little game engine, maybe it's of use to someone :-)

it can be found in the Development section of http://www.colossusentertainment.com

/Mattias

Mattias Gustavsson
11-22-2007, 02:04 AM
I was recently in a 48 hrs rpg-making contest, and used my game engine to make my contribution. I've released the source code to it as well, which I guess can serve as a (quite messy) example of how to use the engine. More info here:

http://www.colossusentertainment.com/Blog/TheAmazingAdventuresofKas.html

Btw, both the engine and the game source code is public domain (except for the STSound component included in the engine, which is GPL).

Kenneth Gorking
11-22-2007, 03:56 AM
Awesome stuff, nice work :yes:

Is this library only aimed towards RPGs?
I'm getting a N95 (http://en.wikipedia.org/wiki/Nokia_N95) tomorrow, and is ofcourse eager to try and get some programming done. I have an idea for a game that would work well on a phone (I think), and if I could use an already made library, that would surely save me some time. My game will be viewed from the side, ala Soldat (http://en.wikipedia.org/wiki/Soldat).

A cool thing about the N95, is that it provides full accelerated support for OpenVG (http://en.wikipedia.org/wiki/OpenVG), which could be seriously cool for a 2D game.

Mattias Gustavsson
11-22-2007, 04:28 AM
Glad you like it :-)
No, it's not aimed at RPGs at all, the library is a very generic 2D graphics library (with additional support for a few music formats like ogg and the various tracker (.mod) formats) written to be as portable as possible with as few external dependencies as possible.

All the blitting is done in software, and DirectX9 is used only to blit the final image to the screen. Or if it can't use DirectX9 it will drop to DirectX3. And if that fails too it will drop to Windows GDI :D I'm planning a similar thing for sound, but for now it used DirectSound3.

Mattias Gustavsson
12-25-2007, 06:18 AM
I've recently made the source code for another couple of small games available for download (also made using my 2d game engine, which is public domain).

Grab the stuff from my site:
http://www.colossusentertainment.com

Here's some screenshots

From the RPG mentioned earlier:
http://www.colossusentertainment.com/Images/Screenshots/kassandra_screen1.png
http://www.colossusentertainment.com/Images/Screenshots/kassandra_screen2.png
http://www.colossusentertainment.com/Images/Screenshots/kassandra_screen3.png

From a more arcade-action style game I did for the SGA Warmup competition:
http://www.colossusentertainment.com/Images/Screenshots/babyviking_title.png
http://www.colossusentertainment.com/Images/Screenshots/babyviking_ingame2.png

From a retro text adventure thingy I made for TIG's "Text the Halls" compo:
http://www.colossusentertainment.com/Images/Screenshots/midwinter_title.gif http://www.colossusentertainment.com/Images/Screenshots/midwinter_screen1.gif http://www.colossusentertainment.com/Images/Screenshots/midwinter_screen2.gif http://www.colossusentertainment.com/Images/Screenshots/midwinter_screen3.gif

Hope you'll enjoy it, and hope that the source code is useful to someone at least :yes:

Mattias Gustavsson
07-02-2008, 03:09 AM
I've done a major update to the Pixie engine (http://www.colossusentertainment.com/Blog/ThePixieGameEngine.html) recently so I thought I'd post an update here rather than create a new thread for it. I've fixed a lot of little issues with the engine, and generally cleaned it up a bit, so I'd say it's rather usable now.

More interestingly, I've written two tutorials for the engine, one "hello world" tutorial (http://www.colossusentertainment.com/Articles/PixieTutorial1-HelloWorld.html), and one which displays a bouncing ball (http://www.colossusentertainment.com/Articles/PixieTutorial2-BouncingBa.html)

It's public domain btw, so no weird license restrictions :cool:

And there's some online documentation (http://www.colossusentertainment.com/pixiedocs) now as well.

Mattias Gustavsson
03-09-2009, 08:07 AM
Just thought I'd update this with some recent info.

There's two more games released using the Pixie game engine:
http://www.colossusentertainment.com/Images/parachute_boxshot.png (http://www.colossusentertainment.com/Games/Parachute.php)
Parachute! (http://www.colossusentertainment.com/Games/Parachute.php)

http://www.colossusentertainment.com/Images/lowriderz_boxshot.png (http://www.colossusentertainment.com/Games/Lowriderz.php)
Lowriderz (http://www.colossusentertainment.com/Games/Lowriderz.php)

And just like all my stuff, the source code for both games are placed in the public domain, so if you think you can use it for anything, go right ahead. Can be downloaded from here:
http://www.colossusentertainment.com/dev/pages/PixieGameEngine.php

starstutter
03-09-2009, 11:01 AM
wow, been a while since I've seen you here. Welcome back? :)

Nice update by the way, I'll be sure to check them out.

Mattias Gustavsson
03-11-2009, 01:38 AM
=Welcome back?

Nah, not really back, just dropped by to plug my engine :D

Mattias Gustavsson
05-18-2009, 06:28 AM
Just a quick update on this.

All the stuff to do with the Pixie engine is now to be found at the new developers section (http://www.tophatarcade.com/dev/) of Top Hat Arcade (http://www.tophatarcade.com/)

http://www.mattiasgustavsson.com/Blog/Images/newsite_tophat.png (http://www.tophatarcade.com/dev/)

You will also find a bunch of articles and stuff, along with the public domain source code for my engine and all my games. Nice, eh? :cool2:

roel
05-18-2009, 07:01 AM
Congratulations, Mattias :)

.oisyn
05-18-2009, 08:02 AM
Nice :)

A question though, is your code public domain? Because I don't think you have mentioned that yet... :lol: