{"assets":[],"author_link":"author\/rxi\/","author_name":"rxi","cat":"LD #28","categories":["LD #28"],"comments":[],"epoch":1386399540,"event":"LD28","likes":2,"metadata":{"p_key":"81325","p_author":"rxi","p_authorkey":"0","p_urlkey":"290442","p_title":"Preload and base code","p_cat":"LD #28","p_event":"LD28","p_time":"1386399540","p_likes":"2","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\/07\/preload-and-base-code\/","text":"<div class=\"wp-caption aligncenter\" id=\"attachment_301504\" style=\"width: 505px\"><a href=\"http:\/\/www.ludumdare.com\/compo\/2013\/12\/07\/preload-and-base-code\/preloader\/\" rel=\"attachment wp-att-301504\"><img alt=\" Another Ludum Dare, another preloader -- It's surprisingly fun to make coloured pixels do different things...\" class=\"size-full wp-image-301504\" height=\"153\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/12\/preloader.gif\" width=\"495\"\/><\/a><p class=\"wp-caption-text\">Another Ludum Dare, another fancy preloader.<\/p><\/div>\n<p>\u00a0<\/p>\n<p>I had success using Haxe + NME last Ludum Dare, so I\u2019m planning to use the same combination again, I\u2019ll also be using much of the same base code. In addition to this I\u2019ve derived some base code from parts of my LD#27 entry which will give me some basic flixel-like functionality, I may not use all the code but I\u2019m announcing it here in case I do.<\/p>\n<p>You can download all the base code <a href=\"https:\/\/dl.dropboxusercontent.com\/u\/36451301\/ld\/ld28\/basecode.zip\">from here<\/a>. An overview of the LD#27 base code I\u2019ll be re-using can be <a href=\"http:\/\/www.ludumdare.com\/compo\/2013\/08\/18\/base-code-7\/\">found here<\/a>, the new additions consist of the following:<\/p>\n<p>\u00a0<br\/>\n<strong>ld.Entity<\/strong><\/p>\n<p>An object which exists in the game, can be text, a single image or an animated sprite. Has very basic collision detection and very simple collision resolution.<\/p>\n<p>\u00a0<br\/>\n<strong>ld.Group<\/strong><\/p>\n<p>Can contain a number of entities. Handles the updating of each of its child entities\u2019 logic, their collision, and the drawing of the entities each frame.<\/p>\n<p>\u00a0<br\/>\n<strong>ld.Tilemap<\/strong><\/p>\n<p>A basic tilemap implementation. Handles loading a tilemap and displaying it on the screen, handles collision with an entity based on the tiles it could be overlapping with.<\/p>\n<p>\u00a0<br\/>\n<strong>ld.Tmx<\/strong><\/p>\n<p>Parses Tiled CSV files (.tmx) into an object. This makes loading all the objects and the tilemap from a .tmx file a lot easier.<\/p>\n<p>\u00a0<\/p>\n<p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/base-code\/\" rel=\"tag\">base code<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/haxe\/\" rel=\"tag\">haXe<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/preloader\/\" rel=\"tag\">preloader<\/a><\/p>","time":"December 7th, 2013 6:59 am","title":"Preload and base code","title_was_empty":false}