GLBasic forum

Main forum => Beta Tests => Topic started by: MrTAToad on 2010-Jun-26

Title: Jnr Platform Example #1
Post by: MrTAToad on 2010-Jun-26
"JNR" (http://jnrdev.72dpiarmy.com/ (http://jnrdev.72dpiarmy.com/)) has got an excellent tutorial on how to do platform games.  As the original is in C, I decided it needed converting to GLBasic, and included with this post is the result of the first example.

I wont post the source code just yet as I need to put the original comments back in (and add some of my own).

In this example : Movement and Jumping
In the next example : Slopes!



[attachment deleted by admin]
Title: Re: Jnr Platform Example #1
Post by: Wampus on 2010-Jun-28
Good stuff. Fast routine.

The next tutorial involving slopes uses an equation to calculate the 45 degree angle. I wonder if that's faster than pixel by pixel collision detection.
Title: Re: Jnr Platform Example #1
Post by: bigsofty on 2010-Jun-29
Very nice, It will be nice to see how GLB fares against the mighty C in this tutorial!  :good:
Title: Re: Jnr Platform Example #1
Post by: spacefractal on 2011-May-20
the url not working anymore, and this is a sticky post.... (even I not really need it, but people might find it useful of course).
Title: Re: Jnr Platform Example #1
Post by: MrTAToad on 2011-May-20
Yes, his website has been gone for a while now :(
Title: Re: Jnr Platform Example #1
Post by: gigios on 2011-May-20
If you want I have the zip of the three examples of the tutorial.

You can download them here: https://rapidshare.com/files/1966457946/JNRPlatformTutorial.7z (https://rapidshare.com/files/1966457946/JNRPlatformTutorial.7z)