Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   Crazy Eights game (http://www.velocityreviews.com/forums/t918291-crazy-eights-game.html)

Jimnbigd 05-26-2005 04:33 AM

Crazy Eights game
 
Here's a Crazy Eights game. This was fun to write. So far it only works in
IE. I'm working on a Netscape version. I haven't installed other browers
(yet). I'm open to comments and suggestions. I'm sure there are ways to
improve it. Note that I do not use cache for the card images. Instead, I
build 52 <img>'s and use hidden/visible and position to move and display
them. This seems to be faster than caching. Here's the URL...

http://home.comcast.net/~jimnbigd/crazy8/crazy8.htm

....Jim...





McKirahan 05-26-2005 03:46 PM

Re: Crazy Eights game
 
"Jimnbigd" <jimnbigd@comcast.net> wrote in message
news:PaqdnUnyluEVzAjfRVn-2Q@comcast.com...
> Here's a Crazy Eights game. This was fun to write. So far it only works

in
> IE. I'm working on a Netscape version. I haven't installed other browers
> (yet). I'm open to comments and suggestions. I'm sure there are ways to
> improve it. Note that I do not use cache for the card images. Instead, I
> build 52 <img>'s and use hidden/visible and position to move and display
> them. This seems to be faster than caching. Here's the URL...
>
> http://home.comcast.net/~jimnbigd/crazy8/crazy8.htm
>
> ...Jim...


Pretty good!

I'd probably rename the images from, say, "twospades.gif" to "2S.gif".
(And the corners of the cards are little funny.)

I'd layout it out differently and make the buttons the same width via CSS.

I haven't looked at the code behind.

Good luck.



Sandfordc 05-27-2005 01:50 AM

Re: Crazy Eights game
 
Well let me first comend the effort.
The detail put in was great!
Once you finish any modifications and/or clean up parts of the code you
want to I would like to put this on my website. If you are interesed
you can email me at sandfordc@gmail.com

Best Regards,
Sandfordc
www.JavaScript-Central.tk


Jimnbigd 05-27-2005 02:12 AM

Re: Crazy Eights game
 

> "McKirahan" <News@McKirahan.com> wrote...
> I'd probably rename the images from, say, "twospades.gif" to "2S.gif".
> (And the corners of the cards are little funny.)


Yeah, I agree. I cheated. I stole these images from someone elses web
page. Oh well, I'm lazy on some things.<lol>.
If you know of a site that has better card images, let me know.

> I'd layout it out differently and make the buttons the same width via CSS.


Good idea. I need to get more familiar with CSS. I tend to "brute force"
some things that I know could be done better.
I also want to add cookies to keep a cummulative score, with a user
name input to allow multiple users on the same computer.
....Jim...





Jimnbigd 05-27-2005 02:17 AM

Re: Crazy Eights game
 

"Sandfordc" <sandfordc@gmail.com> wrote...
> Once you finish any modifications and/or clean up parts of the code you
> want to I would like to put this on my website.


I'm an old IBM mainframe assembler programmer. I still do "procedural"
rather than "object oriented" coding -- but I'm trying change. My programs
are always being modified and improved. That's one reason I want
suggestions from this group -- both on the game itself, and in the
Javascript coding. I know my Javascript could be better. (I can see this
code now in a Javascript book chapter called "Don't let this happen to
you" -- <lol>)
....Jim...



Sandfordc 05-27-2005 02:26 AM

Re: Crazy Eights game
 
Lol

I could try to go over your script and offer some suggestions if you
would like.

Best Regards,
Sandfordc
www.JavaScript-Central.tk


Jimnbigd 05-27-2005 04:01 AM

Re: Crazy Eights game
 

"Sandfordc" <sandfordc@gmail.com> wrote in message
news:1117160792.388902.46360@g14g2000cwa.googlegro ups.com...
> Lol
>
> I could try to go over your script and offer some suggestions if you
> would like.
>
> Best Regards,
> Sandfordc
> www.JavaScript-Central.tk
>

I'd like that. Thanks...Jim...



Jimnbigd 05-27-2005 04:08 AM

Re: Crazy Eights game
 

"Sandfordc" <sandfordc@gmail.com> wrote...
> I could try to go over your script and offer some suggestions if you
> would like.


You can email at --> jimnbigd@comcast.net
....Jim...



Mick White 05-27-2005 01:12 PM

Re: Crazy Eights game
 
Jimnbigd wrote:

[snip]

>
> Good idea. I need to get more familiar with CSS. I tend to "brute force"
> some things that I know could be done better.
> I also want to add cookies to keep a cummulative score, with a user
> name input to allow multiple users on the same computer.


http://www.brainjar.com/css/cards/

No need for images at all.
Mick


Jimnbigd 05-28-2005 01:32 AM

Re: Crazy Eights game
 

"Mick White" <mwhite13BOGUS@rochester.rr.com> wrote...
> http://www.brainjar.com/css/cards/
> No need for images at all.
> Mick
>

A graphic was still needed for part of the jack, queen, & king. Clever idea
though.
....Jim...




All times are GMT. The time now is 03:37 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.