Village Bombing

Hey everyone!

Village Bombing is my first game :P. You need to shoot rockets at the bombs to prevent these bombs from blowing up your buildings. You just need to click on the bomb and the rocket will automaticly follow it. You will get points for every building that’s not destroyed. When your City Hall is destroyed, it’s Game Over.
In the next version of the game, you will be able to upgrade the buildings and obtain special rockets :P.
Please comment and if you have any tips, feel free to post them :slight_smile:

Click here to play Village Bombing

http://a.imageshack.us/img153/1592/screen1re.png

http://a.imageshack.us/img36/3180/screen2hj.png

Hi!

It is a good first game. I get this exception sometimes :

[quote]Exception in thread “AWT-EventQueue-2” java.lang.NullPointerException
at Main.update(Main.java:496)
at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
at sun.awt.X11.XRepaintArea.updateComponent(XRepaintArea.java:43)
at sun.awt.RepaintArea.paint(RepaintArea.java:216)
at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:688)
at java.awt.Component.dispatchEventImpl(Component.java:4706)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[/quote]
I looked at the log, it seems that you reload the whole image each time you use it or at least very very often :s

some minor crits, thought:

the ‘How To’/Tutorial page text is crumbled up badly, looks nasty. Just aesthetic issue.

I like shooting ten missiles in a row if i can, it’s more impressive as opposed to missiles refusing to launch if they dont have a target.

The changes of light, atmosphere are cool but could be slower, now they just wipe so fast it feels a bit hectic.

Volume Slider.

Thanks for testing everyone :smiley:

@gouessej
I have changed some old Image fetching code :). The houses and the cursor weren’t drawn correctly.

@Karmington
the ‘How To’/Tutorial page text is crumbled up badly, looks nasty. Just aesthetic issue.
True. I will change that in the next version :wink:

I like shooting ten missiles in a row if i can, it’s more impressive as opposed to missiles refusing to launch if they dont have a target.

I don’t know why I haen’t done that already :p. Maybe I just wanted to test some Math. I will implement it in the next version.

The changes of light, atmosphere are cool but could be slower, now they just wipe so fast it feels a bit hectic.
This will also be slowed down. Does the changing of the dayparts also have to be changed?

Volume Slider.
I don’t know how to do that with AudioClip. However, I have implemented a mute key (m).

Both of you, thanks for your bugs and critics. Feedback, good or bad, is always welcome! Please keep in mind that I’m only a beginner who wants to learn more :P.

Erm…

java.lang.ClassFormatError: Incompatible magic value 1013474657 in class file Main

hmmm… Does the error contain more text?

You must have a corrupted download (or the uploaded file is corrupted). Every classfile starts with 0xCAFEBABE.

You’re welcome.

It works better now.