Game Development Community

dev|Pro Game Development Curriculum

Plan for Melv May

by Melv May · 06/10/2005 (8:11 am) · 12 comments

Wow, such a long time since I've done a plan!

Well, as you may or may not know, T2D has been a big success so far. Not only have we got a thriving community with lots of projects on the go, there are lots of avenues opening-up for T2D (say no more) and although we're still trying to catch-up with all the features we want to get into T2D, we're pretty happy with the way it's panning out.

After a small period of time away from T2D because of back problems, I'm back with a vengeance! The good thing about me being ill was that it forced me to take a break, something that I'm pretty bad at doing. Josh regularly tells me to slow down and I say okay and then get straight back to it. A kind of self destruction I guess but the illness helped me recuperate.

After two weeks back I've finally managed to get a new file-format for T2D ready that'll help make version-control for serialised objects real easy. This means that we can finally make all those changes to objects without breaking what's gone before.

Now that this work was complete, I went and finished the collision model for T2D which allows each object to select from a set of stock collision responses and even allow more to be created if necessary. You can now get two objects to collide and have one respond in a rigid-body manner and the other to do a simplistic "bounce" response, all without having to write any callback code. The great thing here is that existing code works without modification, there's just an extra call to set the collision response. Collision Modes can also be changed in realtime if needed.

This'll help people who are not interested in the rigid-body stuff for their game. A bonus is that you can still have some objects that do respond using rigid-body if they need that realism. There are a few platform style games being created at the moment that'll probably use the "bounce" or "clamp" modes instead of the "rigid" mode. Specifically, collision interaction with tile-layers becomes easy to control.

The new stock modes now become RIGID, BOUNCE, CLAMP, STICKY and KILL.

Some of the other useful things that'll be going in soon will be more mounting features and small but useful things like arbitrary rotation points for objects.

Well you can't do a plan without an image/movie so here's a demonstration (albeit not too flash to look at) of 100 rigid-body objects colliding within 50 "bouncy" objects. This was setup using only a handful of calls and no scripts to handle the collision responses at all. The frame-rate hardly moves from 300fps on my machine which is pretty impressive if I do say so myself. The movie is lower quality and affects the framerate unfortunately.

EDIT: Added some more interesting piccies and movies...

Lots of Object Collision Modes
public.garagegames.com/melvm/t2dCollisionModes.jpg
Bounce Mode
public.garagegames.com/melvm/t2dCollisionModeBounce.jpg
Rigid Body Mode
public.garagegames.com/melvm/t2dCollisionModeRigidBody.jpg
Clamp Mode
public.garagegames.com/melvm/t2dCollisionModeClamp.jpg
Sticky Mode
public.garagegames.com/melvm/t2dCollisionModeSticky.jpg
Kill Mode
public.garagegames.com/melvm/t2dCollisionModeKill.jpg
Movies...
Lots of Object Collision Modes Movie
Bounce Mode Movie
Rigid-Body Mode Movie
Clamp Mode Movie
Sticky Mode Movie
KillMode Movie

- Melv.

#1
06/10/2005 (8:22 am)
T2D just gets better and better! thanks for taking the time to write this up and make the movie
#2
06/10/2005 (8:49 am)
...this hurts my brain. :P
#3
06/10/2005 (9:09 am)
Revenge of the Melv :) Welcome back! Glad your back is doing better... amazing stuff, that will make things so much more easy, plus no more "How do I make things bounce" threads lol ;) You kick way to much arse!
#4
06/10/2005 (10:08 am)
You rock Melv! Love the pictures... this will really help in a project I'm working on for Joshua Dallman!

EDIT: ok you made up for the lack of a plan for so long with all the pretty pictures and movies lol :)
#5
06/10/2005 (10:18 am)
haha, funny matt that's just what I was thinking. the timing for this is perfect. and geez you keep adding more movies and pics! nice.
#6
06/10/2005 (10:18 am)
Nice to hear your back working on T2D. It makes me wonder what you'd produce the day you decided to stop making T2D and started making things with T2D :) You must have a ton of ideas cropping up as you've added more and more features to T2D.

It might be just me, but I never seem to get tired of starring at demos using the particle system.
#7
06/10/2005 (2:13 pm)
Awesome. This will be extremely useful.
#8
06/10/2005 (8:35 pm)
REALLY nice work. :)
#9
06/11/2005 (11:31 am)
Terrific work!
#10
06/12/2005 (12:07 pm)
Very nice! looks great :)
#11
06/12/2005 (4:30 pm)
This is looking amazing. I mean, dear god Mel, that baby looks insanely lifelike!
#12
06/28/2005 (2:33 pm)
Woah.... I like the sticky one.. :D. Keep up the *EXCELLENT* work. T2D really is the best 2D engine on the market... Any news on net support? ;)