MCPcopy Create free account
hub / github.com/codecombat/codecombat / initBuild

Method initBuild

app/models/ThangType.js:199–205  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

197 }
198
199 initBuild (options) {
200 if (!this.actions) { this.buildActions() }
201 this.vectorParser = new SpriteBuilder(this, options)
202 this.builder = new createjs.SpriteSheetBuilder()
203 this.builder.padding = 2
204 this.frames = {}
205 }
206
207 addPortrait () {
208 // The portrait is built very differently than the other animations, so it gets a separate function.

Callers 1

buildSpriteSheetMethod · 0.95

Calls 1

buildActionsMethod · 0.95

Tested by

no test coverage detected