Skip navigation.

Claws, fangs, fur...

...the bear essentials

Posts tagged with "Pantheonline"

Multi-select far from easy

, , , ...

For my Canvas Composition Studio over at Pantheon Online Games, the very first of its kind on the internet, I decided to implement multi-select. I wanted to allow a user to select more than one composition items and treat them at the same time.

Boy was I in for a surprise.

Read more...

Canvas image cut-off problem solved

, , , ...

Those of you who were curious enough to look at the preview of my Canvas Composition Studio over on Pantheonline.com, know that it suffered from having its composition images cropped in size. The cut-off seemed an arbitrary 300px wide by 150px high.

Together with an odd ghosting problem in Opera I spent a good year testing and trying. Not continuously, but on and off.

And I found the solution to the cut-off problem.

Hidden within the stack of the function calls, I managed to forget specifying a width and a height for the HTMLCanvasElements created in the library functions. I did specify every other width and height... from the recipient HTMLDivElement all the way down to the library functions' drawing algorythms.

In the current version of the draft specification for HTML5, the HTMLCanvasElement does define a width and height property, specifying that an implementation should default those dimensions to 300px by 150px, in case the author fails to supply them.

Problem solved. Expect an update of the preview pretty soon.

Public preview of canvas implementation available

, , , ...

For the Pantheon Online Games site we have created an Altar Dress-Up application. You may have read about this in my previous blog post.

This application is now up for public preview. It heavily uses the new Canvas element that will be part of HTML5, and requires the use of Javascript. People using browsers that either have Javascript turned off or do not understand the Canvas element, are out of luck.

One eerie thing I found: all modern popular browsers know the Canvas element except for Microsoft's attempt at a web browser... but even though it does not know how to handle a Canvas element, it has no qualms creating one using Javascript methods. That makes my fall-back content rather useless... Choose, Microsoft, choose! You either know it, or you don't!

Edited to add another eerie thing I found: Opera 10.0 Alpha (yes... Alpha) duplicates the canvas displays. The duplicates are offset by a handful pixels. Sometimes the duplicates move, too, when other stuff is being moved around.

Edited to add an o.O.: the canvas ghosting seems to occur in several versions of Opera. We haven't heard the last of this problem!
Download Opera, the fastest and most secure browser