Dice / Card Game / Slot Machine Customizable Engine
DICE is customizable engine for creators to make their own dice based or random picture games.
Other than dice ideas are random card (rpg, command) and slot (spin) machine games.
All configuration is set in dice.txt file.

Features:
- own graphics (dice or random, background, logo pictures - jpg, gif, png)
- synchronized
- current user name (all players see who currently roll dice or get picture)
- set number of dices (unlimited)
- set animation (speed and duration - variable tempo)
- fit graphics (positions, colors)
- any type of dice (depends on amount of pictures)
- own sound (mp3 - extension should be renamed to sfx)
- block during rolling

* TRY IT *

*** EXAMPLE 1: Dice Game (dice.txt dafault settings with description) ***
bg=
# (optional) background picture (example: bg.png)
dices=2
# number of picture slots (dices)
rollspeed=1
# speed of random picture switching (dice rolling speed)
rolllength=40
# number of switched random pictures (dice rolling duration)
startpicture=
# (optional) start picture in dicepositionx and dicepositiony
pictures=dice1.png,dice2.png,dice3.png,dice4.png,dice5.png,dice6.png
# pictures separated with commas (example: 1.png,2.png)
dicepositionx=0
# (optional) dice position x
dicepositiony=0
# (optional) dice position y
playerfontsize=10
# player name font size
playerfontcolor=0xFFFFC6
# player name font color (html code, example: 0xFFFFC6)
playerfontbgcolor=0x000000
# player name background (html code, example: 0x000000)
playerfontbgalpha=0.5
# player name background transparency (example: 0.5)
playerfontbground=10
# player name background rounds (0 - no rounds)
playerpositionx=0
# (optional) player name position x
playerpositiony=0
# (optional) player name position y
playerspanel=1
# show which player roll (0 is off, 1 is on)
sync=1
# synchronization (0 is off, 1 is on)
actionsound=roll.sfx
# (optional) mp3 sound file when roll (rename extension to .sfx)

*** EXAMPLE 2: Random Card Game ***
dices=1
startpicture=ctitle.png
pictures=c1.png,c2.png,c3.png,c4.png,c5.png,c6.png,c7.png,c8.png
dicepositiony=22
playerfontbgalpha=1
actionsound=paper.sfx

*** EXAMPLE 3: Slot (Spin) Machine ***
bg=machine.png
dices=3
pictures=s1.png,s2.png,s3.png,s4.png,s5.png,s6.png,s7.png,s8.png
dicepositionx=22
dicepositiony=46
playerfontbgalpha=1
playerpositiony=118
actionsound=spin.sfx

Related: