• entries
16
30
• views
6416

# Week of Awesome III, Part 2: Progress

720 views

A lot has happened since the last post on my journal. Here is a screenshot that shows the start of the first level.

It already looks kinda decent. The objects look terribly out of place though, since no lighting is done yet. One interesting thing to note is that none of these objects, except the player, have texture coordinates. All the texture coordinates are calculated in the vertex shaders and are based on the vertex position and normals.

The collision for the level is also loaded in a bit unusual way. What I do is this: In Blender I go to the forward facing view (numpad 1) and trace a line of vertices over all the objects that the player should collide with. This way the line of vertices can be imported and converted into a Box2D edge body.

I also got the main game mechanic working, when the player now dies they respawn an leave behind a pile of bones that can be used to cross over spikes and to get to higher ground. I've already got some ideas about how to create fun puzzles with this.

Lastly I want to show the level format. During competitions like this, it's important to keep things a simple as possible. That's why the level format I use is just a JSON file referring to the assets the level uses and the location of some other objects in the level.

[spoiler]{ "startPosition": [-30.0, 2.0], "collision": "level0_collision.obj", "objects": [ { "mesh": "level0_floor.obj", "material": "trail" }, { "mesh": "level0_rocks.obj", "material": "rock" }, { "mesh": "level0_trees.obj", "material": "tree" }, { "mesh": "level0_gravestones.obj", "material": "graveStone" } ], "spikes": [ [-8.0, 0.0], [-6.0, 0.0], [-4.0, 0.0] ], "sprites": [ { "position": [-26.4, -0.2, -0.5], "size": [2.8, 2.8], "texture": 3 } ]}
[/spoiler]

That looks like a rather cool start! ^_^

I am curious: your main character appears to be a skeletal... something. What is that something? A duck or platypus, perhaps?

Thanks, I'm trying to keep a consistent quasi-cartoony art-style.

I'm not sure what the main character is supposed to be either, I just had this weird idea of a cloaked skeletal figure with a crocodile head. It still needs to be pillow shaded so it'll look better later.

Clever use of tombstones for tutorials!

Reminds me of my entry last year ;)

## Create an account

Register a new account