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-02-18 02:17:25

M2m
Member
Registered: 2021-02-18
Posts: 27

Shitty 2.5D - PoC

I just started in GB dev like 2 weeks ago.

Made a 2.5D proof of concept in GBDK 2020 - with 5 walls. "Map" is at the top.

https://raw.githubusercontent.com/sttng/gb-stuff/main/shitty-25D/shitty25D.png

Main challenge is to get a screen redraw, which I couldn't get a decent solution so far - only one which induces heavy flickering. Not tested on real HW only BGB.
Also I didn't implement viewport clipping as of now.

Any tips for screen update appreciated. Also feel free to get the code and use it for whatever you think its helpful.

https://github.com/sttng/gb-stuff/tree/main/shitty-25D

Warning: Heavy Flicker if you test it in BGB !! Be careful if you are known to have records of photosensitive epilepsy

Offline

 

#2 2021-02-18 04:25:40

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

Re: Shitty 2.5D - PoC

line drawing on the game boy is a heavy task, because it has specific architecture and rather little resources. so, if you expect making doom that way - no, that won't be playable.

Offline

 

#3 2021-02-18 04:47:58

M2m
Member
Registered: 2021-02-18
Posts: 27

Re: Shitty 2.5D - PoC

Thanks for the reply. I'm quite surprised how far I got honestly. Without redraw (and the wireframe just 'smearing' over the screen) in this simple scene the framerate is much better then I expected. Given that I actually never developed any serious C, C++ or Assembler and that I'm also not a 3D engine expert I am pleasantly happy with the current state after 2 weeks.

My "solution" so far is effectively draw the scene 2x. One time the original and the 2nd time overwriting in white color, to clear the the scene. So basically I waste half of the framerate.

Anyway even if it will lead to nothing, I'm gonna learn something. So from that perspective I wont fail (even without a playable game) smile

Offline

 

#4 2021-02-18 06:42:18

tmk
Member
Registered: 2017-05-01
Posts: 63
Website

Re: Shitty 2.5D - PoC

Nice start but you really need switch to asm for better results / performance. Might want to check Jeff's APA Demo.
As for Doom, well... There's Tyrannosaurus Tex. smile

Offline

 

#5 2021-03-21 02:40:59

M2m
Member
Registered: 2021-02-18
Posts: 27

Re: Shitty 2.5D - PoC

Made some slight adjustments.

Can see some video here:
https://www.vrddit.com/?v=r/Gameboy/com … f_concept/

Offline

 

#6 2021-03-24 02:34:45

M2m
Member
Registered: 2021-02-18
Posts: 27

Re: Shitty 2.5D - PoC

Another small update. With some pseudo-clipping

https://www.vrddit.com/?v=r/Gameboy/com … itty_with/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson