Side Project

Published August 05, 2007
Advertisement
This week I got my first little running prototype of my side project: it's a side scroller in 3D. The curves are used to lay out the "2D" track that runs through the otherwise 3D world. This allows the 2D scolling plane to wind and twist through the game world (think spiral stair cases, winding caverns, etc). I've added a "constrain object to curve" constraint to my physics solver - so other than changing the initialisation script (to set a camera pitch of 90, and then attach the cow to the curve), it's exactly the same code as my iso-3D work.

For debugging purposes, you can the see the curve that's been placed through the level. I've put a bunch of test wiggles and curves in it to make sure the physics works ok. The curve is used to define a vertical plane, so the player can roam up and down above and below the curve (allowing you to jump up onto platforms or fall down through holes).

Apologies in advance for the poor encoding on the moovie, I should have cranked up the quality a bit.

Disabled

Right now I'm still just using my little cow, but he's just a placeholder (as he's staying in my main game).

The next step is to add a dedicated camera model for the side scrolling that automatically orients the camera to the tangent of the curve. Unfortunately, this set me on a collision course with a very ugly bit of camera code I'd hacked in years ago. You see, while everything else in the game is controlled with a generic Behaviour/Controller class you attach to it, the camera was a honking big switch statement with a bunch of modes (like MOUSE_PUSH_SCROLL, THIRD_PERSON, STATIC). I'd been wanting to clean this up for a while anyway, so I'm currently in the middle of pulling the control code out of the Camera class so you can just dump a whole bunch of different controls on the camera. This will allow the initialisation for the scrolling game to put in totally different camera code than the iso one uses. It should also allow me to write camera effects (like camera shake) and much more easily do temporary camera overrides (like mini cut scenes, or moving the camera over to highlight a door or enemy the player should be aware of).


Cheers!
Previous Entry Curves
Next Entry Binary
0 likes 4 comments

Comments

ViLiO
That's really cool, a bit like Pandemonium [smile]
August 05, 2007 09:29 AM
Aardvajk
Yeah, nice. Wish you'd release some playable demos of some of the movie stuff you've posted recently. I wanna play with a geometry gun.
August 05, 2007 12:28 PM
benryves
Great stuff! [smile]
August 06, 2007 10:19 AM
Milkshake
Thanks for the comments gents!

Bonus points for thinking of pandemonium too! It took me ages to remember the name of that game when I was talking to someone about this (I kept thinking of Harlequinn for some reason)

And I was actually thinking of playable demos at some point - I need to start shaking out all those pesky hardware specific bugs anyway. But before I can do that, I need to sort out a binary version of my file format ... because everything is pretty big in XML. All of the tests (like the geometry gun) are just different files I load into the engine, so as soon as I get my act together with the packaging, it should be no problem to get some of those older test setups.

Cheers!
August 06, 2007 06:59 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Moose Sighting

1343 views

Constraints

1512 views

Moose

1249 views

Melon Golf

1792 views

Toon

1312 views

Spaceships

1064 views

Rendering Pt2

1157 views

Hardware Shaders

1191 views
Advertisement