We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26af12 commit e4d0fc3Copy full SHA for e4d0fc3
src/main/kotlin/Main.kt
@@ -0,0 +1,16 @@
1
+import org.scratchapi.scratchdsl.*
2
+
3
+fun main() =
4
+ build {
5
+ sprite {
6
+ val costume = addCostume("C:\\Users\\simon\\Downloads\\mkris.png".path, "Test Costume")
7
+ val var1 = makeVar("var1")
8
+ whenGreenFlagClicked {
9
+ val blocks = createBlockStack {
10
+ var1 changeBy 15.1.expr
11
+ }
12
+ repeat(10) { blockStack(blocks.cloneBlockStack()) }
13
14
15
16
+ .writeTo("C:\\Users\\simon\\IdeaProjects\\scratch-dsl\\src\\main\\resources\\aw.sb3".path)
0 commit comments