Dungeon Craft Iconmaker


Parts: Size Head Body Arms Shields
Colors: Skin Hair Color 1 Color 2 Metal

Shadow? Random!

? parts and ? colors to select, stupendous combinations total!

Instructions

  1. Click the buttons to change parts or colors.
  2. (You can opt to include a standard shadow as well.)
  3. After finishing, right-click to save as a PNG file!
  4. Use in your Dungeon Craft game. (No need to resize.)
Note that the image will look blurry in IE. Please use another browser instead.

Historical Notes

Learning Notes

  1. context.drawImage fails due to image loading too quickly. window.onload (or anImage.onload) is one way to control this.
  2. A nifty css property is image-rendering: auto | crisp-edges | pixelated. For this purpose, of course pixelated is best. Luckily, canvas images shown larger seem to save in their normal (non-enlarged) size.
  3. Css property user-select gets rid of the annoying text selection problems for the span tags.
  4. context.drawImage(img,sx,sy,swidth,sheight,x,y,width,height) where "s" is "source." This lets one draw only part of an image (e.g. a frame).
  5. Css property margin did not work for span without changing display to inline-block (or block, but then they fill the width).