enter hook

This commit is contained in:
2026-07-11 11:47:45 -05:00
parent cdeae455dc
commit b1b723fd1b
10 changed files with 371 additions and 43 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ fn init(me) {
log(`Player health: ${Player.health}`);
}
fn tick(me, dt) {
fn enter(me, dir) {
if Player.x == me.x && Player.y == me.y && !me.waiting {
say("Hey! Get offa me!");
me.delay(5.0);