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

Forums

Books

Links

Graphics FAQ

GFX2GBA Readme

Translations

Games

Projects

Credits

Support

Poll

HAM Tutorial :: Project 3 :: Slide Show

 

Someone emailed me asking for a way to do a simple slideshow. I came up with the following code. As usual, there are quite a few different ways this could be done. I chose what I hope will be the easiest to understand.

Don't know how to setup the graphics for this one?
gfx2gba -D -fsrc -pbg.pal -t1 bg.bmp

NOTE: I decided to make a separate palette for each image. You'll have to change bg.pal and bg.bmp to the other pictures and run this again for each one.

// The Main HAM Library
#include "mygba.h"

// Graphics Includes - for each image there is a