Dark Bit Factory & Gravity

PROGRAMMING => Purebasic => Topic started by: Hotshot on June 24, 2011

Title: Programming 2D Tutorials For Purebasic 5.41
Post by: Hotshot on June 24, 2011
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 :)  ;)
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: padman 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 (http://www.purearea.net/pb/showcase/show.php?id=334&d=1)  :whisper:  ;)
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: Hotshot 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
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: Shockwave on June 24, 2011
By Krylar of Blitzcoder fame..  Why oh why did he sell that site to Idigicon!
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: Hotshot 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:
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: Hotshot 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
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: Hotshot on November 12, 2011
UPDATE....Download Links is Above! :)
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: jace_stknights on November 22, 2011
great !

will take a look, just to see if something is new for me :D
Title: Re: Programming 2D Tutorials For Purebasic 5.41
Post by: Hotshot 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
Title: Re: Programming 2D Tutorials For Purebasic 4.51
Post by: Omnikam on October 24, 2015
Thanks for your efforts, the links are long dead, Anychance for it`s reuped?
Im very interested
Title: Re: Programming 2D Tutorials For Purebasic 5.41
Post by: Hotshot on November 01, 2015
I will post it the latest version upload when my proper broadband get back up running !
Title: Re: Programming 2D Tutorials For Purebasic 5.41
Post by: Hotshot on November 02, 2015
Everythings been fixed but I cant seem get the sound working on chapter 16!

Title: Re: Programming 2D Tutorials For Purebasic 5.41
Post by: Omnikam 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
Title: Re: Programming 2D Tutorials For Purebasic 5.41
Post by: Omnikam on November 02, 2015
I figured out the sound issue in chapter 16
"SoundFrequency" should be "SetSoundFrequency"
It works fine with these changes  ;D
Title: Re: Programming 2D Tutorials For Purebasic 5.41
Post by: Hotshot on November 03, 2015
Thanks for reminding me and all in all hope help every newbie purebasic on wanting to learn :)
Title: Re: Programming 2D Tutorials For Purebasic 5.41
Post by: Omnikam on May 15, 2021
Thanks again for doing this, i probably overlooked just how good it was at the time  :clap: