Giter VIP home page Giter VIP logo

fuji-san-roulette's Introduction

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

fuji-san-roulette's People

Contributors

befiveinfo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.