{"repo":"mattcolman/phaser-list-view","free":true,"listed":false,"github":"https://github.com/mattcolman/phaser-list-view","clone":"git clone https://github.com/mattcolman/phaser-list-view.git","description":"List view class for Phaser. Great for high scoreboards.","language":"JavaScript","stars":116,"topics":["phaser","listview","scroller"],"license":"MIT","category":"game-templates","readme_excerpt":"List View classes for Phaser Install via npm npm install phaser-list-view --save https://www.npmjs.com/package/phaser-list-view Install via script tag Copy dist/phaser-list-view.js into your project and include via script tag Build npm run build Run demo npm i npm start API Scroller : A pure logic scroller. Includes iOS-like behaviour such as momentum, bounce-back and snapping. Most likely you would use DirectionalScroller or WheelScroller over this base Scroller. But if you have custom needs you can use it. DirectionalScroller : A pure logic scroller built for scrolling on the x and y axis. Extends the base Scroller class. WheelScroller : A pure logic scroller built for scrolling around a circle. Extends the base Scroller class. ListView : An iOS-like ListView class. Uses DirectionalScroller for the input and outputs a ListView. Performance is good because we cull off-screen items. Perfect for high scoreboards. SwipeCarousel : An iOS-like SwipeCarousel. Uses DirectionalScroller for the input and outputs a SwipeCarousel. Perfect for instructions screens, or a photo gallery. ListView Usage Options direction direction of scroll ['x' 'y'] // default 'y' autocull auto hidden elements outside of the viewport for performance [boolean] // default true momentum [boolean] // default true bouncing when you extend beyond the bounds and release, it bounces back [boolean] // default true snapping snaps to snapStep [boolean] // default false snapStep [number] // default undefined overflow ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mattcolman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mattcolman/phaser-list-view/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}