monster.angleTo(4, 8); // provides the value in radians of the angle between the monster and square 4,8
monster.angleTo(hero); // provides the value in radians of the angle between the monster and the hero angle

monster.autoShootCadence = 2; // If the monster is in Autoshoot mode, he will shoot every 2 seconds
monster.autoShootCadence = 0.2; // If the monster is in Autoshoot mode, he will shoot every 0.2 seconds

monster.bulletSpeed = 3; // The bullets shot by the monster will move at a speed of 3 square per second
monster.bulletSpeed = 0.5; // The bullets shot by the monster will move at a speed of half a square per second

hero.say("Hello, I’m the proud knight of Codesalot from the Castle of Guacamole");
// Displays a text box.
hero.say([
"Hello mate !",
"Use the arrows to move me.",
"Use space for the sword and W for the shield."
]);
//Displays the 3 messages one after the other
//It is possible to execute certain functions during the dialogue, for example:
function burning () {
hero.life -= 10;
}
hero.say([burning, "The ground is burning me!"]);

bullet.gridX = 3.5; // Set the horizontal position value of the bullet so that it is at the center of the 3rd column
bullet.gridX += 1; // moves the bullet 1 square to the right
bullet.gridX -= 2; // moves the bullet 2 squares to the left

bullet.gridY = 6.5; // Set the vertical position value of the bullet so that it is at the center of the 6th column
bullet.gridY += 1; // moves the bullet 1 square down
bullet.gridY -= 2; // moves the bullet 2 squares up