You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Make sure [CSC Module Helper Library] is included as a library in this levelif(World.frameCount==1){//Everything in this if-statement will just run once, during the first frame of your level//README() //uncomment this to see the README for the helper library in the console of this level//turnOnDebugging() //uncomment this to use a DEBUG global variable to control console.log statements in your codesetFailTime(150);// Frames to wait before failing studentsetDelayTime(90);// Frames to wait after success before stopping programsetupPrevious();//Defines the validationProps.previous{} object. To use it, call updatePrevious() at the end of this box//use addCriteria to setup the validation logic.//You can use criterion commands as helper functions: //https://github.com/code-dot-org/code-dot-org/blob/staging/apps/src/p5lab/spritelab/commands/criterionCommands.jsaddCriteria(function(){//You can write code in here like if-statements and such, but if possible, try to abstract to a function.//This isn't always possible, but should be the goalreturnsomeFunction();/* //alternatively: if(someCondition) { return true; } return false; */},"noSprites");// include i18n feedback string}//Everything after this will run during each 'tick' of the draw loop in your level//Be careful about putting console.log statements here//Always have this first to get most up-to-date helper variablesgetHelperVars();//This is what calls updateValidation in //https://github.com/code-dot-org/code-dot-org/blob/staging/apps/src/p5lab/spritelab/commands/validationCommands.js//To check the validation criteriacheck();//Always have this at end to store previous state in validationProps.previousupdatePrevious();