i don’t understand how do i complete the level please help, thank you
# Collect the treasure.
# No flags.
# No summons.
# No jumps.
# No magic.
# Infringes will be punished.
# Useful constants.
trapAttackRange = 3;
radiusStep = 10;
center = {"x": 68, "y": 68};
pos = {'x': 136, 'y': 68}
# Go, Go, GO!
hazards = hero.findHazards()
for hazard in hazards:
x = Math.round(hazard.pos.x)
y = Math.round(hazard.pos.y)
if hero.isPathClear(pos, center):
hero.moveXY(68, 68)
it about vector and math. and bla bla bla it is rlly confusing
hope can xplain to me to understand it…
And vectors, you can think about them as lines, but instead of being drawn on paper, like 2D, they can have a 3rd dimension. They are also curved lines, so think about this as if you are drawing a line not using a ruler but creating an arc. So they are in conclusion, curved lines, or arcs, that can have 3 dimensions (x, y, z). Hope this helps.
“They (vectors) are also curved lines, so think about this as if you are drawing a line not using a ruler but creating an arc. So they are in conclusion, curved lines, or arcs …”
Are you talking about this Vector:
@Aya Edit:
If you haven’t studied them at school yet: Vectors
For some, this would be useful even in a technical university, vectors have numerous applications in physics