added som ebasic speech bubbles
This commit is contained in:
parent
05379c8001
commit
c51f5f4aa9
5 changed files with 83 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue