Skip to content

jackywang135/JW3DDiceView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JW3DDiceView

Allows you to easily implement a 3D Dice rolling view into your UI with simple APIs.

Demo

iPad Demo

#Usage

You may

  • Add Dice
  diceView.addDice()
  • Delete Dice
  diceView.deleteDice()
  • Roll Dice
  diceView.roll()
  • Get Total
 diceView.total

And be notified when

  • Did start & end of rolling
  • Did reach max & go under dice capacity

#Customization

You may customize these properties

  • Dice Size
  • Roll on shake
  • Roll in response to Device Motion
  • Sound
  • Background Image

#Installation

  1. Download or Clone the project

  2. Drag the JW3DDiceView.swift file into your project

  3. Add the images in folder "RequiredImages" into your image assets

  4. Add the "ShakeAndRollDice.mp3" file into your project if you'd like to enable sound.

#App Store

Used in App Dice Field 3D in the App Store. Repository

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages