Commit 35ea7223 authored by Hubert Denkmair's avatar Hubert Denkmair

fix doku bugs

parent cfd6bd3d
......@@ -20,7 +20,7 @@ end
-- with 0, the snake keeps its current direction.
function step()
-- there is some info in the "self" object, e.g. your current head/segment radius
local own_radius = self.r
local own_radius = self.segment_radius
-- your snake needs food to grow
-- to find food in your head's surroundings, call something like that:
......@@ -34,7 +34,7 @@ function step()
-- distance of the food item, relative to the center of your head
local distance = item.dist
-- direction to the food item, in radiens (0..2*math.pi)
-- direction to the food item, in radiens (-math.pi .. +math.pi)
-- 0 means "straight ahead", math.pi means "right behind you"
local direction = item.d
......@@ -60,7 +60,7 @@ function step()
-- distance to the center of the segment
local distance = item.dist
-- direction to the segment, in radiens (0..2*math.pi)
-- direction to the segment, in radiens (-math.pi .. +math.pi)
local direction = item.d
-- radius of the segment
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment