Saturday, November 21, 2009
facebook + actionscript + php
it was harder than i believe. it was because of poor doc (or i'm impatient?). most of them recommended simple but unsafe way to do it or given the code but didn't explain the what facebook application setting are required. for example to use is only applicable if you used fbml in your settings, if you use iframe, swfobject is the way to go. there is a nice website explain it pretty well http://www.insideria.com/2009/04/overview-of-embedding-swfs-int.html. thanks mirza
Wednesday, November 11, 2009
single player mode is finally done!
Although it doesn't has all the feature i planned for it, but it playable now :) congrats the next sprint will server connect and facebook connection. stay tune
Monday, November 2, 2009
Blender frame animation guide
Today i redo my md2 animation by using blender again. although the last attempt was 1+month ago, i have totally forgotten how to do it! it took me something to regain my memory. to prevent the history happen again, i write down the step by step guide here
1) create key frame or shape key. first 'tab' into edit mode, create a new shape key (named it properly) move the vertex, then 'tab' again to exit edit mode.
2) is good idea to save basic mode (or unanimated mode)
3) after all the key frame are saved, display IPO screen. change IPO screen to shape mode.
4) move the current frame indicator (the green line) to the keyframe location
5) move the shape keys to the intensity u want
this will do for the animation portion. exporting it to md2 is easy but remember, default papervision md2 fps is 6fps. so it good idea to make keyframe multiple of 6. and also in the md2 frame configuration, state the number of frame of each animation not the end frame number.
Sunday, November 1, 2009
Flash 9 optimization revelation + project progress
read some flash optimization tips, and revealed that flash is different from c++, i'd been wrong so far by using c++ rules to optimise my actionscript code
1) unsigned int is always slower than signed int
2) number is faster than int in multiplication and division operations (!!!!!)
3) function call is expensive in actionscript
4) for(;;) is much slower than for each but .foreach is much slower than both of them
5) closure is very damn slow in actionscript, should never use it
6) uses of static const is more costly (unless it is current in current module)
my project is good, i have multiple wisps display on screen and tower removal is working :)
Subscribe to:
Comments (Atom)