-
Notifications
You must be signed in to change notification settings - Fork 530
zValidationHelperFunctions Documentation
Library Source: Click Here
-
checkOneSprite(spriteIds) ⇒
boolean -
Category: HELLO WORLD
Checks if there is at least one sprite.
-
minimumSprites(spriteIds, n) ⇒
boolean -
Category: SPRITE LAB
Checks if there are a specified minimum number of sprites.
-
checkBackgroundChanged() ⇒
boolean -
Category: HELLO WORLD LEVEL
Checks if the background was changed.
-
checkSpriteLocations(spriteIds) ⇒
boolean -
Category: HELLO WORLD
Checks the locations of all sprites.
-
checkSpriteCostumes(spriteIds) ⇒
boolean -
Category: HELLO WORLD
Checks the costumes of all sprites.
-
checkMatchingSpriteCostumes(spriteIds) ⇒
boolean -
Category: SPRITE LAB
Checks the costumes of all sprites.
-
checkSpritesTouching(spriteIds) ⇒
boolean -
Category: HELLO WORLD
Checks if sprites are touching.
-
checkActiveSpeech(spriteIds) ⇒
boolean -
Category: HELLO WORLD LEVEL
Checks if any sprite has active speech.
-
checkTwoSprites(spriteIds) ⇒
boolean -
Checks if there are at least two sprites.
Category: HELLO WORLD
Checks if there is at least one sprite.
Kind: global function
Returns: boolean - Returns true if there is at least
one sprite and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |
Category: SPRITE LAB
Checks if there are a specified minimum number of sprites.
Kind: global function
Returns: boolean - Returns true if there are at least
n sprites and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |
| n | number |
number of sprites to check |
Category: HELLO WORLD LEVEL
Checks if the background was changed.
Kind: global function
Returns: boolean - Returns true if the background
was changed and false otherwise.
Category: HELLO WORLD
Checks the locations of all sprites.
Kind: global function
Returns: boolean - Returns true if all sprites have
different locations and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |
Category: HELLO WORLD
Checks the costumes of all sprites.
Kind: global function
Returns: boolean - Returns true if all sprites have
different costumes and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |
Category: SPRITE LAB
Checks the costumes of all sprites.
Kind: global function
Returns: boolean - Returns true if all sprites have
the SAME costume and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |
Category: HELLO WORLD
Checks if sprites are touching.
Kind: global function
Returns: boolean - Returns true if no sprites are
touching and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |
Category: HELLO WORLD LEVEL
Checks if any sprite has active speech.
Kind: global function
Returns: boolean - Returns true if any sprite has
active speech and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |
Checks if there are at least two sprites.
Kind: global function
Returns: boolean - Returns true if there are at least
two sprites and false otherwise.
| Param | Type | Description |
|---|---|---|
| spriteIds | array |
array of current active sprites |