The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.
| --# Frame | |
| Frame = class() | |
| -- Frame | |
| -- ver. 1.5 | |
| -- a simple rectangle for holding controls. | |
| -- ==================== | |
| --# UIElement | |
| UIElement = class() | |
| CONTROLTYPE = 0 | |
| LABELTYPE = 1 | |
| BUTTONTYPE = 2 | |
| TEXTBOXTYPE = 3 | |
| SWITCHTYPE = 4 | |
| SLIDERTYPE = 5 |
| --# Main | |
| -- Main | |
| function setup() | |
| timer = createTimer() | |
| scheduler = createScheduler() | |
| timer(.5, 0, function(t) print('timer:', t.elapsed) end) | |
| timer(1, 1, function(t, ...) print('Hello', ...) end, 'Aaron!') | |
| LitMesh = class() | |
| --[[ | |
| LitMesh provides a bumpmappable ADS (ambient/diffuse/specular) lighting enhanced class | |
| for meshes. | |
| usage: | |
| setup() | |
| myObject = LitMesh(isTextured, isBumpMapped) | |
| myObject.litMesh.vertices = some table of vertices |
| --# Main | |
| -- Use this function to perform your initial setup | |
| supportedOrientations(PORTRAIT_ANY) | |
| displayMode(FULLSCREEN) | |
| textMode(CORNER) | |
| textAlign(LEFT) |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.