[haXe] little haxe/js game

Hugh Sanderson hsanderson at ddd.com
Mon Dec 3 01:39:08 CET 2007


Hey, that is really impressive - worked fine in my version of Opera.

You need to put some google ads on the side, so people accidentally
click them when they are trying shoot :) (unethical though this is).

Hugh

> Thanks, I've repaired that.
> Yes I've seen that this line doesn't work in opera :
> i.enemy.style.left = Std.string( js.Lib.window.document.body.clientWidth  
> / 2 +
> Math.sin( i.count++ / 20 ) * ( 100  + difficulty * 100 ) );
> I have to increment i.count first and then use it
> i.count++;
> i.enemy.style.left = Std.string( js.Lib.window.document.body.clientWidth  
> / 2 +
> Math.sin( i.count / 20 ) * ( 100  + difficulty * 100 ) );





More information about the Haxe mailing list