Work in Progress

3DBLOOD

4

Ericisonit 2021-01-23 23:07 (Edited)

Just a random art generator that’s kinda fun to watch. Play with the game pad controls, they have subtle effects. (God I love math...)

New faster generation thanks to was8bit :-)

3DBLOOD.nx | Open in app
2021-01-27 05:44
3DBLOOD.nx | Open in app
2021-01-23 23:07

GAMELEGEND 2021-01-23 23:54 (Edited)

i dont like math and this hurts my brain XD

YANG=COS(((((RASTER - (PIXELS_T+(PIXELS_H/2)))/(PIXELS_H/2))*(PI/2))+(PI/(864000/TIMER))))
YSC=RASTER-INT((YANG*(PIXELS_H/2))+PIXELS_T)
SCROLL 0,(PIXELS_W-INT(SQR(ABS(YSC))))\8,YSC-8


Ericisonit 2021-01-24 05:30

It’s a *controlled* chaos, ya see... I knew exactly what those lines of code did at the time of drunken coding... couldn’t tell ya now, tho.... but that’s the magic of chaos.... **grabs Jeff Goldblum**


was8bit 2021-01-24 08:58

Remove the WAIT VBL and it speeds up alot ;)


Ericisonit 2021-01-25 20:06

See, this is why you are my lowRes idol


was8bit 2021-01-25 23:06

:D

There are times where you don't want maximum speed, and even WAIT VBL is too fast... in most cases you still want to keep WAIT VBL in your main DO LOOP but want different things to update at different and precise speeds...

REM ANIMATION FRAME SPEED CONTROL
WFRAME=(WFRAME+1) MOD MFRAME
IF WFRAME=0 THEN
.. UPDATE FRAME CODE
ADD IFRAME,2,32 to 42
........
END IF

REM THING MOVEMENT CONTROL
WTHING=(WTHING+1) MOD MTHING
IF WTHING=0 THEN
.... CODE TO MOVE THING
XTHING=XTHING+MXTHING
......
END IF

YOU CAN ALSO ADJUST THE TIMING IN REAL TIME DURING THE GAME WITH CODE, IN THE EXAMPLES ABOVE, BY ADJUSTING MFRAME AND MTHING


Log in to reply.