You are browsing as a guest. Sign up (or log in) to start making projects!

1h 37m 40s logged

I added an event system, making it so your code can actually run

on GreenFlag {
    main();
}

on KeyPressed(W) {
    looks::say("W was pressed!");
}

These events are translated into functions and the compiler generates
scratch events that call these

on KeyPressed(W) {
    compiler@eventlistener@F();
}

void compiler@eventlistener@F() {
    looks::say("W was pressed!");
}

The compiler also generates a initializer green flag block which clears
the heap and reserves an index for every other entrypoint(image 2)

0
6

Comments 0

No comments yet. Be the first!