Difference between revisions of "Main Page"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(→Index List) |
|||
| Line 8: | Line 8: | ||
[//wiki.visionaire-tracker.net/index.php?title=Category:Official_English_Documentation English] | [//wiki.visionaire-tracker.net/index.php?title=Category:Offizielle_Deutsch_Dokumentation Deutsch] | [//wiki.visionaire-tracker.net/index.php?title=Category:Official_English_Documentation English] | [//wiki.visionaire-tracker.net/index.php?title=Category:Offizielle_Deutsch_Dokumentation Deutsch] | ||
| + | |||
| + | |||
| + | <source> | ||
| + | -- script.lua | ||
| + | -- Receives a table, returns the sum of its components. | ||
| + | io.write("The table the script received has:\n"); | ||
| + | x = 0 | ||
| + | for i = 1, #foo do | ||
| + | print(i, foo[i]) | ||
| + | x = x + foo[i] | ||
| + | end | ||
| + | io.write("Returning data back to C\n"); | ||
| + | return x | ||
| + | </source> | ||
Revision as of 21:15, 17 February 2013
Welcome to the (unofficial - for now) Visionaire Studio™ Adventure Game Engine Wiki.
Here you can find the official documentation (in various languages) for Visionaire Studio™, as well as various - user contributed - examples, resources, links, tutorials, lua script snippets & examples via the public section of the wiki; as linked below!
Please consult the User's Guide for information on using the wiki software.
Index List
Official Visionaire Studio™ Documentation
-- script.lua
-- Receives a table, returns the sum of its components.
io.write("The table the script received has:\n");
x = 0
for i = 1, #foo do
print(i, foo[i])
x = x + foo[i]
end
io.write("Returning data back to C\n");
return x