{% extends 'base.html' %} {% load static %} {% block earlycss %} {% endblock %} {% block css %} {% endblock %} {% block content %}

Bot Documentation

This is a brief overview of all usable functions within the bot logic.

Functions

run (current_heading) Main cycle Run is executed each frame.
api:get_rotation_speed () API #1

Functions

run (current_heading)
Main cycle Run is executed each frame.

Parameters:

  • current_heading first parameter

Usage:

     function run(current_heading)
       return (current_heading + 45) % 360
     end
api:get_rotation_speed ()
API #1

Returns:

    allowed rotation speed by the game engine

Usage:

    local x = current_heading + api:get_rotation_speed()
{% endblock %}