Tutorial Index:
1. TDK's Programming For Beginners Part I - Variables Part one of a series of tutorials covers the basic building blocks of programming in PlayBasic - 99.9% of which is relevant to all PB users starting to learn programming.
Subjects Covered:
* Numeric Variables
* String Variables
* Single Dimension Arrays
* Multi-Dimensional Arrays
* Cubic Arrays
* Maths Operators
* Relational Operators
* If...Then Conditions
2. TDK's Programming For Beginners Part II - Layout, Structure And Style Part 2 looks at program control and how to organise your code to make it easier to add to and locate errors.
Subjects Covered:
* Program Jumps
* For...Next Loops
* Do...Loops
* Repeat...Until Loops
* While...EndWhile Loops
* Program Layout
* Indentation
* Subroutines
* Variable Scope (Local/Global)
3. TDK's Programming For Beginners Part III - Elementary Commands Part 3 covers a few 'building blocks' commands which allow you to write the most basic of programs.
Subjects Covered:
* Screen Output
* RGB()
* RGBR(), RGBG() and RGBB()
* Ink
* CLS
* Print
* SetCursor
* STR$()
* Text/CenterText
* 2D Graphics Commands
* String Functions: Left$(), Mid$(), Right$() and CHR$()
* VAL()
* ASC()
* Rnd() and Randomize
* Mouse and Keyboard Input
4. TDK's Programming For Beginners Part IV - File Access Part 4 shows you how to read and write data from and to disk, including a section on creating a hiscore table in your games.
Subjects Covered:
* WriteFile
* FileExist()
* ReadFile
* EndOFFile()
* Saving Arrays
* Saving Hiscore Tables
* File Formats
* Loading Routines
* Reading Other Files
5. Choosing The Correct Variables PB supports both integer and float variables. This tutorial shows you how to decide which to use and why.
6. User Defined Function Primer The essential guide to what Play Basic functions are, what the benefits of using them are, how they are used and what to look out for when using them.
7. Everything You Wanted To Know About Strings Pretty much all you need to know about using strings in your PB programs. From cutting them up and joining them back together again to shuffling and dealing a pack of cards - it's all here!
8. TDK's Timer Tutorial How to use the Timer() function to add clocks, timer events and counters to your PB programs.
9. 2D Shooting - A Basic Introduction A primer on how to shoot bullets in 2D games and still move - including firing multiple bullets.
10. Game logic for Beginners How to turn the game you can see in your mind into a Play Basic program.
Acknowledgements:
These preceding
Beginners Guide To Game Programming tutorials we're written by
TDK_Man (a very talented and experienced programmer from the DB/Dbpro community). The tutorials we're converted for use with PlayBasic with
full permission in April 2008 by Kevin Picone.