18 Aug, 2007 by george
I reinstalled my old D600 laptop with Ubuntu for server side coding/testing at home. Also I want to install Flash 9 player/debugger together.
Firefox is supported very well from Adobe, it could install Flash 9 player the same way as Windows. I downloaded Flash 9 debugger player and installed it as plugin for Firefox without any problem. (Flash 9 debugger player together with Alessandro Crugnola’s Flash tracer extension of Firefox is a perfect runtime testing environment for Flash/Flex applications)
I need another browser with the regular Flash 9 player. This time I installed Opera. I opened Opera it said Flash player was not installed. Good. I downloaded Flash 9 player for Linux package and tried to install it manually this time. But my surprise, the Flash player installer only try to install on .mozilla folder, it say ‘do you want to install another folder’, but no option for you to install to other folder, for me, I want to push them into Opera folder /usr/lib/opera. How can I do that so? (I don’t have time to change that shell installer.)
I checked opera/plugins/ folder. I guess maybe I could copy libflashplayer.so file directly over there. Ok let me try. I copy it (sudo required). Then open Opera. It works, cool!
Posted in : Server
5 Feb, 2007 by george
I’m checking game algorithms these days. Found a lot funny things and some not good enough or fit with Flash. Most of traditional algorithms are run directly on OS so there’s no much limitations for the speed and CPU/memory usage, but Flash not the case. Though it’s interest to try different algorithms and I could also get some ideas from those.
Algorithms are mathematics involved. But it could be trade-off and not necessary for all details due to my time. Some time I will try to look on math equations but most time I will directly to code them in Actionscript 3 first and see whether I understand and comment directly.
I saw some code written in C as someone discussed it as much effective than regular ‘best practise’ C code. He said it’s because those codes got idea from Assembly actually. Of course if you code C with assembly method, you could check the machine code (read: mov, add, goto) and you know they’re effective or not. But for Flash, it’s a little bit more hard. Maybe if some day I found an algorithm if necessary to be optimized, I will try to read low level code (similar to read Assembly) with the decompiler provided by Adobe. Also have to have some experiential testing.
Posted in : Algorithms, Game
2 Feb, 2007 by george
Current version: 0.2.0 (Beta)
Updates:
Game save/load supported.
Score list available.
Audio added.
Message class added.
Improved rules:
1. No chanllenges
2. Life points count, after 5 fails a new line of bubbles will be pushed in. (But you can get points back in some case).
3. Push double lines of bubbles.
4. No points reward so you have to finish your game.
If you find any bugs, please let me know. Thanks.
Next game suppose to be a FPS tank game in 3D. Big topic for me right now.
A part of source code available for download. It’s the method to load assets from external SWF files and use them dynamically in this game.
Posted in : Game