Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 339 Bytes

File metadata and controls

21 lines (16 loc) · 339 Bytes

@amoy/draggify

pixi.js draggable extension

Usage

import { use, Scene } from '@amoy/scene'
import draggify from '@amoy/draggify'

use(draggify)

// @scenes/home/index.ts
class Home extends Scene {
    create() {
        const ball = Sprite.from('ball')
        ball.draggify()
        // now `ball` can be dragged.
    }
}