• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Gamescreen wrap-around

 
Henrik �stman
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic