• entries
    16
  • comments
    30
  • views
    6301

Week of Awesome III, Part 2: Progress

Sign in to follow this  
__Toz__

683 views

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

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]
Sign in to follow this  


3 Comments


Recommended Comments

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?

Share this comment


Link to comment

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. 

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now