aspose file tools*
The moose likes Game Development and the fly likes Gamescreen wrap-around Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "Gamescreen wrap-around" Watch "Gamescreen wrap-around" New topic
Author

Gamescreen wrap-around

Henrik �stman
Greenhorn

Joined: Apr 09, 2005
Posts: 11
Hi!

I'm trying to create a replica of the old Intellivision game "Biplane".
It's just basicaly two airplanes on a 2D screen trying to shoot down the other one. The problem a have, besides i'm a newbee, is when a airplane leaves the screen to the left or right it's suposed to reappere on the other side of the screen. So for example, if the plane is halfway though the screen on the right side, you should see the nose on the left side of the screen. How do i solve this in Java/Swing?? Do i have to create two objects when this happens and draw one to the right and the other one to the left? Or can one tell Swing to wrap the screen around??

ANY help with this is realy appreciated!!

// Henrik
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Hi,

Welcome to JavaRanch!

Please don't ask the same question in more than one forum; it wastes people's time. I deleted the other copy of this you posted in the Swing forum.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Gamescreen wrap-around