<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/2583217401665739310?origin\x3dhttp://hl-milkz.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
milkZ PROFILE

Photobucket
Hui Leng
26 November 1990

- gaming
- anime and figurines
- my mum and dad
- photography
- airplanes and helicopters
- romance of the three kingdoms
- LAMEMORICK 레모릭
- all my friends


milkZ WANTS

Be able to jog 10km with ease
Own a car
Korea trip 2013
Japan trip in the near future
More gathering with clique
World peace
More money


milkZ PLAYLIST




Credits

Coded by: Photobucket

Powered by:
Friday, November 27, 2009
Hi again! As usual, I will be talking about what I've been doing over this week. But before I get started, I would like to thanks my friends for their birthday wishes! =D
Sorry if my post is jump from day to day (cause I have a lot to talk about).

Ok. On Monday, Tuesday and Wednesday, I was coding the puzzle game. On Thursday, after been stuck on how to check whether user's clicking on which tiles, I asked cs to help. He told me to try using event.currentTarget to check. Wow it works!! And I'm so happy! That's why I slowly loving programming. You can get stuck for days, but nothing beats the joy of getting the solution to the problem.
However, I'm still confused on how to check which tile is empty, and move the available tile into the empty slot..
Here's the code to find which tile the user's clicking on (maybe Auron might be interested).
I'm declaring a array called puzzle.

for (var i in puzzle)
{
if (puzzle[i] == event.currentTarget)
{
// coding here
}
}
ps: I hope this works cause I got the above code from my memory. =D

I got a chance to install some REAL STUFF on 25th November! It was my first time in poly life installing real programs! And not from hard disk and getting cracks for the registration code!
Since it's my first time, I took a picture of the box. (ya being lame here =D)

Tada~~~

Well, royal readers here will know that 26th November is my birthday. I've gotten quite "a few" presents from "friends and foes". First, thanks to the company who celebrated my birthday on last friday and presented me with vouchers. *LOLs* Secondly, thanks to the floor outside my house's lift for giving me a bruise on that day (yes I fell down and gotten a gift). Thirdly, thanks for that ferrari! Although I admit doors will be better (ahahaha).

Ok. Shall stop here. My post's being too messy already *laughs*. Shall blog again next week.
And Happy Hari Raya Haji!!

Posted by hL at 12:18 PM