# Fluid Cubes OSP

Root / Submissions / [.]

Nathaniel

**Created:****Download:**QKF3BERD

**Version:**

**Size:**

An interactive isometric simulation controlled by gravity.

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

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.

Thanks!

Replying to:12Me21

Another optimization:

FOR I=0TO 12FOR J=0TO 12K=I+J*13L=K*3X=I-6Y=J-6 ... NEXT:NEXTIf 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:NEXTIf 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:NEXTIf 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

FOR I=0TO 12FOR J=0TO 12K=I+J*13L=K*3X=I-6Y=J-6 ... NEXT:NEXTIf 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. 😮☺️

## Spoiler

[/Me to. 😮🍓🍓🍓🍓🍓🍓. FLUID FRUIT!]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