Devhammer's Den


Archives / 2011 / December
  • Dec 14, 2011

    Grantophone LIVE!

    Last Friday, I had the pleasure of presenting an HTML5 Game Camp with my colleague Lindsay Lindstrom. Since I was going to be in New York City for the day, I got in touch with Grant Kot, the creator of the terrific Grantophone app for Windows Phone 7, to see if we could connect in person. Grant was kind enough to stop by during the hackathon portion of the game camp, and while he was there, he gave an impromptu performance which my fellow DE Peter Laudati, got on video:


    Tags: Windows Phone, Downloads

  • Dec 8, 2011

    Visualizing Layout in HTML5 Canvas with Gridlines

    I'm in the process of finalizing my preparations for tomorrow's HTML5 Game Camp in New York City, and figured I'd share one of the functions I put together to help in the process of visualizing some of the different ways you can draw and manipulate objects on an HTML5 Canvas object. It's a simple function called renderGrid, which takes as arguments the ID of the canvas you want to draw on, the pixel interval for the gridlines, and the color of the lines, and draws out a grid just like you'd see on graph paper. Call this function before you start drawing objects on your canvas, and you'll have a nice reference grid to help you more easily visualize the layout. You can customize it to your liking by tweaking the pixel interval, and it's relatively unobtrusive in your code.


    Tags: HTML5, JavaScript



The views expressed on this weblog are mine and do not necessarily reflect the views of my employer.
All postings are provided "AS IS" with no warranties, and confer no rights.

Unless otherwise noted, all code provided in this blog is copyright © G. Andrew Duthie, and licensed under the Microsoft Limited Public License (Ms-LPL). All rights reserved.