I can’t find the code for the level Oasis.
Can you help me? loop:
x = self.pos.x
y = self.pos.y
enemy = self.findNearestEnemy()
if enemy and self.distanceTo(enemy) < 10:
# Move to the left by subtracting 10 from your X coordinate.
x = x - 10
else: # Move to the right by adding 10 to your X coordinate. x = x + 10 self.moveXY(x, y)