• Post Reply Bookmark Topic Watch Topic
  • New Topic

Slot Machine Animation  RSS feed

 
Jc Frane
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently working on a project given by my professor.

He assigned me to work on a slot machine. Now, I am able to create 3 panels which represents my reels. And I done the animation using a swing Timer class.
However, its animation is so boring. I mean, there 5 images in each reel after some milliseconds the image change from another without any spinning effect.

I would like to create a spinning effect like those slot machines in casinos or even those simple games in desktop. I want to do this using pure swing programming. How can I do such?

I read about using graphics class and changing the y-axis every number of seconds.

How can I exactly do this?

Any code? I badly need it.

Thank you very much!
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jc Frane wrote:However, its animation is so boring.

Welcome to the club. I detest Swing (in fact all GUI) code, and believe it to be the work of the Devil, designed to reduce normally vibrant human beings to a state of catalepsy.

Any code? I badly need it.

There, I fear, you're probably out of luck. We are NotACodeMill (←click).

Perhaps if you provided some (please, not all) of your code, and told us where you're running into problems, we might be able to help.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!