Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (306)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java Applet board game  (Read 634 times)
0 Members and 1 Guest are viewing this topic.
Offline wow

Junior Newbie




Java games rock!


« Posted 2005-05-24 02:21:16 »

dear all,
    I am writing a applet board  game, with all the background components are swing components, how can i move an object smoothly on the screen? I have tried many examples and tutorials about applet animation and double buffering. I found that for the examples about the buffering to work well, the background of the examples are static image or some very simple pattern that can be drawn easily but not swing components. How can I move an object on a backgroud that is formed by many swing components and the number of components are dynamic generated?
thx alot  Smiley
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2005-05-24 22:08:45 »

If i understand you corretcly the answer is the same as the answer to "how can i dig a house foundation with a screw-driver?"

You are trying to use the wrong tools for the job.  Swing was never designed for high frame-rate interactive applications.




Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2005-05-24 23:10:09 »

Quote
You are trying to use the wrong tools for the job.  Swing was never designed for high frame-rate interactive applications.


Huh? Works for me...bar the difficulty of getting mice to work in windows Sad

EDIT: not that I'm saying he *should* be doing what he's doing Wink, and several components (as I've bitched about before) are crap at it, but Swing is certainly capable of highframe rates and interactivity perfectly well, no?

malloc will be first against the wall when the revolution comes...
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline wow

Junior Newbie




Java games rock!


« Reply #3 - Posted 2005-05-25 01:23:43 »

Quote


Huh? Works for me...bar the difficulty of getting mice to work in windows Sad

EDIT: not that I'm saying he *should* be doing what he's doing Wink, and several components (as I've bitched about before) are crap at it, but Swing is certainly capable of highframe rates and interactivity perfectly well, no?


can u give me some hints or examples about highframes rate in swing ? thx
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (10 views)
2013-06-19 14:55:23

BrassApparatus (19 views)
2013-06-19 08:52:37

NegativeZero (23 views)
2013-06-19 03:31:52

NegativeZero (26 views)
2013-06-19 03:24:09

Jesse_Attard (29 views)
2013-06-18 22:03:02

HeroesGraveDev (65 views)
2013-06-15 23:35:23

Vermeer (64 views)
2013-06-14 20:08:06

davedes (66 views)
2013-06-14 16:03:55

alaslipknot (58 views)
2013-06-13 07:56:31

Roquen (80 views)
2013-06-12 04:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!