LoginLogin

Fluid Cubes OSP

Root / Submissions / [.]

NathanielCreated:
Download:QKF3BERD
Version:Size:
An interactive isometric simulation controlled by gravity.

Instructions:

> Press any button to continue to the next simulation > Interact by tilting the system

Notes:

Credits to Rwiiug for the music.

This is amazing, can we please see the source code?! Do you have an unobfuscated version? It's an interactive 3D grapher, you should go further with this project! The second design excites me, imagine making a golf game where the lump in the ground is your only way of controlling the world

Replying to:Simeon
This is amazing, can we please see the source code?! Do you have an unobfuscated version? It's an interactive 3D grapher, you should go further with this project! The second design excites me, imagine making a golf game where the lump in the ground is your only way of controlling the world
Oh wow! These are sprites, not graphics I guess that makes sense since it saves you from sorting by Z

Looks like somebody got some inspiration from BeesAndBombs

Replying to:MochaProbably
Looks like somebody got some inspiration from BeesAndBombs
Yip! glad somebody noticed.

Replying to:Simeon
This is amazing, can we please see the source code?! Do you have an unobfuscated version? It's an interactive 3D grapher, you should go further with this project! The second design excites me, imagine making a golf game where the lump in the ground is your only way of controlling the world
Replied in order: I only have a halfway unobfuscated version ATM. But, it shouldn't be too hard to create. Maybe I can hand this project off to you. I know you're VERY creative. I actually had a similar thought but I have no clue how to make 3D physics in SB. Yeah, that and it saves processing. The only downfall is minor graphical glitches from scaling the center sprite.

Nice (I think you can replace ​(C+(M>N))MOD 8 with 7AND C+(M>N))

Replying to:12Me21
Nice (I think you can replace ​(C+(M>N))MOD 8 with 7AND C+(M>N))
Thanks!

Found the easter egg
easter egg

Another optimization:
FOR I=0TO 12FOR J=0TO 12K=I+J*13L=K*3X=I-6Y=J-6 ... NEXT:NEXT
If you iterate over K instead, and calculate I and J from K rather than the other way around:
FOR K=0TO 168L=K*3X=K DIV 13-6Y=K MOD 13-6 ... NEXT

Replying to:12Me21
Another optimization:
FOR I=0TO 12FOR J=0TO 12K=I+J*13L=K*3X=I-6Y=J-6 ... NEXT:NEXT
If you iterate over K instead, and calculate I and J from K rather than the other way around:
FOR K=0TO 168L=K*3X=K DIV 13-6Y=K MOD 13-6 ... NEXT
Great... Now I have more space than I know what to do with.

Replying to:12Me21
Another optimization:
FOR I=0TO 12FOR J=0TO 12K=I+J*13L=K*3X=I-6Y=J-6 ... NEXT:NEXT
If you iterate over K instead, and calculate I and J from K rather than the other way around:
FOR K=0TO 168L=K*3X=K DIV 13-6Y=K MOD 13-6 ... NEXT
Replacing the stand alone 0’s with .’s should help free up a bit too

Replying to:12Me21
Another optimization:
FOR I=0TO 12FOR J=0TO 12K=I+J*13L=K*3X=I-6Y=J-6 ... NEXT:NEXT
If you iterate over K instead, and calculate I and J from K rather than the other way around:
FOR K=0TO 168L=K*3X=K DIV 13-6Y=K MOD 13-6 ... NEXT
that's not how it works

Replying to:12Me21
Another optimization:
FOR I=0TO 12FOR J=0TO 12K=I+J*13L=K*3X=I-6Y=J-6 ... NEXT:NEXT
If you iterate over K instead, and calculate I and J from K rather than the other way around:
FOR K=0TO 168L=K*3X=K DIV 13-6Y=K MOD 13-6 ... NEXT
Good idea... but I've already saved as much space as I could with that trick. Man I'm slow

This is pretty cool. 😮☺️

Replying to:snail_
Found the easter egg
easter egg
Spoiler [/Me to. 😮🍓🍓🍓🍓🍓🍓. FLUID FRUIT!]

Does anybody have any suggestion on what I should add? I just saved nearly three lines of wrapped code and have no clue what to use them for.

Replying to:Nathaniel
Does anybody have any suggestion on what I should add? I just saved nearly three lines of wrapped code and have no clue what to use them for.
Do you think you could do fake single-axis rotation in 3 lines? You don't have to swap the colors, but you'd have to transform the sprites and IDK about occlusion.

Replying to:Nathaniel
Does anybody have any suggestion on what I should add? I just saved nearly three lines of wrapped code and have no clue what to use them for.
I doubt it. I can certainly try though.

Replying to:Simeon
This is amazing, can we please see the source code?! Do you have an unobfuscated version? It's an interactive 3D grapher, you should go further with this project! The second design excites me, imagine making a golf game where the lump in the ground is your only way of controlling the world
Unobfuscated version (won't be up for long): REMOVED

Add music (oops this was meant to be a reply)