Author Topic: Programming 2D Tutorials For Purebasic 5.41  (Read 12506 times)

0 Members and 1 Guest are viewing this topic.

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
It is from John P. Logsdon's book "Programming 2D Scrolling Games in 2005 as it used purebasic 3.93 and I have fixed most of the code for Purebasic 4.51....

So far....

Chapter 3 - Hello World - Done
Chapter 4 - Hello World2 - Done
Chapter 5 - Loop - Done
Chapter 6 - Arrays - Done
Chapter 7 - Arrays Struct - Done
Chapter 8 - Memory - Done
Chapter 9 - Procedure - Done
Chapter 10 - File 0/1 - Done
Chapter 11 - 2D Graphics - Done
Chapter 12 - Sprites - Done
Chapter 13 - Sprite Anim - Done
Chapter 14 - Collisions - Done
Chapter 15 - Inputs - Done
Chapter 16 - Sounds - Not Done
Chapter 17 - Timer - Done
Chapter 19 - ZOrdering - Done
Chapter 20 - Map - Not Done

There is some of them that I couldn't do hence why I put here for one of purebasic Expert to finished it off :)  ;)
« Last Edit: November 02, 2015 by Hotshot »

Offline padman

  • Senior Member
  • Pentium
  • ********
  • Posts: 990
  • Karma: 260
    • View Profile
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #1 on: June 24, 2011 »
To be honest there's no need to be an expert to convert that, you just need the patience to get rid of all the errors. The debugger tells you exactly where things need to be changed... ;) Most errors are caused due to a slightly changed command set ("Locate" doesn't exist anymore for example) or the compiler being more strict about things. ( I.e. it complains about "File.l" and "File" not being the same type... )

The PB Source Converter might also help to eliminate some of the errors: http://www.purearea.net/pb/showcase/show.php?id=334&d=1  :whisper:  ;)
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #2 on: June 24, 2011 »
thanks padman

that is Excellent PB Source Converter that does convert some of them :)

I will be able finish it by this sunday
« Last Edit: June 28, 2011 by Hotshot »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #3 on: June 24, 2011 »
By Krylar of Blitzcoder fame..  Why oh why did he sell that site to Idigicon!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #4 on: June 24, 2011 »
Quote
By Krylar of Blitzcoder fame..  Why oh why did he sell that site to Idigicon!

I guess it do with Moneys!    :boxer:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #5 on: June 25, 2011 »
I have manager to get some of fixed and when come linklist or dim as I put Global on side of it and it work magic

So far....

Chapter 3 - Hello World - Done
Chapter 4 - Hello World2 - Done
Chapter 5 - Loop - Done
Chapter 6 - Arrays - Done
Chapter 7 - Arrays Struct - Done
Chapter 8 - Memory - Done
Chapter 9 - Procedure - Done
Chapter 10 - File 0/1 - Done
Chapter 11 - 2D Graphics - Done
Chapter 12 - Sprites - Done
Chapter 13 - Sprite Anim - Done
Chapter 14 - Collisions - Done
Chapter 15 - Inputs - Done
Chapter 16 - Sounds - Done
Chapter 17 - Timer - Done
Chapter 19 - ZOrdering - Done
Chapter 20 - Map - I Couldnt do it as best to leave it for someone to do it

Just need two problem to fixed then Purebasic Tutorials will be Finished  ;D

Everythings is done and you can download here

http://www.mediafire.com/?kbhu73aj50pye7a
« Last Edit: November 12, 2011 by Hotshot »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #6 on: November 12, 2011 »
UPDATE....Download Links is Above! :)

Offline jace_stknights

  • Amiga 1200
  • ****
  • Posts: 399
  • Karma: 32
  • PEEK & POKE are not MOVEM!
    • View Profile
    • ST Knights WebSite
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #7 on: November 22, 2011 »
great !

will take a look, just to see if something is new for me :D
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 5.41
« Reply #8 on: March 08, 2014 »
From Chapter 1 to 19 work fine on PureBasic 5.11 where Chapter 20 doesnt work due change of coding

I can post the links here again if someone want to learn Purebasic :)

I have not test 5.21 yet
« Last Edit: November 02, 2015 by Hotshot »

Offline Omnikam

  • Atari ST
  • ***
  • Posts: 119
  • Karma: 4
    • View Profile
Re: Programming 2D Tutorials For Purebasic 4.51
« Reply #9 on: October 24, 2015 »
Thanks for your efforts, the links are long dead, Anychance for it`s reuped?
Im very interested

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 5.41
« Reply #10 on: November 01, 2015 »
I will post it the latest version upload when my proper broadband get back up running !
« Last Edit: November 02, 2015 by Hotshot »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 5.41
« Reply #11 on: November 02, 2015 »
Everythings been fixed but I cant seem get the sound working on chapter 16!

« Last Edit: November 02, 2015 by Hotshot »

Offline Omnikam

  • Atari ST
  • ***
  • Posts: 119
  • Karma: 4
    • View Profile
Re: Programming 2D Tutorials For Purebasic 5.41
« Reply #12 on: November 02, 2015 »
 :goodpost:
Thanks so much hotshot,  don't worry too much about the sound,  I'll try to figure it out  ;)
karma for your  efforts

Offline Omnikam

  • Atari ST
  • ***
  • Posts: 119
  • Karma: 4
    • View Profile
Re: Programming 2D Tutorials For Purebasic 5.41
« Reply #13 on: November 02, 2015 »
I figured out the sound issue in chapter 16
"SoundFrequency" should be "SetSoundFrequency"
It works fine with these changes  ;D

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Programming 2D Tutorials For Purebasic 5.41
« Reply #14 on: November 03, 2015 »
Thanks for reminding me and all in all hope help every newbie purebasic on wanting to learn :)

Offline Omnikam

  • Atari ST
  • ***
  • Posts: 119
  • Karma: 4
    • View Profile
Re: Programming 2D Tutorials For Purebasic 5.41
« Reply #15 on: May 15, 2021 »
Thanks again for doing this, i probably overlooked just how good it was at the time  :clap: