added som ebasic speech bubbles

This commit is contained in:
kharhamel 2020-04-12 19:35:51 +02:00
parent 05379c8001
commit c51f5f4aa9
5 changed files with 83 additions and 3 deletions

View file

@ -15,10 +15,11 @@ export class NonPlayer extends PlayableCaracter {
fleeFrom(player:Player) {
if (this.isFleeing) return;
this.say("Don't touch me!");
this.isFleeing = true;
setTimeout(() => {
console.log("I escaped");
this.say("Feww, I escaped.");
this.isFleeing = false
this.fleeingDirection = null
}, 3000);