Jnr Platform Example #1

Previous topic - Next topic

MrTAToad

"JNR" (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]

Wampus

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.

bigsofty

Very nice, It will be nice to see how GLB fares against the mighty C in this tutorial!  :good:
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

spacefractal

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).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

Yes, his website has been gone for a while now :(

gigios

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