Can get you some Java code you would have to change it so it looked
substanically different asthetically if you get what im saying.

Apart from that its a starting point

Its live at www.gales.co.uk under the brewery basement section.

Ive just converted this site from Perl to CF so I've been playing with the
integration of java and CF its a bit harsh.

Outputs high scores to a text file as well. Although haven't quite worked
out how yet.

Alex

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Cary Gordon
Sent: 16 February 2001 16:00
To: CF-Talk
Subject: Re: How to write a slots game in CF?


CF would probably be my last choice for this, but, putting that aside, you
only need three images for each wheel - the starting image, the spinning
image and the stopping image.  Then, when the wheels roll, you can use js
to flash the spinning image for some period of time before you display the
stopping image.  You could randomize the delay within a range, so that the
wheels would not stop at the same time or in the same order.

I would probably be inclined to use Flash or Java.

At 01:01 AM 3/15/2001 -0500, you wrote:
>I'm wondering if anyone can give me some ideas on how best to write the UI
>of a slots game in Cold Fusion - how to animate the wheel so that it
>appears to spin through a variety of choices, and then have it stop on a
>randomly selected one?
>
>I am trying to write a 3 wheel slot game (each wheel needs to spin
>independantly), and have the logic completed to determine which item on
>each wheel to randomly select, etc, but can't seem to get a good UI
>together.  I could easily write this game as a Windows app in C++ or VB,
>but can't seem to figure out how to make this work via a browser and Cold
>Fusion.
>
>Any thoughts?
>
>Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to