Initializing Pyodide runtime...
Write your Python AI code in the editor, then click "Start Game" to begin!
Your vessel's algorithm
Write the code for your space vessel to follow and hit "Start Game"!
player.shoot(direction) - Fire a projectile
player.set_thrusters(left_power, right_power)
- Control movement
print(message) - Output to browser consolecontext["playerPosition"] - dict with
"x" and "y"context["playerVelocity"] - dict with
"x" and "y"context["playerRotation"] - float - Rotation angle in
degrees
context["deltaTime"] - float - Time since last frame
(seconds)
context["visibleMonsterCount"] - int - Number of
visible monsters
context["visibleMonsters"] - list - Array of monster
objects
monster["position"] - dict with "x" and
"y"monster["size"] - float - Monster size/radiusmonster["health"] - float - Current health (0-100)
monster["invincible"] - bool - Whether monster is
invincible