Game Development Reference
In-Depth Information
Allen
URL : https://github.com/Yonaba/Allen/
Price : Free
Platforms : All Lua-based platforms
Allen is another offering from Roland Yonaba. It provides string-related functions for tables—that is,
while Moses works on tables, Allen works on strings.
Sample Code
local allen = require("allen")
local lyrics = 'hey I just met you\nand this is crazy\nbut here is my number\nso call me maybe'
lyrics = allen.lines(lyrics)
for i,line in ipairs(lyrics) do
line = allen.capitalizeFirst(line)
end
BhWax
URL : https://github.com/bowerhaus/BhWax
Price : Free
Platforms : Gideros Studio
BhWax is a plug-in for Gideros and is based on Corey Johnsons' Wax library for Objective-C. This
exposes the iOS API to Lua and more specifically to Gideros. With this plug-in one can create native
UIKit elements and UIWindow, UIViews, etc.
Sample Code
require "wax"
function show()
print("Down")
end
function hide()
print("Up")
end
btn = UIButton:buttonWithType(UIButtonTypeRoundedRect)
btn:setFrame(CGRect(110,110,100,37))
btn:setTitle_forState("Press Me", UIControlStateNormal)
btn:setTitle_forState("Pressed", UIControlStateHighlighted)
getRootViewController():view():addSubview(btn)
btn:addTarget_action_forControlEvents(self,"hide", UIControlEventTouchDown)
btn:addTarget_action_forControlEvents(self,"show", UIControlEventTouchUpInside)
 
Search WWH ::




Custom Search