MCPcopy Create free account
hub / github.com/bwasti/mebm / constructor

Method constructor

script.js:237–249  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

235
236class MoveableLayer extends RenderedLayer {
237 constructor(file) {
238 super(file);
239 // all moveables 2 seconds default
240 this.total_time = 2 * 1000;
241 this.frames = [];
242 for (let i = 0; i < (this.total_time / 1000) * fps; ++i) {
243 // x, y, scale, rot, anchor(bool)
244 let f = new Float32Array(5);
245 f[2] = 1;
246 this.frames.push(f);
247 }
248 this.frames[0][4] = 1;
249 }
250
251 dump() {
252 let obj = super.dump();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected