« A* and Dungeon Generation | Main | Doxygen »
Tuesday, September 08, 2009
Major overhaul
I haven't posted any updates for quite some time now, but not due to lack of working. In fact, I've been working heavily lately on making a complete overhaul of the display system. I've made the executive decision to switch over to colored ascii text instead of OpenGL graphics. Let me map out what infuluenced my decision.
OpenGL
Pros:
- Flexible sprite display. Easy to color,
texture, rotate, scale, blend
- Not tied to the grid for things like
projectiles, magic effects, etc.
- Better visually in general. More
accessible to people outside the genre.
Cons:
- Heavier system
requirements. ( Not big, I know, but with Roguelikes some people do
care. )
- The need for sprites. This is the biggie. Every item and
every monster and every floor tile and every wall tile needs a sprite to
go with it. Well, I have about 50 sword sprites and only 6 or 7 axes.
So, either there are just lots more swords in the game, or the axes will
all look the same. I have entire races of monster sprites that I don't
even know what I would use them for because of the way they look, but I
don't have a certain set of monsters that I do want. If I want to
add more sprites to the game, they not only have to be the right size,
but they have to look like what I already have to some degree,
otherwise they stick out like a sore thumb.
Which brings me to my final point - ascii is even more flexible, in some areas:
ASCII
Pros:
- Complete flexibilty in what gets added to the
game. Whatever combination of letter and color I want can represent
whatever I want it to. Then I just add some good descriptive text to
everything, and it's up to the user to use their imagination.
-
Traditionally Roguelikes are in ascii. It goes with the genre.
- Very
light weight and fast. The screen updates as fast as you can send in key
commands to it.
Cons:
- Not as pretty/accessible.
- Tied to
the grid for projectiles and effects.
So I've spent the past month gutting the system of all OpenGL stuff and re-implementing the display system to use win32 text commands. I'm actually mostly done with that stuff, probably just needs some tweaking as time goes on.
|