I'll think of a good title later

the United States of SVG

, , , , , , ,

You can now test your knowledge of the United States of America!

This new page uses the exact same code that I used for the world countries page detailed in my last post. All I've done is change the data, the code for choosing random states, highlighting, keeping score etc. is pretty much identical.

Update 21/01/2007:

Thanks to help from Jeff we are now fully functional in IE+ASV as well!

We also have a much smaller Compressed svgz file of the game as well.

Find The CountryTo slag off Congress please sign here

Comments

Jeff Schillerjeffschiller Friday, January 19, 2007 12:07:11 AM

Fantastic!

Tim AltmanJunyor Sunday, January 21, 2007 11:36:41 PM

You misspelled Massachusetts. sad

orinoco Monday, January 22, 2007 8:29:57 AM

I misspelt Pennsylvania too! I've fixed the SVG file & will fix the SVGZ when I get home tonight.

Nicholas Shanksnickshanks Tuesday, March 13, 2007 11:24:17 AM

Actually I meant to comment on the snake game and somehow managed to end up on the one before (probably overzealous use of the back button combined with quarter-past-three-in-the-morning dreariness), but this post is indeed a more correct target, i just hadn't found it.

Problems are as follows:

1) I can't select Texas in Safari, it neither highlights nor accepts clicks. Looking at the source code I don't see a problem, perhaps it's a bug in Safari, however since everything else works I assumed there was a typo in the SVG. I doubt it's some kind of overflow since Michigan works and has more points in its path.
2) I noticed Colorado doesn't close up it's path with a z (and it's first and last points don't match).
3) You are not setting the Transfer-Encoding of the svgz, so it doesn't get decoded, and the browser tries to handle "�#!�E

orinoco Wednesday, March 14, 2007 6:57:05 PM

1) I've had a few friends who have used various Safari nightlies to play the games. Sometimes it works sometimes it doesn't. Alas not owning a Mac I can't do any testing myself. As soon as the Safari team finish their work on implementing KSVG & a public version comes out with SVG support I will look into it further.

2) Fixed.

3) This is an issue with the MyOpera community & is not something I can fix myself. I did post a message about this in the forums a while back & I belive it's on the todo list.

Dan Alexandrudantesoft Sunday, March 18, 2007 10:11:44 PM

I should get points for hitting the continent, and also based on distance wink

Yes, I meant this comment for the world svg lol

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

February 2012
M T W T F S S
January 2012March 2012
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29