Mr Dicey

January 10, 2022
0 commits    0 ++    0 --
Links
Share
About

Part of the game interface of a craps app called Learn Craps. 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.

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.

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.

Testimonial

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.

Mike Land
Mike Land
CoFounder / CTO at ChangEd
Conclusion

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.

Learn Craps App icon

Learn Craps

Craps Education, LLC

Designed for iPhone

FreeOffers In-App Purchases

Learn Craps Game view

More Projects

Fastriver
0 commits    0 ++    0 --

A mobile application designed for online sellers to efficiently manage orders, track payments, and monitor deliveries in real time.

April 23, 2024

Find Couple
0 commits    0 ++    0 --

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

August 13, 2021

Touch Ten
0 commits    0 ++    0 --

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

August 18, 2021

Roll Dice
0 commits    0 ++    0 --

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

June 4, 2021