Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jochen Bauer
spn-website
Commits
02e97a0d
Commit
02e97a0d
authored
May 11, 2018
by
Hubert Denkmair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update doc, needs regeneration of html
parent
2eae12d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/lua/sample.lua
docs/lua/sample.lua
+2
-2
No files found.
docs/lua/sample.lua
View file @
02e97a0d
...
...
@@ -97,7 +97,7 @@ end
-- @param max_distance all food within the distance is included
-- @param minimum_food_value all lower food values are filtered (min: 0, max: unknown)
-- @usage local food = findFood(max_distance, 0.8)
-- for i, item in
food:
pairs() do
-- for i, item in pairs(
food
) do
-- item.d -- angle in radian (-π to +π)
-- item.dist -- distance
-- item.v -- food value
...
...
@@ -112,7 +112,7 @@ end
-- @param max_distance all segements within that distance are included
-- @param include_own If true, your snake segments are included. Otherwise you get only enemy segments
-- @usage local segments = findSegments(50.0, false)
-- for i, item in segments
:pairs(
) do
-- for i, item in
pairs(
segments) do
-- item.d -- angle in radian (-π to +π)
-- item.r -- radius of the item
-- item.dist -- distance
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment