Skip to content

Commit e4d0fc3

Browse files
committed
0.0.1a2
1 parent c26af12 commit e4d0fc3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/main/kotlin/Main.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)