Created
January 30, 2014 11:52
Heyyyyyyyyyyy look we can do generic stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- cause howling is good | |
local howling = require("howling") | |
-- get the ffi module in there | |
local ffi = require("ffi") | |
-- cause we need that to feedback | |
local Menu = require("lestac:lestac/stages/Menu") | |
local menu = Menu.getMenu() | |
-- try to load a sprite and get it on screen! | |
local sprite = require("dye:dye/sprite") | |
local config = menu:get("config") | |
local gameplay = config:get("gameplay") | |
local keys = gameplay:getKeys() | |
local size = keys:get("size") | |
-- call ArrayList#first | |
local first = ffi.new("lang_String__String*[1]", {}) | |
local ptr = ffi.cast("uint8_t*", first) | |
keys:first(ptr) | |
local str = howling.from_ooc(first[0]) | |
-- | |
menu:fromLua("first: " .. str .. ", size = " .. size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment