Archive for September, 2009

2d movement

edit: not the best implementation. there are other better ways to handle movement :(

Quick and dirty rundown of 2d movement. Sorry if it wont make sense.

Given: target point T, staring/object’s current Point S, distance move per update D, object moves at a constant pace.

Task: re-set object’s location every frame/screen update to show movement

Method I – Use polar coordinates
A) determine the angle using trig functions on the right triangle with hypotenuse TS
B) convert angle to radians
C) use the following code to update the object’s location

var translate:Point = Point.polar(distance, angle);
myObj.x += translate.x;
myObj.y += translate.y;

Method II – use Cartesian coordinates
A) determine the angle using trig functions on the right triangle with hypotenuse TS
B) form a new right triangle with hypotenuse of length D, using T as one endpoint, and Q as the other
C) determine x and y for Q using trig functions
D) assign the objects x and y to that of pt. Q’s x and y

actual code to follow (when i dont feel too lazy XD )

Tags: ,

Melancholy of Haruhi Suzumiya Spray Pack

get em here

http://zk306.deviantart.com/art/sprays-Haruhi-Suzumiya-pacl-136429773

or from mediafire:

http://www.mediafire.com/download.php?mcnxmyylmmz

Tags: , , , ,

post-mortem intrakinematics

hmm, i know stuff happened this past week, but it seems to evade recall at the moment. lets see what i can dig up.

well, first i got an interview last friday for a flash developer slot. i think i have a fair chance of getting that job, or at least being put in their freelance pool. as for work on personal projects, everything seems to have come to a halt. still sorting out why this is so, but yeah, still no coding done, no new sprays, nothing.

in the anime department, i finished watching Tenge Toppa Gurren Lagann the other day and im simply blown away by its epic manliness. really enjoyed watching it and it also managed to motivate me quite a bit. cooling my brain down by rewatching K-ON! after that its Strike Witches.

in the gaming side, i finished STALKER yesterday and promptly removed it. the realistic environment is nice, especially with the mods out there, but it really gets annoying near the end. particularly because the bots are far from realistic. i mean cmon, they can headshot me with a pistol during an earthquake? WTF! the AI from FEAR is still the best i’ve encountered so far.

still on gaming, i removed Sacred and installed Grand Chase and NosTale on my laptop and my niece’s. Sacred was nice, but it was old and buggy. since our internet connection has stabilized i decided to simply go MMO. might remove NosTale tho as Grand Chase seems to be enough for me and my niece. besides, we also play Pangya so a third MMO is too much, and for me thats on top of other games i play. also found a funny browser game called Billy vs Snakeman. its a parody of Naruto and other anime. my name in-game is kanipan.

last item on gaming is Dynasty Warriors 6. finally gotten all characters unlocked last night. majority of the characters are at level 1 tho. not sure if im going to remove it and install DMC4 or simply let it sit. thing is, i’ve already completed story mode for all characters that have that mode. leveling up the new chars seem like a chore.

anyway, thats all for now. going to try and be productive today. laterz