Author Topic: Jnr Platform Example #1  (Read 14287 times)

MrTAToad

  • Guest
Jnr Platform Example #1
« on: 2010-Jun-26 »
"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]
« Last Edit: 2011-May-20 by MrTAToad »

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: Jnr Platform Example #1
« Reply #1 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.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2795
    • View Profile
Re: Jnr Platform Example #1
« Reply #2 on: 2010-Jun-29 »
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)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
Re: Jnr Platform Example #1
« Reply #3 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).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

MrTAToad

  • Guest
Re: Jnr Platform Example #1
« Reply #4 on: 2011-May-20 »
Yes, his website has been gone for a while now :(

Offline gigios

  • Mc. Print
  • *
  • Posts: 36
    • View Profile
Re: Jnr Platform Example #1
« Reply #5 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