Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2014-08-13 22:00:05

a cat
Member
Registered: 2014-07-27
Posts: 98

graphics tutorials?

hello can anyone explain to me how to display sprites using the gbdk

or find any tutorials
as i tried looking at the galaxy.c file in the examples directory of the gbdk
but i didn’t rely understand any of it
thanks in advance


a cat in need of knowledge!!

Offline

 

#2 2014-08-18 11:32:04

vslean
Member
From: bs as, argentina
Registered: 2014-08-10
Posts: 11
Website

Re: graphics tutorials?

Hey.
To make your sprites/tiles, the easiest way is to use GBTD, and to make maps you can use GBMB. Both are found here: http://www.devrs.com/gb/hmgd/intro.html

When you export your tiles, remember to pick how many tiles you wish to export, and not just 1.

here're some nice beginner tutorials: http://www.retroisle.com/others/nintend … re/dev.php

and here's some reference on graphics functions: http://gbdk.sourceforge.net/doc/html/c0504.html

for sprites you'll initially need set_sprite_data(), set_sprite_tile(), and move_sprite().
for backgrounds you'll initially need set_bkg_data() and set_bkg_tiles().

the functiones are pretty self-explanatory and are well documented.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson