These tutorials demonstrate the usage of the HARFANG API in Python and Lua.
To run the tutorials:
- Download or clone this repository to your computer (eg. in
d:/tutorials-hg2
). - Download assetc for your platform from here to compile the tutorial resources.
- Drag and drop the tutorial resources folder on the assetc executable -OR- execute assetc passing it the path to the tutorial resources folder (eg.
assetc d:/tutorials-hg2/resources
).
After the compilation process finishes, you will see a resources_compiled
folder next to the tutorials resources folder.
You can now execute the tutorials from the folder you unzipped them to.
D:\tutorials-hg2>python draw_lines.py
or
D:\tutorials-hg2>lua draw_lines.lua
Alternatively, you can open the tutorial folder using Visual Studio Code and use the provided debug targets to run the tutorials.
If you want to know more about HARFANG, please visit the official website.