[haXe] little haxe/js game
filt3r at free.fr
filt3r at free.fr
Sun Dec 2 22:50:03 CET 2007
Selon Filip Dreger <fdreger at gmail.com>:
> > I made first experimentation with dynamic javascript haxe this day
> > I found it easyier that raw javascript which for me is too
> dirty/complicated to
> > start.
> > http://filt3r.free.fr/js/game1
>
> Cool!
>
> > But I found some things are strange, like some empty getters or events
> > management in firefox/IE... I don't know if it's because of javascript or
> > haxe...
>
> Worse yet - it doesn't seem to work in Opera 9...
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 ) );
>
> Filip
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
More information about the Haxe
mailing list