Mr DiceyJanuary 10, 2022
Ultimately I want a new 3D version of the Dice on my current craps game to go into my New app Learn Craps.
To create dice in 3D, I used SceneKit. In the scene I created models of cubes and floor, set up the physics of the scene and objects, camera, light. Then I added old textures from the first version of the game to the dice, rounded the edges a bit and I got dice with the necessary physics.
To track the touch and hold of the dice, I used the UIPanGestureRecognizer, then added a movement and applyForce animation. In a real dice game, in order to make a valid roll, you need to throw the dice to one side of the table. I implemented this by throwing the dice to the right side of the screen.
Another interesting nuance. The fact is that in professional dice the matrix of values is located in a certain way. Each front and opposite side of the cube will always be equal to the number 7. This is also implemented in this project that would save the reality of the dice game.
The next development contract was to implement these dice into Mike's new app, the difficulty was the buttons on the table, which needed to be interactive. So I create an independent SceneView with the cubes and their animations and track its touches to place this scene in front of or behind the GameView.
I was on GitHub looking for open source dice for my new Craps mobile app when I discovered Andy's work. Andy was able to implement his dice into my Swift app. He was reliable and professional.
I was able to achieve realistic throwing and dice rolling behavior that will allow the player to feel it and enjoy the throwing while learning the game.
Mike has successfully released his app on the App Store with my 3D dice cubes and is helping people learn how to play Craps.
Craps Education, LLC
Designed for iPhone
Free • Offers In-App Purchases
Find Couple0 commits 0 ++ 0 --
A small game as a technical task for work from Arbita company.
August 13, 2021
Touch Ten0 commits 0 ++ 0 --
Simple game as a technical task for work from Gravity company.
August 18, 2021