-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hoc2023-prettier-src' into hoc2023-initial
- Loading branch information
Showing
40 changed files
with
2,809 additions
and
2,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
bracketSpacing: false, | ||
arrowParens: "avoid", | ||
arrowParens: 'avoid', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
module.exports = { | ||
collisionEveryNMeasure: { | ||
solutions: [ | ||
` | ||
var lead_dancer; | ||
whenSetup(function () { | ||
makeNewDanceSprite("CAT", "lead_dancer", {x: 200, y: 200}); | ||
}); | ||
everySeconds(2, "measures", function () { | ||
changeMoveLR("lead_dancer", 3, -1); | ||
}); | ||
everySeconds(4, "measures", function () { | ||
changeMoveLR("lead_dancer", 1, -1); | ||
setProp("lead_dancer", "scale", 50); | ||
}); | ||
` | ||
var lead_dancer; | ||
whenSetup(function () { | ||
makeNewDanceSprite("CAT", "lead_dancer", {x: 200, y: 200}); | ||
}); | ||
everySeconds(2, "measures", function () { | ||
changeMoveLR("lead_dancer", 3, -1); | ||
}); | ||
everySeconds(4, "measures", function () { | ||
changeMoveLR("lead_dancer", 1, -1); | ||
setProp("lead_dancer", "scale", 50); | ||
}); | ||
`, | ||
` | ||
var lead_dancer; | ||
whenSetup(function () { | ||
makeNewDanceSprite("CAT", "lead_dancer", {x: 200, y: 200}); | ||
}); | ||
everySeconds(4, "measures", function () { | ||
changeMoveLR("lead_dancer", 1, -1); | ||
}); | ||
everySeconds(2, "measures", function () { | ||
changeMoveLR("lead_dancer", 3, -1); | ||
}); | ||
` | ||
var lead_dancer; | ||
whenSetup(function () { | ||
makeNewDanceSprite("CAT", "lead_dancer", {x: 200, y: 200}); | ||
}); | ||
everySeconds(4, "measures", function () { | ||
changeMoveLR("lead_dancer", 1, -1); | ||
}); | ||
everySeconds(2, "measures", function () { | ||
changeMoveLR("lead_dancer", 3, -1); | ||
}); | ||
`, | ||
], | ||
validationCode: ` | ||
if (nativeAPI.getTime("measures") === 5) { | ||
let cats = nativeAPI.getGroupByName_('CAT'); | ||
for(let i = 0; i < cats.length; i++){ | ||
if(cats[i].current_move !== 1){ | ||
nativeAPI.fail("Cat sprite not dancing 1."); | ||
} | ||
} | ||
} | ||
if (nativeAPI.getTime("measures") > 8 && nativeAPI.getTime("measures") < 9) { | ||
let cats = nativeAPI.getGroupByName_('CAT'); | ||
for(let i = 0; i < cats.length; i++){ | ||
if(cats[i].current_move !== 3){ | ||
nativeAPI.fail("Cat sprite not dancing 3."); | ||
} | ||
} | ||
} | ||
if (nativeAPI.getTime("measures") > 1 && nativeAPI.getTime("measures") < 2) { | ||
let cats = nativeAPI.getGroupByName_('CAT'); | ||
for(let i = 0; i < cats.length; i++){ | ||
if(nativeAPI.getProp(cats[i], "scale") === 50) { | ||
nativeAPI.fail("Cat sprite event happened too early."); | ||
} | ||
} | ||
} | ||
if (nativeAPI.getTime("measures") > 9) { | ||
nativeAPI.pass(); | ||
} | ||
validationCode: ` | ||
if (nativeAPI.getTime("measures") === 5) { | ||
let cats = nativeAPI.getGroupByName_('CAT'); | ||
for(let i = 0; i < cats.length; i++){ | ||
if(cats[i].current_move !== 1){ | ||
nativeAPI.fail("Cat sprite not dancing 1."); | ||
} | ||
} | ||
} | ||
if (nativeAPI.getTime("measures") > 8 && nativeAPI.getTime("measures") < 9) { | ||
let cats = nativeAPI.getGroupByName_('CAT'); | ||
for(let i = 0; i < cats.length; i++){ | ||
if(cats[i].current_move !== 3){ | ||
nativeAPI.fail("Cat sprite not dancing 3."); | ||
} | ||
} | ||
} | ||
if (nativeAPI.getTime("measures") > 1 && nativeAPI.getTime("measures") < 2) { | ||
let cats = nativeAPI.getGroupByName_('CAT'); | ||
for(let i = 0; i < cats.length; i++){ | ||
if(nativeAPI.getProp(cats[i], "scale") === 50) { | ||
nativeAPI.fail("Cat sprite event happened too early."); | ||
} | ||
} | ||
} | ||
if (nativeAPI.getTime("measures") > 9) { | ||
nativeAPI.pass(); | ||
} | ||
`, | ||
}, | ||
}; | ||
}; |
Oops, something went wrong.