Tank Wars In Java.....Any Startup Ideas?

Hey well i have to make a project for my grade 11 computer science class and i wanted to do something hard. i was thinking of a game called tank wars. Here is an example of the game i want to recreate: http://www.addictinggames.com/tankwars.html. I just need to know any ideas any of u might have on the overall construction of the game, how to update the screen wether or not to use the update method, and paint it on to the applet, or any other suggestions, i also need to know how you guys would go around creating the ground that breaks off once a bomb falls there, an array of every pixel maybe?
thanks for anyone who can help or if anyone could lead me to a source code if it can be found

And then go for the ballistics formula which are all quadratic formulas until the notion of 'wind' comes in ...They're still quadratic if the wind is constant for the duration of the missile's trajectory, and in these games it usually is.
The way I would handle this is not a nice OO MVC approach, but it is good pragmatic programming (IMAO, of course. I should note that I write games for a living, unlike my good friend Rene aka CeciNEstPasUnProgrammeur). The background is a BufferedImage, and the same BufferedImage is your record of where the land is. When a shell lands you update the image and then let the tanks drop. It's an efficient representation because it saves storing the data in two places and keeping it consistent.

Similar Messages

  • Tank Wars In Java.........Any Ideas Where To Start?

    Hey well i have to make a project for my grade 11 computer science class and i wanted to do something hard. i was thinking of a game called tank wars. Here is an example of the game i want to recreate: http://www.addictinggames.com/tankwars.html. I just need to know any ideas any of u might have on the overall construction of the game, how to update the screen wether or not to use the update method, and paint it on to the applet, or any other suggestions, i also need to know how you guys would go around creating the ground that breaks off once a bomb falls there, an array of every pixel maybe?
    thanks for anyone who can help or if anyone could lead me to a source code if it can be found

    crossed http://forum.java.sun.com/thread.jspa?threadID=736084&messageID=4229228#4229228
    Give the OP some slack; he was advised to repost in this forum by Ceci:
    You'll have to create one or several mathematical functions that you
    can use to update the surface coordinates. For advise on how to do that
    best, you should go and ask at the Algorithms forum.
    kind regards,
    Jos

  • G4 MDD (fw400) -  doesn't give startup chime - any troubleshooting ideas?

    Just bought unit off ebay... prev owner said it was running.
    Hi power button - no chimes.
    _ Fans turn on high after about 10 seconds.
    _ Red LED near memory sticks is on.
    _ Reset PMU, put in battery from the 500 Mhz Gigabit ethernet G4
    Any other ideas?

    Hi-
    Welcome to Discussions!
    I assume the machine was shipped to you?
    I would reseat all memory, the graphics card, and even reseat the CPU.

  • I keep getting error msg -42408 I have tried everything from Roy B and still get ther msg. Any other ideas?

    I keep getting error message -42408 when I try to open ITunes Store.I sent a email to support and they sent me a link from Roy B,I tried both of his sugegstions and neither worked.Anyone have any other ideas????

    Did you get anywhere with this, ikeaheerlen?
    I am having the same sort problem (although my keyboard is recognized so I'm much further along than you).
    I had a MacBook Pro with an XP SP3 partition and a Windows 7 partition on it.
    I switched to a Mac Pro and wanted to migrate them over to it.
    I used WinClone to make backups of both partitions and transferred the WinClone images to the Mac Pro.
    I manually created the partitions and restored the WinClone images into each one.
    But VMware wouldn't recognize either one.
    So I deleted them both, and let Boot Camp Assistant (re-)create a single Boot Camp partition.  Then I restored the Windows 7 WinClone image into it.
    Ever since then all I get is "BOOTMGR is missing" error.
    I thought maybe since I had dual-boot working (with a boot manager) in the old MacBook Pro setup, that the boot manager must've lived on the Windows XP SP3 partition, and it's completely missing from the Windows 7 partition.  So I figured I needed to recreate it somehow.
    After using the Windows 7 DVD ISO disc image to boot from, and trying several automated/manual steps, I can now actually get VMware to recognize the Boot Camp partition as being one, but when it tries to set it up for use with VMware, it complains that it isn't ready because it must have shut down incorrectly.  It says to boot into Windows, then do a clean shutdown.  But when I select the Boot Camp partition from Startup Disk, it boots from it but I still get the "BOOTMGR is missing" error even in a 'native' Boot Camp boot
    I've tried all the steps I can find (including manual "bcdedit" steps booted from the Windows 7 DVD disc image) to no avail.  I don't know what else to try at this point ...

  • Computer won't boot--suggested fixes haven't worked.  Any other ideas?

    Hi, this is kind of a last-ditch effort, hoping to find out if someone has a magic spell I can try (perhaps some command I can run from single-user mode?) The problem: my new MacBook pro won't boot up (gray screen, apple logo, windmill of death) and I've tried all the suggested avenues: it won't respond to Safe mode, I've reset the PRAM and the power, I've done fsck -y: nada. The problem is that I'm out of town, and so don't have my original install disk or access to an Apple Store. I've tried booting from someone else's OSX disk, to no avail--Apple Care says that other people's disks won't work. So basically I have to wait for the universal OSX disk to come from Apple, which will take days--in the meantime, does anyone know anything else I can try? I realize I'm probably SOL here, but I figured it's worth a shot to see if anyone has any other ideas. I'm desperate.
    Thanks in advance for your help.

    Yes if you have no firewire port then you will not be able to use Target Disk Mode. But if your partner with the mac happens to have a bootable backup then you could boot into it using USB port, As long as they have the backup in a USB enclosure.
    I realize that you stated you tried everything to no avail but we are new to your efforts. So just to clarify any miscommunication on our part here are a few links that you can verify with us the procedures you have used in your effort.
    SMC reset:
    http://support.apple.com/kb/HT1411
    PRAM reset:
    http://support.apple.com/kb/HT1379
    Safe mode:
    http://support.apple.com/kb/HT1455
    Resolving startup issues using fsck -y:
    http://support.apple.com/kb/TS1417
    Look towards middle of above article for "Use fsck if necessary"
    Can you tell us what happened before the problem started? i.e. Software update, normal shutdown, upgrade hardware, change any configuration, applications started to hang with spinning beach ball, etc...

  • Macbook 2010 will not accept any startup keys.

    Hi guys!
    I've got a tricky one here and I'm hoping someone can help.  I am a technician working at a school working on getting some macs ready for the upcoming school year.  The old technology director retired last year and the tech staff and I had to reset all the 300+ computers' passwords.  Everything has gone well, save a few problems here and there. I have one computer, though, that is causing me a few more issues.  This Macbook (2010) refuses to accept any startup combo keys (ex. option-command-p-r, c, t, option, command-s, option-command-O-F).  Everytime I try to boot, it always goes streight through a normal boot and to the desktop, regardless of what keys I'm holding down.  Upon reaching the OS, though, the keyboard works fine, no problems with typing or anything.  I connected a usb keyboard and attempted to use the same combo keys, no change.  I reset the SMC, with no result.  I even tried removing a RAM card in hopes of resetting any problems there might be with the firmware, still no change!  There has never been a firmware password set on this computer.  It's running OSX 10.6.8.
    I'm running out of ideas here, any help would be greatly appeciated.  I have the computer right here next to me ready to try stuff on it, and an entire tech department at my disposal, lets try to get this sucker fixed!
    Regards!
    - Ridog

    Thanks for the reply,
    The computer was previously issued to a seventh grade girl, so it is unlikely that she tried to set a firmware password, even accidentally.  Even if that was the case though... wouldn't removing a RAM card reset the firmware and fix any FW password related problems, or is a PRAM zap required for that to happen?
    I had looked at that forum post before, that's where I got the idea of resetting the firmware.
    Any other ideas????
    If absolutely necessary I can back up the drive and wipe it, but I'd rather it not come to that.
    Regards!
    - Ridog

  • I am trying to home share with my new MacBook. The music library I am wishing to share is not displaying anywhere on my new laptop under music or library. My computer is authorized and I have tried restarting itunes, etc. Any help/ideas?

    I am trying to home share with my new MacBook. The music library I am wishing to share is not displaying anywhere on my new laptop under music or library. My computer is authorized and I have tried restarting itunes, etc. Any help/ideas?

    Are you using the same ID for homesharing on all devices.
    By the way shared libraries don't show up under either 'Music' or 'Libraries'.

  • Some calendars in iCal appear corrupted but OK on iPhone. If I sync will the calendar data on the phone restore info on the desktop iCal? any other ideas for how to sort this please?

    Some calendars in iCal appear corrupted (ie have red exclamation mark by them) but are still OK on iPhone. If I sync, will the calendar data on the phone restore info on the desktop iCal or will I lose that as well? Or could I back up the calendars on my iPhone somewhere and then import them into iCal? any other ideas for how to sort this please? it's driving me mad. thanks.

    I don't think there will be a solution to this. Exchange 2003 just isn't supported.

  • Ipod touch will not turn on, have tried to reset any other ideas?

    My ipod touch will not turn on, I have followed the apple fault finding and it will not reset either. Any other ideas?

    Try to connect in recovery mode, explained here: iPhone and iPod touch: Unable to restore

  • Some of my apps on both my iPad and iPod Touch no longer have sound.  Others still do.  Checked general settings.  Any other ideas?

    Some of my apps on both my iPad and iPod Touch no longer have sound.  Others still do.  I checked general settings.  Any other ideas of how to fix this?

    If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • My airport express is still providing a link to my wifi network but I can't find my airport express on my macbook and i can't link to my bose speakers through it ... any bright ideas?

    My airport express is still providing a link to my wifi network but I can't find my airport express on my macbook and i can't link to my bose speakers through it ... any bright ideas?

    I'm not sure what you mean. You can't find the express to set it up.. or you can't find the network created by the express?

  • I have a mid 2010 Macbook Pro running Snow Leopard and foolishly upgraded to Yosemite.  Is it possible to go back in time with Time Machine and reinstall Snow Leopard.  Then upgrade to Lion or Mavericks?  Any other ideas on how I can exit Yosemite?

    I have a mid 2010 Macbook Pro running Snow Leopard and foolishly upgraded to Yosemite. Now have numerous problems.  Is it possible to go back in time with Time Machine and reinstall Snow Leopard?  Then upgrade to Lion or Mavericks?  Any other ideas on how I can exit Yosemite?

    Once you get yourself back to Snow Leopard, if you still want to upgrade somewhat, I would suggest the following:
    1. Get an external hard drive that you can use for experiments with new OS versions. You could partition it into 2 or 3 partitions. You could then clone your existing Snow Leopard system to one partition using Carbon Copy Cloner (well worth $40) or SuperDuper ($25).
    2. Buy OS X Mountain Lion for $20, through the Apple online store (I don't think it's available through the App Store). Apple has decided to make it very difficult for anyone to get Mavericks unless they have already downloaded it.
    You will receive two e-mails from Apple, one containing a PDF with a redemption code, and one with the password you will need to unlock the PDF. Using the code, you will download Mountain Lion from the App Store, where it will appear among your Purchased items.
    After ML finishes downloading, its installer app will launch itself. When you see this launch screen, QUIT the install app immediately! Go to your applications folder, find the Install OS X Mountain Lion app, and copy it to a safe location outside of your Applications folder. Keeping one or more copies will allow you to reinstall without unnecessary aggravation if you later need or want to do that. At this point, you can re-launch the Installer in the Applications folder and let it run. You can install it on a clean partition on your external HD, or you can allow it to upgrade the Snow Leopard clone you created on your external drive, or you can do both. This should allow you to test how everything works for as long as you like.
    3. If you left yourself a free partition on your test drive, try a clean install of Yosemite and set everything up from scratch (do not migrate anything). This will allow you to see whether your problems with it were related to something in your Snow Leopard system.

  • Itunes doesn't open after monolingual use, any further ideas?

    I installed Monolanguage and now iTunes doesn's open any more.
    tried everything mentioned here and in other forums.
    I'm using Mac OS X 10.6.8 on a MacBook Pro.
    I uninstalled Monolanguage
    I uninstalled and reinstalled Flip4Mac
    I deleted te TLSC file
    I repaired the rights of access
    I rmoved Flip4Mac and Quicktimeplayer
    I restarted the system serveral times
    Nothing helps.
    Any more ideas?
    How can I delete and reinstall iTunes without loosing all my data and backups etc.?

    "Monolanguage" as you say several times, or "Monolingual" as in your topic?
    Flip4Mac has nothing to do with iTunes.
    You have to be careful using Monolingual It can remove components other applications expect to be there.  I don't know how it affects iTunes, though it could conceivably be looking for language support you no longer have.
    If you're getting so desperate for hard drive space that you're using Monolingual then you may want to think about moving other files off, or buying a bigger hard drive.
    You may want to consider re-installing your operating system  or restoring your computer from backup if you really think this was caused by using Monolingual.
    Kurt Lang's web page on Using Monolingual in Mac OS X - http://www.jklstudios.com/misc/monolingual.html - read first for important information

  • I tried creating a new folder and quickly moving Newsstand into it, but Newsstand is grayed out, and could not be moved. Any other ideas how to get rid of it?

    I tried creating a new folder and quickly move Newsstand into it, but it is grayed out and cannot be moved. Any other ideas how to get rid of it?

    You cannot

  • Help! Safari keeps giving me a grey screen.  I can't click on any search items.  Any troubleshooting ideas out there?

    Help! Safari keeps giving me a grey screen.  I can't click on any search items.  Any troubleshooting ideas out there?

    Try clearing Safari's cache : Settings > Safari > Clear Cookies And Data (Clear Cache on iOS 4) and also Clear History
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

Maybe you are looking for