a plugin for the enchant.js -- Japanese OSS HTML5 game engine. https://github.com/wise9/enchant.js
sample code is here. http://jsdo.it/eller86/dbAH
- load ScrollableScene.enchant.js after you've loaded enchant.js.
- call
enchant()
to initialize engine. - now you can call
new ScrollableScene()
at everywhere.
Its interface is same as interface of enchant.Scene. Please see the below document. http://wise9.github.com/enchant.js/doc/ja/symbols/enchant.Scene.html
There are some recommended properties to specify looks of scroll bar. The class name of scroll bar, a div element, is scrollablescene_scrollbar.
- right or left: to specify position of scroll bar.
- width: to specify width of scroll bar.
- background-color: to specify color of scroll bar.
MIT License http://www.opensource.org/licenses/mit-license.php