NEW
Font size
Worksheetscourse 2 lesson5
Total questions: 7
Worksheet time: 4mins
Point A with coordinates y = 20 and x= 3
A (3,-20)
A(3 20)
A (20,3)
A (3, 20)
Choose the correct code to build a fence at y= 54 and x = 36
Hero.buildXY(“fence”, 36,54)
hero.builsXY(“fence”, “36”, “54”)
hero.buildXY(“fence”,36,54)
hero.build(“fence”, 36, 54)
game.spawnXY(“knight”,23,35)
spawn a fence 10 units away at the top of hero.
hero.spawnxy(“fence”,33,35)
hero.spawnXY(“fence”,23,45)
hero.spawnXY(“fence”,33,45)
hero.spawnxy(“fence”,33,35)
Choose the right code to check if the enemy exists then attack
Choose the right code to spawn a player
game.spawnPlayerXY(“knight”, 10,10)
game.SpawnXY(“knight”, 10,10)
game.SpawnPlayerXY(“knight”, 10,10)
Game.spawnPlayerXY(“knight”, 10,10)
How to check if cleave is ready?
if hero.isReady(“cleave”)
If hero.IsReady(“Cleave”):
If cleave.isReady:
if hero.isReady(“cleave”):
Choose the right code to find the distance to the enemy
d=Hero.distanceto(enemy)
d=hero.distanceTo(enemy):
d=hero.findDistanceTo(enemy):
di=hero.distanceTo(enemy)
