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.
Pages: 1
So, I was getting this warning when trying to compile my code.
I am using GBDK 2020 and everything worked out fine so far, until I tried to implement background collision detection.
First i would like to show the whole warning and what caused it and then try to explain what i was trying to achieve:
?ASlink-Warning-Undefined Global '.set_tile_xy' referenced by module ''
?ASlink-Warning-Byte PCR relocation error for symbol .set_tile_xy
file module area offset
Refby <missing> _CODE 00001B
Defin c:\gbdk\lib/sm Runtime . .ABS. 000000
so that's the error and it appears when I try to call the function "uint8_t get_bkg_tile_xy(uint8_t x, uint8_t y)" that returns the index of a background tile at the position (x,y)
I thought I could use this for background collision detection on a big map where i would return the indices of neighbouring background tiles where my character is at, because only the background scrolls, while the characters position is static. So i could make out Tiles that would stop the character to move.
I am new to gameboy developement and especially GBDK, so maybe that warning is caused by some offset, as it is saying above, but I really don't know how to fix this,
and attempts to avoid this error by implementing different ways for background collision detection would sacrifice the freedom of movement of the character
Thanks in advance
Offline
Yes, that is a known problem, and was recently fixed. Download the “nightly” build artifacts from the github under the “actions” link. You should be logged onto the github.
Offline
Also i suggest not to read VRAM, it is slow.
Offline
Thank you very much for the reply.
I will take the advice and look for a way where I dont read from VRAM
Offline
Pages: 1