Cube Match - 3D puzzle game


  • F

    The maths, well... I just found out that, some ugly "if"s have to do it before I have the time to get a math-brush-up to make the code easier to maintain. Probably I just invented brute-force trigonometry.


  • Fuze Team

    Hey... brute force trigonometry.. I thought I invented that. Actually that sums up my coding style entirely!

    So Spikey, where is this going, how is it coming along? So far this is one of the most impressive things i've seen. I really hope you are able to turn it into a full game. Keep it up... please!


  • F

    I have some ideas ready that could lead to a complete game. But I see more and more where I will have to invest efforts (also in the beginning of the next project) to get a satisfying game flow for the player and maintainable code. But its just so teasing to jump right into graphics and sound😁


  • Fuze Team

    nothing worse than realising how much work is actually required to make a real game - especially after spending so much time on the early mechanics. But, i promise you, it will be worth while, especially because most won't comprehend all the mistakes and rewrites you have had to go through to get there. Rest assured though, there's a lot of people here who understand exactly what it takes and fully appreciate the end result. Saying that, with what i've seen so far, and i'm so very far from an expert on this, i'm intrigued and excited to see what the next project might bring.

    Still though - i love the idea of the 3d jigsaw puzzle game - it has a lot of merit and scope and as such must not be given up on!

    No pressure but.... hurry up dude :-)


  • F

    Finally managed to get a collision detection for these 3D cube sides. uff.


    Final steps are the creation of a "join3DShape()" and adding some better world lighting.


  • F

    Status update: I am back on track. After my ugly if-workaround to solve the handling of the cubes, turning around their own local coordinate system, blew up when joining two shapes, I found a way to track the cubes rotations. But it needs some time to simplify it first...!cube_match_03.jpg


  • F


    Ahh.. the last 20%, when you spot the bugs in the program corners. If the puzzle would be easier, I could quicker test if the cube is completed or not ;-)


  • Fuze Team

    You get a shout out in the new video!


  • F

    @pianofire yes fuze !!!! Cant wait


  • F

    @pianofire ooh, what an honor. @Dave thanks!! I can feel a slight pressure to get it done properly😁 ...and with those 3D functions I will be able to reduce the lines of code by 40%. These put a lot of sugar on the 3D cake. The way is open for even more awesome game projects. Thank you for that.


  • F

    Please excuse the silence in this thread. I learned that the shapes I was using are not public domain. I will come up with a public domain friendly version to respect this.


  • Fuze Team

    I didn't see that the shoutout was mentioned here! No problem :) It's worth shouting out!

    No pressure of course, but it would be so cool to see the updates to this.


  • F


  • F

    I learnt that backgrounds enrich 3D scenes, so I decided to add the cloudy 3D setEnvironment(2, ...). My first approach setting the camera to a bottom-up view, to show the desired part of the background without the horizon was not applicable. Because the rotation order of the axis is fixed to the most common scene ground, the plane x-z axis. And I need to tilt to the left and right, during the game, to make the puzzle easier. So, I use a camera perspective that still shows a bit of the horizon.Background_With_Horizon.jpg


Log in to reply