BASIC

Author Topic: Jnr Platform Example #1  (Read 7976 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: 2631
    • 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: 3682
    • 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).
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

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