gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

News > A game programming tutorial

#18562 - krom - Sun Mar 28, 2004 11:13 pm

A great tutorial has been made by Anders Vind Ebbesen:

I've written a tutorial for game programming on the GBA at:

http://www.webbesen.dk/gba/

The tutorial/course take the user through the process of writing a Pong game. It
includes: Header files, backgrounds, sprites, collision detection, user input,
artificial intelligence and optimization.

In the end, the reader will be able to write a lot of other games (from the
lessons learned). Anyone interested in game programming with just a small amount
of programming experience will be able to learn a lot from the tutorial.


The tutorial is very complete, visit it straight from the link above.

#18565 - dagamer34 - Mon Mar 29, 2004 12:16 am

These tutorials are a lot easier to understand that the Pern Project and do a nice job of introducing the GBA.

I wish I had this when I started and didn't have to learn the hard way.
_________________
Little kids and Playstation 2's don't mix. :(

#18569 - zazery - Mon Mar 29, 2004 1:04 am

It's the same with me. Even though I'm past this stage in programming I will still make it since I never made Pong for the GBA yet. I went straight into making a complex game.

#28084 - QuantumDoja - Tue Oct 26, 2004 7:51 pm

This was of great help Thanks!!!
_________________
Chris Davis

#87004 - blackthirteen - Sun Jun 11, 2006 10:51 am

that's very nice, but the only problem is that the game teach making a game under bitmap-based mode, and most serious games use tile-based mode.

My suggestion would be that Anders make another great demo using tile-based mode. I'm convinced that a lot of beginners will be grateful to have a easy-to-understand tutorial using tiles :)

#87014 - wintermute - Sun Jun 11, 2006 1:14 pm

This is actually one of the worst tutorials around, avoid it. There are many errors and bad practices here.

This is not a wait for vsync.

Code:

#define WaitForVsync() while(REG_VCOUNT != 160);


This is a broken macro

Code:

#define RGB(r,g,b)      ((u16)(r | (g<<5) | (b<<10)))


Never, ever put data and/or code in header files(with the exception of static inline functions) - this is a cardinal sin.

About the only nice thing I have to say about the tutorial is that it's well laid out.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog


Last edited by wintermute on Sun Jun 11, 2006 2:18 pm; edited 1 time in total

#87019 - tepples - Sun Jun 11, 2006 1:27 pm

wintermute wrote:
Never, ever put data and/or code in header files - this is a cardinal sin.

I hope you didn't mean "Never use static inline functions".
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#87024 - wintermute - Sun Jun 11, 2006 2:19 pm

tepples wrote:
wintermute wrote:
Never, ever put data and/or code in header files - this is a cardinal sin.

I hope you didn't mean "Never use static inline functions".


Might have known you would pop up with a literal interpretation :P
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#87028 - tepples - Sun Jun 11, 2006 3:18 pm

It teaches some people not to say "never, ever" except when they mean it.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#92962 - Azenris - Sun Jul 16, 2006 12:51 am

Although this thread is VERY old, I just wanna say although it has many bad practices it still helps people get into GBA programming, once their more hooked you can begin to understand why you cant do things and you begin to progress the proper way.

Did he ever release a tile-based game demo?

#92965 - wintermute - Sun Jul 16, 2006 2:01 am

Azenris wrote:
Although this thread is VERY old, I just wanna say although it has many bad practices it still helps people get into GBA programming, once their more hooked you can begin to understand why you cant do things and you begin to progress the proper way.

Did he ever release a tile-based game demo?


bad habits once learned are hard to break. Avoid at all costs.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog