MCPcopy Index your code
hub / github.com/bigmacman1129/slot-casino-game

github.com/bigmacman1129/slot-casino-game @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
18 symbols 26 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

HTML5 Slot Machine

Build and Deploy Status code style: prettier

This is a modern proof of concept casino slot machine game, built using only vanilla HTML, CSS and JavaScript. No Flash or Frameworks required. Allowing for an amazing low bundle size and blazing fast performance.

Built using the Web Animations API.

Live Demo

Features

  • Fully responsive for great UX on mobile, web & fullscreen mode.
  • Autoplay functionality, which keeps running even if the game window is in background.

Installation, Build & Deployment

  1. Clone repository
  2. Run npm install
  3. Development: run npm start and go to http://localhost:8080
  4. Production: run npm run build and serve from /dist

Configuration

For configuration options see config object in index.js

Property Description Default
inverted Controls visual spinning direction of reels. If false, reels will spin from bottom to top. If true, reels will spin from top to bottom false
onSpinStart Callback function invoked when spin starts with symbols pattern array (symbols) => void. undefined
onSpinEnd Callback function invoked when spin ends with symbols pattern array (symbols) => void. undefined

Credits

Icons are created by KPD Media and can be used for private and commercial purposes with no attribution required (check license here).

Core symbols most depended-on inside this repo

random
called by 16
src/js/Symbol.js
spin
called by 2
src/js/Slot.js
renderSymbols
called by 1
src/js/Reel.js
preload
called by 1
src/js/Symbol.js
onSpinStart
called by 1
src/js/Slot.js
onSpinEnd
called by 1
src/js/Slot.js
constructor
called by 0
src/js/Reel.js
factor
called by 0
src/js/Reel.js

Shape

Method 12
Class 6

Languages

TypeScript100%

Modules by API surface

src/js/Symbol.js6 symbols
src/js/Slot.js6 symbols
src/js/Reel.js6 symbols

For agents

$ claude mcp add slot-casino-game \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact