Welcome!

I hope you find what you're looking for. If you have any questions or anything at all, please email me at: sooj_doesnt_know@hotmail.com

Friday, 25 February 2011

Final Project Blog

So I have had much progress since the last time I updated.


I have nearly all the graphics I need, and got some more tools working.


  • Brush tool can now stamp a photo on the canvas.
  • Text tool can now put a text on the canvas.

Now what I need to implement is to have the options to change colours of lines, text, etc. I already have the pallette, and the instructions to use it, i just need to get the options area working and implement it.


Also i still have not figured out why my pencil tool isnt working but i'm sure I can figure it out. I'm going to book a tutorial with nikush and go over it again.


Another problem is that with my text tool, I dont know how to make the user type in what they want first and then finally put it on the canvas. I want it to be like how it is on photoshop text tool. I will research more and find out. but currently i'm using fillText() method. hopefully i can tweak a little and then it'll be fine!


ive already got the methods to do my shapes tool. circle, rectangle, etc. so next week i'll be implementing all of these and have at least 2 more tools working :) so far it's been fun!


well until then, ciao!



p.s. the image above is how i'm doing the tools. adding an event listener for each icon to be the current tool when selected! :)

Monday, 24 January 2011

formspring.me

Ask me anything http://formspring.me/14Aug1988

What's a recent fashion 'trend' that you absolutely can't stand? (for both guys & girls)

I can't stand guys with reaaaaally tight pants that you see the shape of their testicles. it's disgusting. but it goes the same for women. if you can see a camel toe, it's too small!

Ask me anything

Sunday, 5 December 2010

ActionScript 3.0 Blog Week 9 No. 3



I know I have not posted a blog in the longest time and I have been feeling super guilty. haha. So far, I have been doing some research on how to get my game logic going. I have booked a tutorial tomorrow with Nikush to develop this furthur. (thank god)


As far as the game progress, I am going with the whole make my game work first thing. But it is proven to be quite messy that way o_O. But i'm also implementing Composite pattern. I have divided the view into few sections such as ... hudDisplay and stageDisplay, etc.


Oh I also got the menu to be dynamic with XML :) It's brilliant. The next thing for me to do in this regard is to get the highscore board like Jim did.


Well, I think after the tutorial on Monday I will have a lot more to write about. I would post a picture of the current game state, but it is not too impressive.


Until then, Ciao!



Tuesday, 23 November 2010

ActionScript 3.0 Blog Week 7 No. 2


Here is one for last week. I know it's late but better late than never. :)


So this week, I tried to make the menu as we did in class in Week 6. I implemented the whole shebang, and it worked! (somewhat) The only thing I couldn't get to work is the text. The menu items show up accordingly, but the text isn't there. I did a various traces to see if the setter for the label is being called at all, and it wasn't. But I think the problem is pretty clear. I'm going to fix this tonight and make a note of it in the next blog.


To be honest, I wish I had done more for the project as I feel like I am a bit behind. But I'm learning how to implement the design patterns and reading the book on it. It's been quite a ride. I'm not sure if I understand it fully but I'll keep reading. It's just that implementing both MVC AND the design pattern has got me really confused. I'm sure I will be fine once I keep reading and get a better understanding.


Well, that's really it for last week. I'm going to work on the menu now and post another blog later this week on what i've done this week.


Until then, Ciao.




Saturday, 13 November 2010

ActionScript 3.0 Blog Week 6 No 1



Hello everyone! I'm back with exciting news. (Not really)


I'm creating a flash game this time and you guys are going to hear all about. For those of you who are in my class and reading this right now, yeah I know. :P


Ok so my game is about a treasure hunter. or a detective. whichever fits better. the aim of the game is to reveal the hidden picture(clue) as required to pass the level.


So far, I have got the folder structure set up as we did in class.

Photobucket

Thats how it looks at the moment. The difficult thing for me at the moment is to successfully en-corporate MVC. I'm trying my best to split up my code that way and have no couplings.


So far, I have made the menu and click on new game and it shows me the stage. I can also move the hero but I cant do anything else. The next step would be is to have the enemies moving around the map and restricting them to move only inside the map.


Also, I have been looking into some design patterns. By next week, I will have a clear idea on how to proceed to the next level!


Well then, until next time :)

Sunday, 19 September 2010

PHP Blog Week 10



This week, I actually had a minor break through. Well, I actually studied and learned how to join tables. And I remember Kirk saying that Join is awesome, and it totally is. Also I have simplified my tables. I should really say I went through the normalization process :)


Below is my ERD. It should have been submitted to moodle earlier but when I went through the noramilization I had to change a few things around and remove a few tables to simplify! it turns out I went through the process more than needed.




So my query to search for a certain pizza with a certain topping looks like this:


SELECT item_name, toppings,

TYPE FROM items

NATURAL JOIN pizza_topping

WHERE MATCH(toppings) AGAINST ("mushroom");


I still havent figured out how to pull the size and price with the pizzas but I'm gonna post on here what I have been trying and it keeps getting an error. I should be able to figure it out by today. I shall be studying the books more deeply. It really did help. I am no longer so confused and lost!


SELECT item_name, toppings, price, size

FROM items

NATURAL JOIN pizza_topping,

pizza_size_price JOIN

price, size ON price_id = price.id, size.size_id

WHERE items.id = items_id;


I'm not sure whats wrong with that but the error i get back is: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON price_id = price.id, size.size_id WHERE items.id = items_id LIMIT 0, 30' at line 5


If I fix this, I will post another one to show what I did differently. Also I did the CSS and now it looks very similar to how I wanted it on the proposal.


I cleaned up my index page and really simplified everything. I put the navigation and all the rest of the html tags along with all the includes in the header.php file. so my index page looks like:




In the header.php file, since the title of each page needs to change dynamically, this is what my title looks like. at the moment when i first visit the index page, it says $page is not set and I'm not really sure why because $page is set to home by default.. I will look into that soon.




this is just a little preview of what it looks like right now. :P I still need to fix the CSS a little to look a bit better.





Until then, Ciao!


Saying Images

Saying Images
Images with words.