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.
Sorry for oppening another thread...
Is there any tutorial about drawing lines, circles, triangles etc in assembly?
GBDK drawing functions are very slow, and they are creating a lot of conflicts with code, it looks like they have some issue, and gbdk tends to show a lot of "overwritten address" errors when using several banks.
I only found a source code for this demo: http://www.devrs.com/gb/files/apa.zip
It looks a bit complicated.
Thanks.
Last edited by Mills (2017-11-20 14:51:39)
Offline
I didn't ever write any code to draw geometric figures on the screen, so I'm pretty interested as to why you would like to do that. Afaik the Game Boy is really not designed to do that, with its tile format.
Offline
ISSOtm wrote:
I didn't ever write any code to draw geometric figures on the screen, so I'm pretty interested as to why you would like to do that. Afaik the Game Boy is really not designed to do that, with its tile format.
I made a vector scene with the gbdk functions, and it runs quite well, so I was planning to include it in a demo, but it had conflicts with.. I don't know.
Also some custom asm functions would surely be faster.
So I wondered if it would be easy to make custom drawing functions.
This scene is working at around 20 fps on CGB, everything moving, the waves, the sun, the ship:
Last edited by Mills (2017-11-20 16:32:34)
Offline
Mills wrote:
Also some custom asm functions would surely be faster.
As far as I know, the functions that come with GBDK for this kind of things are written in assembly. You're just not going to get them to be faster, the GB wasn't designed to be used like this...
Offline