Contents |
vx, (preferably pronounced 'vee echs' since it's an acronym -- although 'vex' is okay too) a "[v]erge e[x]tension", attempts to give a sophisticated interface with the free Verge 2D Game Engine. It wraps the raw LuaVerge library that comes with Verge in a more modern, object-oriented approach, to cater to those of us who like lightly sprinkled object-orientation rather than purely procedural code in their Lua programs.
vx is something made by Overkill, one of the Verge engine developers, so you can be sure it's fairly up-to-date with the engine!
To use the vx library, simply make sure that the vx folder is contained as a subfolder in your game directory, and type:require "vx"
This'll import the vx library, plus some other neat and very useful global functions. One of these useful things is overriding of Lua's builtin print(...) function, so it'll properly direct the output to the "v3.log" file. Note to self: these need to be better documented
It's also garbage collected! So any resources you no longer need will eventually be removed without the worry or need to explicitly free things (although the option for that is still here).
To get the latest version of vx, go to: http://www.bananattack.com/vx/vx.zip It contains all the library goodies which allow vx to work.
There is a bit of setup required to use it with your project, but nothing colossal:
lua 1 is in there somewhere to make Verge run as LuaVerge.
And with that, you should be done! Code a game to your heart's content! Read the tutorials and examples for inspiration.
Prod at the documentation to understand what variables, function and objects are in vx, and what attributes and methods belong to each object.
Finally, if you have any questions, ask! If you have questions or concerns, go to the Verge Help Board at http://www.verge-rpg.com/ or join the channel #vergehelp on irc://irc.lunarnet.org/
To get the most recent development build of vx, you will probably want a Subversion client (like TortoiseSVN for Windows).
Then checkout this repository using the SVN client.
Little code snippets that document and explain things about vx.
Please, feel free to add new examples to this list. Fresh examples are what keep people informed and motivated!
A list of helpful guides to use in making games with vx.
If you write any tutorials, please tack them on here. I'm in the process of writing my own.
If you're curious about Verge, check out this:
Some other useful guides to Lua include the following: