Skip to content
Roulette game built upon Phaser JS 2 Community Edition
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
js
sound
LICENSE
README.md
config.json
index.html

README.md

Fuji-san Roulette

This game is built upon Phaser JS and published under MIT license except for few stock materials used in this game. Please see in the Special Thanks section to find out which materials are from third parties.

How to Play

Choose any number button from 2 ~ 30 to place your bet. Each bet costs 2 credits. Press START button to spin the roulette. You win if the roulette stops at any of numbers of your choice as indicated by the roulette needle.

100 free credits are replenished every 10 minutes up to a max limit of 200 credits.

Keys

  • 1 ~ 6 numeric keys: Bet.
  • Space bar: Start.
  • F: toggle full screen.

Online Demo

Please check up online demo to see how it works in your web browser:

http://play.befive.info/fuji-san-roulette

To try this script on your webserver

  1. Make a directory in your web server and copy the content into it.
  2. Open http:://yourserver/the_directory_of_your_choice/index.html in your browser
  • Note: You can still try the demo by simply double clicking index.html in your computer's desktop. But you will not hear any sound because of CORS issue (please see here for more info).
  1. You can easily replace the background art by modifying images/backgroundArt.jpg The dimensions of the image should be 600 x 900.
  2. There are few configurations that can be modified in the rom-game.js. Edit config.json.
  • playCost : defines the amount of credit necessary for 1 bet.
  • initial_credits : defines the amount of credit user initially has.
  • pocketBetStrip : defines a sequence of pocket numbers.
  • replenishment_credits : defines amount of credits to be replenished at a time.
  • replenishment_max : defines maximum amount of credits to be replenished.
  • replenishment_every : defines time for the next replenishment.

It is possible to enjoy the game by simply downloading the repo as a zip archive, thawing the archive, then opening index.html it by double click. But you do not have web fonts and sound support. You will need to put the archive on your web server for the full functionality.

Please also see

Special Thanks

  • Kagakuchop Font
  • The photograph used in the background art, a cityscape of Yokohama with Mount Fuji in the background.
  • switch02, button switch sound.
    • Kurage Kosho distributes public domain sounds which you can use for absolutely free as long as you do not violate laws by using them.

License

MIT

You can’t perform that action at this time.