CASINO DRUM
HeadingGeneral explanation
How to use?
- Add pixi.js to page
- You should add createGame.js and add folder module to folder with createGame.js .
- Add js file with type module.
<script type="module" src="NAME"></script>
- Use this
import {createGame}from './createGame.js'
- Other information you can get from main.js used with this index.html to get this example Other information you can get from main1.js used with this index1.html to get this example Other information you can get from main2.js used with this index2.html to get this example
Explanation of something
- goUp - value of how many pixels to go after end position (plus or minus)
- index in getImageSrc is a value of number
- if we scroll drum down = number of images at first + added in scrolling
- if we scroll drum up = -(number of images at first + added in scrolling)