Archive for the ‘JSFL’ Category
Jellyroids – My First haxe C++ game test
Monday, April 27th, 2009![]()
After only a day or two playing in hxcpp i’ve got my first little test to show – Jellyroids!
This gametest compiles (using haxe) out to flash & C++ (exe in the cpp folder for windows only – i dont have a mac or linux, so cant test as yet).
Running the software rendered c++ version is a little slow – ~200fps on my comp, opengl is ~1500fps. Whereas flash clocks in at 100fps (maxed out). Prerendering the explosion animation (currently vector animation from a swf) will make it MUCH faster for c++ (stop the slowdown on shoot), as i feel its vector animation code isnt anywhere as optimized as that in flash.
Overall, its fun to see how easy its been to get out a simple test in hxcpp.
cheers – Tony
UPDATE:
to get it to work you need to change a few small things in the neash 0.9. realease.
There are two issues with the current release of neash that need fixing. Just change the following lines:
1/ in neash.display.MovieClip:
add in some stubs for functions (just copy in the following lines)
public function gotoAndPlay(frame:Dynamic, ?scene:String):Void { }
public function gotoAndStop(frame:Dynamic, ?scene:String):Void { }
public function stop(){}
public function play(){}
2/ in neash.display.DisplayObject:
make getRotation method look as follows:
public function GetRotation()
{
return mRotation * (180.0 / Math.PI);
}
Posted in Games, haxe, hxcpp, Input / Output, JSFL, Tips and Tricks | 8 Comments »
JSFL: Select all classes of the selected type on layer
Monday, April 14th, 2008I’ve been playing with JSFL a little recently. It was really hard to begin finding any resources on how to use it and those I did find were pretty sparse with information. So to help the community out I’m going to start posting my experiments, some useful, some only good for me, for everyone to take a look at, take apart and generally learn from.
The first one is one of the simplest. It lets you select all Elements of the same class on the stage. Simply select one of them, say a RadioButton, then choose the TMP – Select Same Class from the Commands menu and all other RadioButton instances should be selected.
Tags: Flash, JSFL
Posted in Flash, JSFL | 1 Comment »