PDA

View Full Version : Tile Match Game - Easy to modify


Joseph McGarvey
12-23-2002, 05:04 PM
Happy Holidays Folks!! Here is a fun game I recently developed - currently branded as "Brain Freeze". Have fun with it... it's pretty hard.

Play Brain Freeze!! (http://www.paragraphdesign.com/brainfreeze)

Things you'll need to modify the code:

[list=1]
At minimum, 8 different images sized to 80 x 80 saved as GIF or JPG
1 image sized to 80 x 80 (used for tile back)
HTML page with provided code (modified to liking) with a "div" with ID = "clock" and a "div" with ID = "temp"
[/list=1]

Put all of your images in a folder and declare that folder in the JS and modify your variables as well.

This version has a thermometer that counts down with the clock. If you just want the clock, remove the reference to the ID "temp" in the JS file.

You can make the amount of tiles as many as you want, but you'll have to do some tweaking. This currently builds a 16 tile game with 8 pairs.

Have Fun!

Oh... I have a preloader on Brain Freeze. You should add one too.

krycek
12-23-2002, 05:23 PM
That's pretty good :D

I love the design! Very clean, and professional. :)

Only one thing, there is a bug... I am on Mozilla 1.2.1 and the thermometer did not change at all for me! :eek:

::] krycek [::

Joseph McGarvey
12-23-2002, 05:27 PM
Thanks for the compliment!!

Hmmm... the thermometer with id = "temp" is a 1 pixel image that has a style attribute to set the height. Probably not a good standards use.

krycek
12-23-2002, 05:48 PM
heheh :) never mind :)

you may also want to force the cursor to be a hand when hovering over your "Beginner" or "Advanced" links :)

Oh yeah, and that's a nifty preloader! ;)

::] krycek [::