Re: [jug-discussion] looking for a thread/game guru

2006-12-01 Thread Todd Ellermann
Ran into some similar problems the first time I wrote a game. JInvaders :) The easiest thing I can suggest is have your game loop in the main thread and have a token of control handed from player to player. Have the player be either a user or a computer, but give each one of them their own

Re: [jug-discussion] looking for a thread/game guru

2006-12-01 Thread Warner Onstine
Thanks Todd, this gives me some ideas of what I can try. -warner On Dec 1, 2006, at 4:33 PM, Todd Ellermann wrote: Ran into some similar problems the first time I wrote a game. JInvaders :) The easiest thing I can suggest is have your game loop in the main thread and have a token of

Re: [jug-discussion] looking for a thread/game guru

2006-12-01 Thread Eric Biesterfeld
Why is this a thread-related issue? I'm a bit confused Your controller should be off in its own little world interacting with the view as necessary. The view should have a listener to tell it when to update. They're off in their own little worlds, with the controller and its listeners to the