Mr Dicey

January 10, 2022
Share
Links
About

Part of the game interface of a craps app called Learn Craps Yo FREE. Thanks to Mike Land for the SwiftUI development contract.

Task

Ultimately I want a new 3D version of the Dice on my current craps game to go into my New app Learn Craps Yo FREE.

Description

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.

More Projects

Find Couple

A small game as a technical task for work from Arbita company.

August 13, 2021

Learn More
Touch Ten

Simple game as a technical task for work from Gravity company.

August 18, 2021

Learn More
Roll Dice

Final training project from 100 Days SwiftUI Course. Thanks a lot Paul Hudson for amazing course for beginners.

June 4, 2021

Learn More