Introduction

Day 1
GBA Hardware

Day 2
"Hello, World!"

Day 3
Input

Day 4
Backgrounds -
  Bitmapped Modes

Day 5
Sprites

Day 6
Backgrounds -
  Tile Modes

Day 7
Project 1 -
  Tetris

Quiz - Week 1

Day 8
Sprites #2 -
  Animation

Day 9
Maps

Day 10
Sprites #3 -
  Animation #2

Day 11
Backgrounds -
  Rotation

Day 12
Sprites #4 -
  Mosaic

Version History

Downloads

Books

Links

Graphics FAQ

GFX2GBA Readme

Games

Projects

Credits

Support

HAM Tutorial :: Games :: TicTacToe *** not finished ***

 

After a few unsuccessful attempts at making a complete game, and a 3 month period away (in Japan), I decided it was time to try to work on a simple game that I knew I could finish quickly. I wasn't really sure at first what I should try and then I came across a TicTacToe tutorial at GameTutorials.com. I looked at the source code and quickly decided this would be it. My first complete, C++ based game for the GameBoy Advance.

This is still a work in progress. I need to update the graphics, get better sound effects and music, and hopefully Emmanuel will update the sound code in HAM so that you don't hear any annoying scratching sounds. I want to thank GameTutorials.com for sharing these kinds of tutorials with everyone.

Graphics
If you are unsure how I converted the graphics (using gfx2gba) take a look at the library includes.

*** This version of the game does not include sound ***

Sound
Please refer to the sound tutorials *** not done yet *** to convert your sound files to the proper format for HAM.

Your WAV files should be in the following format: 8bit, mono, 16kHz sample rate. Convert them into the WavData format for HAM using wav2gba. If you get the error message 'no data' using wav2gba then there is a problem with the program you used to create/convert the WAVs. You should try another program such as SoundForge or GoldWave.

Because of the size of the program each file will have a separate page. I will try to explain what might not be obvious afterwards.

 

Code Source

Because of the size of the files, I will put links to the source.

main.h
main.cpp
game.h
game.cpp
ai.h
ai.cpp

Download Code

NOTE: You may need to Right-click and choose Save As.

HAM Version 2.40 And Higher
Download All Files In One Zip: TicTacToe.zip
Compiled binary: hello.gba

View Demo Now

Discuss TicTacToe

 

<<

HOME

>>