Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBJS in 3D
#6
(03-01-2026, 04:22 PM)grymmjack Wrote: ...the virtual NES is just  Heart
Ha, thanks!  I actually tried to make this in such a way that it would be as easy as possible if anyone else wanted to "NESify" their QBJS program.  There are only three steps.

1) Include these dependencies at the top of your program:
Code: (Select All)
Import Dom From "lib/web/dom.bas"
Import THREE From "https://boxgaming.github.io/three.qbjs/three.qbjs"
Import NESify From "https://boxgaming.github.io/three.qbjs/samples/nesify.bas"

2) Before your main program loop starts, wait for the 3D assets to load:
Code: (Select All)
While Not NESify.IsLoaded: Limit 60: Wend

3) At the end of your game loop, insert a call to render the 3D scene just before you call _Limit:
Code: (Select All)
        _Display
        NESify.Render3DScene
        _Limit 60
    Loop Until _KeyDown(27)

Here's a NESified version of @bplus' Falling Circles game as an example:
   
Reply


Messages In This Thread
QBJS in 3D - by dbox - 02-23-2026, 08:15 PM
RE: QBJS in 3D - by NakedApe - 02-23-2026, 09:16 PM
RE: QBJS in 3D - by Sprezzo - 02-24-2026, 01:44 AM
RE: QBJS in 3D - by vince - 02-25-2026, 12:35 PM
RE: QBJS in 3D - by grymmjack - 03-01-2026, 04:22 PM
RE: QBJS in 3D - by dbox - 03-02-2026, 12:07 AM
RE: QBJS in 3D - by dbox - 03-02-2026, 05:29 PM
RE: QBJS in 3D - by bplus - 03-02-2026, 06:29 PM
RE: QBJS in 3D - by dbox - 03-02-2026, 08:42 PM
RE: QBJS in 3D - by bplus - 03-03-2026, 02:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)