log.console("bisect: start") var sprite = use('sprite') var clay = use('clay') var core = use('core') var fx_graph = use('fx_graph') var sdl_gpu = use('sdl_gpu') log.console("bisect: modules loaded") core.start({ width: 640, height: 480, title: "Paladin Simple", framerate: 60, update: function(dt) {}, render: function() { var win_size = core.window_size() var graph = fx_graph.create() var ui_scene = clay.layout(function() { clay.container({padding: 20, contain: clay.contain.content}, function() { clay.vstack({ padding: 20, spacing: 10, width: 200 }, function() { clay.text("PALADIN UI", {font_size: 24, color: {r:1, g:0.8, b:0.2, a:1}}) clay.text("Item 1") clay.text("Item 2") }) }) }, [win_size.width, win_size.height]) graph.add_node('render_view', { root: ui_scene, camera: {pos: [0, 0], width: win_size.width, height: win_size.height, anchor: [0, 0], ortho: true}, target: 'screen', clear_color: {r:0,g:0,b:0,a:0} }) return graph }, input: function(ev) { if (ev.type == 'quit') $stop() } })