better scripting api
This commit is contained in:
@@ -109,6 +109,14 @@ fn init() {
|
||||
set_tile(2); // change my glyph to ☻ — proves the write path
|
||||
say("Hello there, traveller!");
|
||||
}
|
||||
|
||||
fn tick(dt) {
|
||||
//log(`x: ${Me.x} ${Board.player_x} y: ${Me.y} ${Board.player_y} q: ${Queue.length()}`);
|
||||
if Board.player_x == Me.x && Board.player_y == Me.y && Queue.length() == 0 {
|
||||
say("Hey! Get offa me!");
|
||||
delay(5.0);
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
mover = """
|
||||
|
||||
Reference in New Issue
Block a user