Chinese Lantern Slots

Our other games

Thank you for purchasing my game. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!

China Slots is an html5 casino game written on Phaser framework on TypeScript lang. Typical resolution for this game is 1024x768, but graphics sources are made for 2048x1536. The game fits on any screen, both vertical and landscape orientations.

 

To make the game playable on your server, you only need to copy "build" folder content to target folder on your server. The game will start in fullscreen mode without any HTML container:
If you want to insert game on your page, add this scripts into your HTML file:

 <script src="libs/phaser.min.js"></script>
 <script src="game.js"></script>
 
and make sure that you have div block with id="content" in your page source. This block will contain the game after the page loaded. You can configure styles of this div as you wish. 
You can open build/index.html file to see a sample of inserting the game into a page. 
Another simple way to insert this game into your page is using an <iframe> block. You need only load all content of build folder to your server and add <iframe src="path/to/the/game/index.html"> at the needed place with needed styles.
 
Also, please, make sure that you copy or import CSS settings from default.css to make fonts working properly. 
 
 
Zip file with game contains TypeScript project in a folder named Slots_china. Subfolders are:
- assets: graphics assets and Texture Packer projects for building atlases.
- build: folder with the built game. You can easily move it to your server to publish the game.
- src: sources written on TypeScript
- tsDefinitions: some *.d.ts files for the project
 
All game settings are placed into build/assets/data/data.json. This file consists of:

               e.g. this kind of an array:

               0 1 1 1 0
               1 1 1 1 1
               1 1 1 1 1
               0 1 1 1 0
               will produce this kind of a board (chips on the corners aren't used):

 

You can edit any graphics in this game, but you need a TexturePacker app for this. 

There are two .tps projects in this projects: ui for UI and china for board graphics. You can find them at the assets folder. Elements images names started with "china_chip_".

Feel free to ask me for rebuilding this projects with your graphics if you don't want to load and buy TexturePacker.

 

Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this game. No guarantees, but I'll do my best to assist. 

Yuriy