Mario - Platform Tutorial based game (sources)
by Rivage · in Torque Game Builder · 03/13/2006 (2:09 am) · 8 replies
Hi
I'm having fun with the platform tutorial reproducing a Mario game type.
You can grab an "earlier indie" version here ^^ (sources for T2D/TGB 1.1b only)
arm42.free.fr/files/mario.rar
This is my first try and it's full of weird stuff, bad globals, bad codes and so on.
I really hope i'll get advices on how to fix weirdness and correctly use functions of T2D.
- There is squirt in the animation of mario just after landing (probably because mario physics are set to (true,false)).
- Removing the SMOOTH option inside imageMap result in a really bad rendering (maybe my tiles are too small).
- Sometimes mario double jump when he's near a platform.
- Mushroom doesn't move correctly (I need to look a bit more to find solutions for this, should be easy).
- The rigid-body "rugby ball" pass through wall and platform ! (even with high MaxIterations)
- The rigid-body "rugby ball" move on itself ! (diamond-poly-shaped)
- I only reach 100Fps... It's less than i was expecting even if it works (Radeon 9200se AMD Athlon 1.6Ghz 512 DDR).
The physics/collisions system seem's really buggy (or i'm using it wrongly)... I've buy T2D only for this physics/collisions capabilities, i really hope this will be fix soon.
I'm having fun with the platform tutorial reproducing a Mario game type.
You can grab an "earlier indie" version here ^^ (sources for T2D/TGB 1.1b only)
arm42.free.fr/files/mario.rar
This is my first try and it's full of weird stuff, bad globals, bad codes and so on.
I really hope i'll get advices on how to fix weirdness and correctly use functions of T2D.
- There is squirt in the animation of mario just after landing (probably because mario physics are set to (true,false)).
- Removing the SMOOTH option inside imageMap result in a really bad rendering (maybe my tiles are too small).
- Sometimes mario double jump when he's near a platform.
- Mushroom doesn't move correctly (I need to look a bit more to find solutions for this, should be easy).
- The rigid-body "rugby ball" pass through wall and platform ! (even with high MaxIterations)
- The rigid-body "rugby ball" move on itself ! (diamond-poly-shaped)
- I only reach 100Fps... It's less than i was expecting even if it works (Radeon 9200se AMD Athlon 1.6Ghz 512 DDR).
The physics/collisions system seem's really buggy (or i'm using it wrongly)... I've buy T2D only for this physics/collisions capabilities, i really hope this will be fix soon.
About the author
Leadwerks
#2
It's cool but not enough for me. Even if T2D speed up the creation process for basic 2D game i think experiencing new type of gameplay with it will stuck me in troubles.
All i hope is that torqueScript is fast and flexible enough to suit my needs (texel manipulation, pseudo IK link, centrifugal/elasticity force and others rigid simulations...).
First of all i need to know if the physics are optimal before going with these stuff.
Cheer ;)
03/13/2006 (12:48 pm)
No more than 3 sunday ^^ After all it's just the platform tutorial with some little addon...It's cool but not enough for me. Even if T2D speed up the creation process for basic 2D game i think experiencing new type of gameplay with it will stuck me in troubles.
All i hope is that torqueScript is fast and flexible enough to suit my needs (texel manipulation, pseudo IK link, centrifugal/elasticity force and others rigid simulations...).
First of all i need to know if the physics are optimal before going with these stuff.
Cheer ;)
#3
(function setupT2DScene())
This increase the mario Glitch everywhere, doesn't resolve the rugby ball problems and the game lag when scrolling :(
(yes i have last graphic drivers and so on... ^^ Nevertheless many last games works fine on my computer i simply don't understand !)
03/20/2006 (11:28 am)
I've try to add this inside game.cs(function setupT2DScene())
t2dScene.setScenePhysicsFPSActive( true ); t2dScene.setScenePhysicsLimitFPS( 20 ); t2dScene.setScenePhysicsTargetFPS( 80 ); t2dScene.setScenePhysicsMaxIterations( 3 );
This increase the mario Glitch everywhere, doesn't resolve the rugby ball problems and the game lag when scrolling :(
(yes i have last graphic drivers and so on... ^^ Nevertheless many last games works fine on my computer i simply don't understand !)
#4
03/20/2006 (11:29 am)
You've set the maximum fps (the "limit") to 20, yet your target is trying to reach 80 FPS. Not a good situation.
#5
Isn't this the minimum fps?
03/20/2006 (11:45 am)
Quote:
You've set the maximum fps (the "limit") to 20, yet your target is trying to reach 80 FPS. Not a good situation.
Isn't this the minimum fps?
#6
03/20/2006 (12:52 pm)
I could very well be wrong, but I was told it's the top amount of fps you are shooting for, otherwise the rendering could take up a large portion of your cpu. I'll confirm as quickly as I can, but we're loading up the cars for the drive to GDC (second wave), so I can't promise it will be any time in the near future...
#7
Limit word reduce understanding :)
Setup to 120 the glitch disapear (yeesss :D) but the physics go crasy ^^
Maybe there is conception problems with this game too...
03/20/2006 (2:39 pm)
Of course i've try different setting but that doesn't change much...The physics system prefers a constant update-rate. To try to achieve this, the system will iterate when the fps gets too low. This specifies the fps threshold at which point the system will begin to iterate the scene processing
Limit word reduce understanding :)
Setup to 120 the glitch disapear (yeesss :D) but the physics go crasy ^^
Maybe there is conception problems with this game too...
#8
I would try limit 60 target 30.
03/20/2006 (3:54 pm)
Target should be 30-60. The human eye can't see past 60 anyway.I would try limit 60 target 30.
Torque Owner Jason Cahill
Default Studio Name
How long did this take you to put together?