{"assets":[],"author_link":"author\/philhassey\/","author_name":"philhassey","cat":"LD #28","categories":["LD #28"],"comments":[],"epoch":1386511860,"event":"LD28","likes":1,"metadata":{"p_key":"79465","p_author":"philhassey","p_authorkey":"0","p_urlkey":"288475","p_title":"Declaration of basecode \/ engine \u2013 CUZGAME \u2013 you can use it too, actually!","p_cat":"LD #28","p_event":"LD28","p_time":"1386511860","p_likes":"1","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1386892800","event_key":"20","event_name":"LD28"},"source_url":"2013\/12\/08\/declaration-of-basecode-engine-you-can-use-it-too-actually\/","text":"<p>Ahoy there, over the last few weeks I put together a Lua engine for making games.  It has a dozen functions:<\/p>\n<p>\u2013 params_get(k) \/ params_set(k,v)<br\/>\n\u2013 file_load(name)<br\/>\n\u2013 file_save(name,data)<br\/>\n\u2013 view_set(x,y,w,h)<br\/>\n\u2013 image_draw(name,x,y,w,h)<br\/>\n\u2013 sample_play(name)<br\/>\n\u2013 stream_play(name)<br\/>\n\u2013 stream_stop(name)<br\/>\n\u2013 font_draw(name,points,text,x,y)<br\/>\n\u2013 font_size(name,points,text)<br\/>\n\u2013 ext_call(action,data)<\/p>\n<p>I used it to make this game for #1GAM last month: <a href=\"http:\/\/www.philhassey.com\/blog\/2013\/12\/01\/turkey-tomahawk-turbo\/\">Turkey Tomahawk Turbo<\/a>. If you think the game looks exciting, the Lua code is right in there, and you can modify the files and write your own game with it.  I also ported the engine over to JavaScript so you could also release your game <a href=\"http:\/\/www.philhassey.com\/blog\/2013\/12\/05\/lua-on-javascript-comparison-lua-vm-js-lua-js-lua-js-phil-lua5-1-js-native\/\">to the webs<\/a>.<\/p>\n<p>I\u2019ll probably use some of the GUI \/ Tile rendering code that is in those Lua files. It\u2019s pretty simple stuff.<\/p>\n<p>Anyway, that\u2019s my official base code declaration for this upcoming LD!  If you end up trying out my engine, do email me or something I\u2019d like to see what you made. <\/p>\n<p>-Phil<\/p>","time":"December 8th, 2013 2:11 pm","title":"Declaration of basecode \/ engine \u2013 CUZGAME \u2013 you can use it too, actually!","title_was_empty":false}