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 2021-03-20 14:32:02

mbrown174
New member
Registered: 2021-03-20
Posts: 1

Faking a FPS/Dungeon Style game

Hi all,
Fairly new to development on the Gameboy and I'm looking at ways to create a simple dungeon or FPS. It wouldn't be a proper first person shooter, more of a dungeon scroller. I guess I'm looking for advice on how best to achieve this. I'm using prerendered images, resized in Photoshop with a limited colour scheme (4 colour gameboy palette).

At present my idea is to create a sort of slideshow with limited options, trouble is I believe I'm filling the bank quite quickly by this method and have to employ bank switching for this to work. I have found that I can fit three images on screen(one after the other) before GBDK complains about an overwrite i.e. WARNING: Multiple write of  1649 bytes at 0x4000 -> 0x4670 (4000 -> 47af, 4000 -> 4670)

I am mainly using draw_image(); with a small delay between each image. Can anyone provide me with a practical example of bank switching? If not - is there an alternative way around my problem?

Thanks in advance...

Offline

 

#2 2021-03-21 09:25:10

toxa
Member
Registered: 2020-02-13
Posts: 304

Re: Faking a FPS/Dungeon Style game

Looks like you are using GBDK. There are examples in gbdk-2020/examples/gb which demonstrate using of banks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson