[READ-ONLY] Mirror of https://github.com/excaliburjs/ludum-41. Ludum Dare 41: Office Daydream excaliburjs.com/ludum-41
0

Configure Feed

Select the types of activity you want to include in your feed.

Add additional head art

jedeen (Apr 23, 2018, 5:52 PM -0500) 65d653df ba405911

+10 -1
art/office-overlay.aseprite

This is a binary file and will not be displayed.

game/assets/img/office-overlay.png

This is a binary file and will not be displayed.

+7 -1
game/overlay.ts
··· 15 15 16 16 this.z = 99; 17 17 18 - this.addDrawing(resources.txOverlay); 18 + // this.addDrawing(resources.txOverlay); 19 + 20 + let spriteSheet = new ex.SpriteSheet(resources.txOverlay, 10, 1, 800, 800); 21 + 22 + for (let i = 0; i < 10; i++) { 23 + this.addDrawing("head_" + i, spriteSheet.getSprite(i)); 24 + } 19 25 } 20 26 }
+3
game/scnMain.ts
··· 21 21 this._top.healthMeter.health = Config.Health.Default; 22 22 this._bottom.setup(this); 23 23 soundManager.startOfficeAmbience(); 24 + let randomHeadIndex = Config.Rand.integer(0, 9); 25 + console.log("setting overlay to head: " + randomHeadIndex); 26 + this._overlay.setDrawing("head_" + randomHeadIndex); 24 27 } 25 28 26 29 onDeactivate() {