Mega's Competition Dev Log #1

Posted by Astryl on April 1, 2014, 7:23 a.m.

Original blog in hide tag below.

Got quite a bit done today. Streamed for a while not too long ago (Archive footage here).

Managed to fix several bugs that have been with the engine since RPG4D 2012. The biggest one being that damnable 'stretched sprites' thing that was happening with ATI cards.

The difference between then and now is that I own an ATI card of my own, so I was able to stomp the bug.

The general technique I'm using to create an axis aligned billboard is to get the view matrix with glGetFloatv(), which works fine (I originally thought that this was the culprit).

I did a bit of brute force cout debugging, and eventually pinpointed the location of the problem: my calls to glVertexfv().

What it was, after a bit of prodding, is that ATI cards handle the W parameter of a vertice in a slightly different way than nVidia cards do. I really just needed to blank out the w parameter, and everything would be fine. And everything is fine.

Here's a couple of screenshots from today's work:

And a shot of the icon for the game, which pleases me greatly for some reason:

And with that, I'm off to rest a bit before carrying on tomorrow.

I'll probably do a couple of these over the course of the competition, though not too many.

Anyway, I'm working in C++ for this one, using the old Exile engine. Fear not, there's no remaining game code; most of it was rendered useless between 2012 and present day, since I keep on changing map formats and the base Entity class. :P

As for the game, I spent a great deal of time last night thinking about what I wanted to make. My idea was, and still is for the most part, to create a game where magic is the primary weapon, and allow the player to 'create' that magic in various ways (Think Magicka).

Originally this was going to be a nearly pure puzzle/adventure game, but then I decided to cave in and do something I've been meaning to do for a while now: A 'sequel' to Exile.

So I present, in its current form, Exile 2:

And here's a comparison to the original (Not too long after I submitted it. Had already changed a few things, but the old lighting system remained).

Might look a bit odd at first, but that's intentional. I created a shader to essentially limit the available color palette for the game; it actually has the interesting effect of making the textures have more 'depth' to them as the light plays over them, with the darker parts of the texture 'darkening' first, and the lighter parts changing hue and brightness. Difficult to show without motion, but I"ll be livestreaming later, so I guess you'll see it then.

Basically, all I've done so far:

- Turned stock camera-view code into a 'player'

- Created three base textures

- Written and tweaked the shaders

Right now I'm thinking about what to do next. Maybe make a single enemy and a weapon I can start walloping that enemy with. I might take the chance to redesign my old enemy designs from scratch, possibly with a higher resolution appearance, and a darker feel to them. And less nose-punching/face-palming.

Good luck to the other competitors. :P

Comments

Astryl 10 years, 5 months ago

Bumping for end-of-day progress and such.

marbs 10 years, 5 months ago

I'm glad to hear you were able to stomp that bug. Attempting to fix bugs you can't reproduce can be a nightmare! At work recently I fixed a bug and resolved the related issue, only to have it reopened by a tester who insisted the problem still existed. After several adjustments and some back and forth it transpired they were testing an old version - into which my fix had of course not yet made its way!

I like how the ceiling isn't completely flat but you have steps in it. Do the hitboxes also match that geometry?

Astryl 10 years, 5 months ago

Yeah, everything is collided with an AABB with a few exceptions for diagonal wall sections.

Castypher 10 years, 5 months ago

Your banner seems to showcase your efforts today.

Astryl 10 years, 5 months ago

First concept enemy:

Animating it is proving to be far easier than last time, and I'm adding in some extra life to the animations this time round. Need to balance the colors (And lower the highlights), but I'm pleased with the initial result.

EDIT: Colors changed, and walk animation done.