-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Designed the basic blocks in the extension
- Loading branch information
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//% color=#20bf6b weight=100 icon="\uf0ae" | ||
namespace levels { | ||
|
||
/** | ||
Change the current level that is playing | ||
**/ | ||
//% block | ||
//% l.defl=1 | ||
export function startLevel(l: number = 1) { | ||
} | ||
|
||
/** | ||
Restart the current level | ||
**/ | ||
//% block | ||
export function restartLevel() { | ||
} | ||
|
||
/** | ||
Start the next level (increment level by one) | ||
**/ | ||
//% block | ||
export function startNextLevel() { | ||
} | ||
|
||
/** | ||
Set the code to run on the start of each level | ||
@param l the level number | ||
**/ | ||
//% block="on start level $l" | ||
//% l.defl=1 | ||
export function onStartLevel(l: number = 1, handler: () => void): void { | ||
} | ||
} |
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 +1 @@ | ||
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="N?FY*G*IS#wMe%RQ)SQr">value</variable><variable id="ZF;V,?GK~M=;bIAH$8CJ">list</variable></variables><block type="pxt-on-start" id="8nuM@-?-?%%;/r/|yHC?" x="0" y="0"></block></xml> | ||
<xml xmlns="https://developers.google.com/blockly/xml"><block type="pxt-on-start" id="@!{Ymfd?WLn82.Z50V$L" x="0" y="0"></block></xml> |
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