I did an ugly hack but at least now it all works and I can start building the real api of the engine, this is the code for this demo now!
http://itmmetelko.com/storage/neko_plus_ptk.zip -------- import lib.Base; class NekoPtkGame extends Base { static var tankX = 0; static var tankDir = 1; static function cb_quickLoad() : Void { Base.loadImg("img\\bg\\golf_s.jpg"); Base.loadImg("img\\spr\\tank1.png"); } static function cb_update() : Void { Base.drawImg(800, 600, 0, 0, 0); Base.drawImg(105, 95, tankX, 500, 1); tankX = 3 * tankDir + tankX; if ( tankX < 0 ) tankDir = 1; if ( tankX > 700 ) tankDir = -1; } } -------
-- Neko : One VM to run them all (http://nekovm.org)
