Friday, July 31, 2009

Nightmarezzz!!

I had nightmare today, woke up at 3.30am because of it, i was a secondary student in the dream, but it wasn't take place at my secondary school, it was like the school i learn from tv program :). abd my dream girl was my school mate and she was sitting next to me! ok so far so good, the night started after i came back from washroom, then i realized the man i hate the most (my ex-colleague swen) and he took my seat and the worse part my dream girl was very nice to him, arrrrg, they were a couple in my dream, wtf.

I went to protest but swen is equally disgusting in dream, he used his "charm" to swap the seat, as usual i do as his say took his seat with a broken hearth (sad sad sad). i his place is a mess a lot of personal stuff on and in the desk. i threw the things on floor and the teacher came in and annouce there was a test, i didn't prepare for it!!! wtfomgbbq??? and i woke up.

I was thinking the moral behind this dream. I think i haven't found my identity (yes i have identity crisis). like in my dream, the girl i like doesn't like me, get bully by so call friends and no significant achievement in my fields.

I have completed none of my personal project. given them up half way during the project, that's why i have not much progress in my fields. i should really put more effort in my current project and make it a successful one. let's pray to my god

Wednesday, July 29, 2009

Tower defense games review

I Played a quite a few TD games during lunch time recently, some of the games added brilliant twists to this sub-genre, i listed the them here

1) Desktop tower defense - path finding, custom path
2) Xeno Tactic 2 - each tower can only upgrade certain amount of times and each time can only update a type of attributes (range, speed, damage), this created unique attributes for each tower
3) Shock to the system - Flash 3d with tron style graphics
4) GemCraft - the gem crafting system
5) Vector TD - non-tower, general purpose buildings for more damage, range and firing rate. and also low level tower has unique attribute make them valueble even at latter part of game

Tuesday, July 21, 2009

similarity in javascript and actionscript in time functions

dealing with actionscripting and javascipting recently, need to port a time related javascript to actionscript. the Date class and setTimeOut are almost the same but have some differences, i listed them here
1) javascript Date.parse format is "date mon year hr:min:sec GMT" example: 21 Aug 2009 10:10:10 GMT. but actionscript Date.parse format is "mon date hr:min:sec year" example Aug 21
2) javascript setTimeout syntax is setTimeout("func(param1, param2)", timeout), actionscript is setTimeout(Functor, timeout, param1, param2)

in this project i also learnt how to exchange data between javascript and actionscript.
javascript->actionscript could use tag or swfobject flashvars
acriptscript->javascript could use ExternalInterface.call("func", param1, param2,paramn)

I have also learn how to use swfobject to insert swf into a div, it is by using the div id in the swfobject.embed second parameter

Wednesday, July 8, 2009

great progress on web 2.0 development

recently i have great exposure to web 2.0 and flash technologies. they are eye wide opening experience, very different from my pass c++ and java experience. i guess this is the current hot stuff, the web platform.