YOU CAN RIGHT CLICK DRAG TO MOVE THE CAMERA.          YOU CAN RESIZE THE CODE EDITOR BY DRAGGING ITS EDGE

 

Language Reference

Examples
x = 3
y = x + 1
direction = Vector2(x, y)
distance = direction.length() 
i = 0
while i < 10:
    say(i)
    i = i + 1
Built-in variables
position # Robots position in world space
rotation # Robots heading in degrees
target   # Targets position in world space
Built-in functions
# -------------------------------
drive(distance)
turn(degrees)
turnRad(radians) on web, turn_rad(radians) on windows... oops
say(message)
# -------------------------------
abs(value)
sqrt(value)
pow(value, power)
# -------------------------------
max(a, b)
min(a, b)
clamp(value, min, max)
# -------------------------------
sin(radians)
cos(radians)
tan(radians)
# -------------------------------
asin(value)
acos(value) 
atan(value)
# -------------------------------
deg_to_rad(degrees)
rad_to_deg(radians)
# -------------------------------
randf()
randf_range(min, max)
# -------------------------------
Vector2.abs()
Vector2.angle()
Vector2.normalized()
Vector2.length()
# -------------------------------
Vector2.direction_to(Vector2)
Vector2.distance_to(Vector2)
Vector2.angle_to(Vector2)        # Angle between two directions
Vector2.angle_to_point(Vector2)  # Bearing between two points
# -------------------------------
Flow control
if CONDITION:
    # Do this if condition met
else:
    # Do this if condition not met
while CONDITION:
    # Do this while condition met
Credits

3D models and sound effects from Kenney.nl

"Space Jazz" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
http://creativecommons.org/licenses/by/4.0/



Comments

Log in with itch.io to leave a comment.

I beat it. idk how I did it, but I did it.