Skip to main content

Scene

An "empty" Component. Its purpose is to make working with groups of components syntactically clearer.

Example:

const { Scene } = require('@osbjs/osbjs')
const { Flash } = require('./components/Flash')

class Intro extends Scene {
constructor(startTime, endTime) {
this.startTime = startTime
this.endTime = endTime
}

generate() {
const fl = new Flash(1000, 2000)
this.registerComponents(fl)
}
}

module.exports = { Intro }