Wave's~ BlitzMax Tutorial for NG~ November, 2015 ~ Version 11
Beginners guide to BlitzMax 

Make your first BlitzMax game
To get you started I have laid up a simple game-plan:

1. Start small.. Think up a small and simple game.

2. Draw and write down your game on paper.

3. Plan functions, type structures. If this is your first game make it a simple one!

4. Go to the forums and ask around if you have any questions, ask what others think about your game plan.

5. Now start coding, set up a small model and test run. Then add more as you go. Comment on every type, function and method that you write!

6. If a part of your game can be done separate (like explosions, map creation). Do a small *.bmx which tests these types/functions. In this way your have a bigger chance of catching evil bugs.

7. Don't start on your second project until your finish your first.

The plan you make for your "first game project" will most likely come out as "to big" so try to cut down on it.
Make it a complete but small game.

Get Debug Help
When you encounter problems try to get help at the Blitz Commumity Forums. For people to be able to help you it's important that you know what your problem actually is, so think about it, try to narrow it down.

Is it a compile error?
Is something not showing up as expected?
Check your variables, are they what they are supposed to be?
Use Debugstop() or Waitkey on a line to see if that line is read, if it is your game will stop there.
Don't forget a most important command ­  Debuglog   which allows you to write text to the runtimelog.

Example:
If Not Car Then
  DebugLog
"Car type not found!"
  Return
End If

Math Resource

By

Original written by Wave~ at Truplo co.
mail: Truplos@msn.com.

NG changes and tidy-up by Brucey

Check the forums first because there are a lot of people there with much better programming skills and knowledge than me. Any comments about this tutorial should go into the BlitzMax Tutorial Forum. Questions about the guide can be sent to the above mail. If you have questions about BlitzMax don't hesitate to post them in the forums or Mail Support@BlitzBasic.com.

I hope that this tutorial can be considered to be done now ; )

Now have fun and good luck coding!

License
 

Copyright © 2005-2015 wave (truplos@msn.com). All rights reserved.

Redistribution and use with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer as the first lines of this file unmodified.
  2. Redistributions in compiled forms (conversions to PDF, PostScript, RTF and other formats) must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 
To Index