Thursday, June 6, 2013

Canvas Methods I Overlooked.

    I don't know how I missed the getImageData() method for canvas. I looked for something like it before and I couldn't find it.
I am now going to use it to check for collision instead of making arrays of pixel locations for each object in my game. I will  have to update this post when I am not studying the bar.

Here is a tutorial: http://tutorials.jenkov.com/html5-canvas/pixels.html

    I am going to use it to check whether a baby exploding monkey hits the ground in my game, "monkeys throwing monkeys at monkeys."

Here is a post documenting how to use it to break Captchas: John Resig: - OCR and Neural Networks.

No comments:

Post a Comment