@code-dot-org/dance-party
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@code-dot-org/dance-party", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -71,2 +71,5 @@ module.exports = { | ||
'growing_stars', | ||
'blooming_petals', | ||
'clouds', | ||
'frosted_grid', | ||
], | ||
@@ -73,0 +76,0 @@ FOREGROUND_EFFECTS: [ |
@@ -187,2 +187,8 @@ /* eslint-disable no-unused-vars, curly, eqeqeq */ | ||
async loadCostumeAnimations(costume, costumeData) { | ||
if (!this.animations[costume]) { | ||
console.log('Unexpected costume: ' + costume); | ||
// Invalid costume, nothing to do: | ||
return; | ||
} | ||
if (this.animations[costume].length === this.world.MOVE_NAMES.length) { | ||
@@ -970,3 +976,3 @@ // Already loaded, nothing to do: | ||
} else { | ||
throw new Error('Unexpected format: ' + format); | ||
console.log('Unexpected layout format: ' + format); | ||
} | ||
@@ -1138,2 +1144,19 @@ | ||
} | ||
if ( | ||
params.dancers && | ||
params.dancers.type && | ||
this.world.SPRITE_NAMES.indexOf(params.dancers.type.toUpperCase()) >= | ||
0 && | ||
params.dancers.count && | ||
params.dancers.count >= 0 && | ||
params.dancers.count <= 40 && | ||
params.dancers.layout | ||
) { | ||
this.makeNewDanceSpriteGroup( | ||
params.dancers.count, | ||
params.dancers.type.toUpperCase(), | ||
params.dancers.layout | ||
); | ||
} | ||
} | ||
@@ -1140,0 +1163,0 @@ } |
@@ -78,3 +78,3 @@ const test = require('tape'); | ||
nativeAPI.setBackgroundEffect('rand'); | ||
t.equal(nativeAPI.world.bg_effect, 'swirl'); | ||
t.equal(nativeAPI.world.bg_effect, 'kaleidoscope'); | ||
nativeAPI.getBackgroundEffect().draw({bpm: 120}); | ||
@@ -81,0 +81,0 @@ |
@@ -81,4 +81,4 @@ const test = require('tape'); | ||
['smile_face'], | ||
// 'smiling_poop', need to debug | ||
// 'hearts_red', need to debug | ||
['smiling_poop'], | ||
['hearts_red'], | ||
['floating_rainbows'], | ||
@@ -95,3 +95,6 @@ ['bubbles'], | ||
['growing_stars'], | ||
['paint_drip'] | ||
['paint_drip'], | ||
['blooming_petals', 'vintage'], | ||
['clouds', 'neon'], | ||
['frosted_grid', 'vintage'], | ||
].forEach(effect => { | ||
@@ -98,0 +101,0 @@ let name = effect[0] + (effect[1] ? ("_" + effect[1]) : ""); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20890712
179
113669