def script1(game): game.player = Allefant(game.x, game.y + game.radius - 50, 20) game.player.spawn(game.spatialhash) game.orbs.append(game.player) game.active.append(game.player) outside = InverseOrb(game.x, game.y, game.radius) outside.spawn(game.spatialhash) game.orbs.append(outside)
def script6(game): r = 400 game.player = Allefant(game.x, game.y + r - 21, 20) game.player.spawn(game.spatialhash) game.orbs.append(game.player) game.active.append(game.player) outside = InverseOrb(game.x, game.y, r) outside.spawn(game.spatialhash) game.orbs.append(outside) a = 0 r += 20 while a < math.pi * 2: x = game.x + math.sin(a) * r y = game.y + math.cos(a) * r b = game.placedeco(x, y, 18, 180 * -a / math.pi, Block1) a += 118.7 / r