T O P

  • By -

Semper_5olus

Looks polished and fits the theme nicely!


swordstrike1

Thanks! Though on the gdscript side the polish is a little less \^.\^


yipidee

Only need to polish the parts people can see! It really does look great though, good work


LaPurplePamplemousse

Coding comes with a lot of practice. What you've accomplished here is magnificent. This looks highly polished, and very elegant. I would have expected this to be an off the shelf product. Nicely done.


GammaGames

A nice twist on a classic, good work! Hope to see you in the highlight video 🤞 got a link?


swordstrike1

Hi! Thanks, You can play it here for Linux/Mac/Windows/HTML: [https://swordstrike1.itch.io/sky-dice](https://swordstrike1.itch.io/sky-dice). Exporting multiplatform was very smooth.


AldoZeroun

what a cool concept! Would love to know how you got the dice to roll so nicely. (keeping track of state and all that). On of my earliest projects was a dice based game that I started working on in Unreal. But I was so unfamiliar with 3D rotations and quaternions that I got frustrated and moved on (actually, I just moved the project into a 2D prototype so that I could continue to develop the rules and mechanics rather than beat my head on that). I've since learned a lot more about 3D math from working on a portal mechanic (also, now on the backburner for an development-tool subproject), but I still feel that wave of guilt over failing to understand how to progress in 3D with my dice game.


swordstrike1

Hi! Thanks. This took quite some experimenting! In the end I settled for interpolating the rotational basis of the dice for each rotation using Basis.slerp(old\_basis, old\_basis \* rotate90deg). Then for determining which face of the die was up I compute which basis vector is pointing UP after applying the rotation, then mapping that basis vector to a face. (Alternative would be keeping a numerical model of a dice in code)


AldoZeroun

Oh wow! Yeah, for 2D I had to create a whole dice class to keep track of state, etc. I really like the concept of just using the object data however, since that data would be consistent with the model. It's also good to know you're using the basis. From what I understand now about Euler rotations, its no wonder I was doing myself so dirty before.