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 2023-10-31 09:59:01

Kitsune64
New member
Registered: 2023-10-30
Posts: 5

Some test with background picture in full screen.

Hi,

This is my first step in GameBoy development and I encountered a problem displaying an image in full screen...

I don't know if I was on the right track but I had to optimize the image to repeat the tiles and have a full screen image.

Here is the result:

https://i.postimg.cc/sgs4Px3j/vba.png

Offline

 

#2 2023-11-01 06:09:41

Kitsune64
New member
Registered: 2023-10-30
Posts: 5

Re: Some test with background picture in full screen.

I managed to place an image in full screen with the draw_image() function of drawing.h.

But I ran into a problem regarding an animated sprite.
They are displayed at the top of the screen.

https://i.ibb.co/TgDHy9j/Capture-d-cran-du-2023-11-01-11-07-26.png

I have attempt to hide these by placing a black square sprite on these but there are a limit. Apparently I go out of memory for the GB.

Offline

 

#3 2023-11-02 04:47:00

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

Re: Some test with background picture in full screen.

well, game boy (DMG) VRAM may hold up to 384 tiles, both for the background and sprites. normally game boy can display 256 tiles on the background. if you consume 360 tiles for the background using some base address switching trick ("APA mode" in the GBDK-2020), you have only 24 tiles left for the sprites. so, you have to compromise to fit the hardware limitations. you can make animations to your sprites by reloading the tile data within those 24 tiles, for example.

Offline

 

#4 2023-11-02 13:38:45

Kitsune64
New member
Registered: 2023-10-30
Posts: 5

Re: Some test with background picture in full screen.

Oh thanks man, I don't have though to reduce the amount of tiles loaded in same times you save my project! Thanks a lot

Here the result:
https://i.ibb.co/Ph5JWDm/Capture-d-cran-du-2023-11-02-18-37-08.png

Really thank you.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson