Skip to content

monosolar/slots-type-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slots machine prototype

This is an example of using TypeScript + PIXI renderer to perform prototype of spinning slot reel.

Requirements:

  • Make signs animation like in real slots reel
  • Use PIXI.js as renderer
  • Use TypeScript for source code
  • Signs should setting by arrays of numbers: [1,2,3,4,5,6,7,8,9,10,11,12], [1,2,3,4,5,6,7,8,9,10,11,12], [1,2,3,4,5,6,7,8,9,10,11,12], [1,2,3,4,5,6,7,8,9,10,11,12], [1,2,3,4,5,6,7,8,9,10,11,12]
  • Order of numbers may be random
  • Spin button should be below of reels
  • After clicking button should be disabled till each reel will stop
  • On clicking Spin Button should play sound "Reel_Spin.mp3"
  • Stop-position of each reel is random. But time between stop each reel is equal.
  • At reel stop should play "Landing_1.mp3" sound
  • Reels starting from last stopped positions
  • Reel has loop spinning animation, end of array is equal to begin

Realization:

Used TypeScript, PIXI main library, PIXI sound tool. Libraries deployed by npm, see package.json

Installation

npm install or download libraries manually according to path's in code

About

Slots gambling prototype

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published