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

Method buildSpriteSheet

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

Source from the content-addressed store, hash-verified

178 }
179
180 buildSpriteSheet (options) {
181 this.options = this.fillOptions(options)
182 const key = this.spriteSheetKey(this.options)
183 const ss = this.spriteSheets[key]
184 if (!this.isFullyLoaded() || !this.get('raw')) { return false }
185 if (ss) { return ss }
186 if (this.building[key]) {
187 this.options = null
188 return key
189 }
190 this.t0 = new Date().getTime()
191 this.initBuild(options)
192 if (!this.options.portraitOnly) { this.addGeneralFrames() }
193 this.addPortrait()
194 this.building[key] = true
195 const result = this.finishBuild()
196 return result
197 }
198
199 initBuild (options) {
200 if (!this.actions) { this.buildActions() }

Callers 1

getPortraitStageMethod · 0.95

Calls 8

fillOptionsMethod · 0.95
spriteSheetKeyMethod · 0.95
isFullyLoadedMethod · 0.95
initBuildMethod · 0.95
addGeneralFramesMethod · 0.95
addPortraitMethod · 0.95
finishBuildMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected