Difference between revisions of "GLBasic tutorial"

From Pandora Wiki
Jump to: navigation, search
(GLBasic tutorial (W.I.P))
(Contents)
Line 7: Line 7:
 
The goal of this tutorial is to make a simple game. Years ago Amiga had a game called [http://en.wikipedia.org/wiki/Gravity_Wars Gravity Wars] which I just loved. In that game two space ships shot torpedoes at each other across a playing field filled with planets. Torpedoes were affected by the gravity of the planets and the flight paths of the torpedoes sometimes made full circles around the planets or event the whole playing field.  
 
The goal of this tutorial is to make a simple game. Years ago Amiga had a game called [http://en.wikipedia.org/wiki/Gravity_Wars Gravity Wars] which I just loved. In that game two space ships shot torpedoes at each other across a playing field filled with planets. Torpedoes were affected by the gravity of the planets and the flight paths of the torpedoes sometimes made full circles around the planets or event the whole playing field.  
  
This tutorial is divided into several small parts, which should make
+
=== Contents ===
 +
This tutorial is divided into several small parts
 
* In [[GLBasic Tutorial Part 1|part 1]] we first make a plan of the game and then create planets.
 
* In [[GLBasic Tutorial Part 1|part 1]] we first make a plan of the game and then create planets.
 
* In [[GLBasic Tutorial Part 2|part 2]] we shoot some torpedoes.
 
* In [[GLBasic Tutorial Part 2|part 2]] we shoot some torpedoes.
 
* [[GLBasic Tutorial Part 3|Part 3]] adds sprites and lets us aim those torpedoes.
 
* [[GLBasic Tutorial Part 3|Part 3]] adds sprites and lets us aim those torpedoes.
 
* [[GLBasic Tutorial Part 4|Part 4]] adds gravity and nicer planets.
 
* [[GLBasic Tutorial Part 4|Part 4]] adds gravity and nicer planets.
* Parts [[GLBasic Tutorial Part 5|5]], [[GLBasic Tutorial Part 6|6]], [[GLBasic Tutorial Part 7|7]] will keep improving our game, but I haven't yet planned that far...
+
* [[GLBasic Tutorial Part 5|Part 5]] will introduce an opponent and a more scalable way to process input.
 +
* Parts [[GLBasic Tutorial Part 6|6]], [[GLBasic Tutorial Part 7|7]], etc. will keep improving our game, but I haven't yet planned that far...
  
 
Keep in mind the game has not been written yet when I've started writing this tutorial. Hopefully it will be finished some day.
 
Keep in mind the game has not been written yet when I've started writing this tutorial. Hopefully it will be finished some day.

Revision as of 19:54, 11 September 2010

GLBasic tutorial (W.I.P)

This tutorial is intended for those who would like to learn programming in general and especially writing programs for Pandora. I've decided to use GLBasic because many of us are at least slightly familiar with some dialect of Basic and for beginners it probably is a bit easier language to learn than C or C++. Also, GLBasic is easy to install on a Windows machine and comes with an integrated editor.

I work as a software designer and should know something about programming, but I'm a complete newbie when it comes to GLBasic. I just purchased it a couple of weeks ago, so I will be learning this new language with you. I'll probably make quite a few errors and mistakes, but that happens at work too... Hopefully all errors will be found and fixed.

The goal of this tutorial is to make a simple game. Years ago Amiga had a game called Gravity Wars which I just loved. In that game two space ships shot torpedoes at each other across a playing field filled with planets. Torpedoes were affected by the gravity of the planets and the flight paths of the torpedoes sometimes made full circles around the planets or event the whole playing field.

Contents

This tutorial is divided into several small parts

  • In part 1 we first make a plan of the game and then create planets.
  • In part 2 we shoot some torpedoes.
  • Part 3 adds sprites and lets us aim those torpedoes.
  • Part 4 adds gravity and nicer planets.
  • Part 5 will introduce an opponent and a more scalable way to process input.
  • Parts 6, 7, etc. will keep improving our game, but I haven't yet planned that far...

Keep in mind the game has not been written yet when I've started writing this tutorial. Hopefully it will be finished some day.