Moai Tutorial Part 2: Loading and displaying a sprite

  When we last visited Moai land things were getting started, hot and pink; but just a bit boring.  Let’s spice it up a bit with a sprite that totally isn’t the logo from Watchmen!   screenWidth = MOAIEnvironment.screenWidth screenHeight = MOAIEnvironment.screenHeight print("Starting up on:" .. MOAIEnvironment.osBrand .. " version:" .. MOAIEnvironment.osVersion) if screenWidth == […]

Moai Tutorial Part 2: Loading and displaying a sprite Read More

Node server side handling of Handlebar templates

  In my prior post introducing the bones of our YUI based level editor, I showed the following way of loading in a template from the server: initializer:function(){ var that=this, request = Y.io(‘/scripts/views/templates/person.Template’,{ on:{ complete:function(id,response){ var template = Y.Handlebars.compile(response.responseText); that.get(‘container’).setHTML(template(that.get(‘model’).getAttrs([‘name’,’age’,’height’]))); } } }); }   This works, but it is less than ideal.  There are […]

Node server side handling of Handlebar templates Read More

HTML5 game development links

  I have recently become more and more interesting in HTML5 game development.  However, upon initial investigation I realized there are an absolute ton of libraries and tools out there.  Some of them are amazing, others… not so much.  During my research I put together notes on the key libraries, tools, books, frameworks and IDEs […]

HTML5 game development links Read More

Scroll to Top