Super Halo Brothers

This was an idea i was working on, it runs in applet so its kinda slow Im currently breaking from it to work on a cool mmo idea i had. But if anyone likes my work gimme a holla… btw, this is just a mall demo that i scrapped together quickly so people could play it… theres nothing to do but run jump & shoot… but it gives you the idea.

check it out here VVV
http://www.geocities.com/darthkarnage2006@sbcglobal.net/Halo.html

Looks like a good start. On WinXP, firefore, Java 1.4:

  1. The image cacheing doesn’t work well, initially the animation has empty images because the all the frames haven’t been fully loaded. If you want to work in applets you might look at MediaTracker.

  2. The music doesn’t stop when the I close the webpage… slightly annoying :slight_smile:

Kev

Yeah, i also noticed them glitches, unfortunately since im taking time away from this to work on another project I havent really had time to update it… But i appreciate the constructive criticism.

hehe that’s kinda neat! How about letting us hit multiple buttons at the same time? Right now I can’t fire while moving and I want to :slight_smile:

Well accually, im no that good of an artist, i never do my own sprites (Still looking for a decent Graphic artist for my new game), and the sprite sheet that i had, i couldnt find a way to have Master Chief hold the gun while he was running, but if im not mistaken i think you can shoot while jumping…

Haha, its been a good two minutes and the music wont’ stop ;D

Hauk

I would like to study your little piece of code, but I can’t find the images anywhere ?

Can you show me where they are ?

Thanks…

Good start. I agree with Kev’s comment about MediaTracker & also was left with the music not stopping, possibly the applet didn’t stop() cleanly, as I got a stacktrace on closing the window


Exception in thread "Thread-11" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
	at java.security.AccessController.checkPermission(AccessController.java:427)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:138)
	at java.lang.Thread.checkAccess(Thread.java:1236)
	at java.lang.Thread.setPriority(Thread.java:982)
	at TrivialApplet.run(TrivialApplet.java)
	at java.lang.Thread.run(Thread.java:613)

Well, alot of that problem may be because i simply just scrapped this thing together so i could put it online before i got off my computer last time i worked on it, so i never accually really got around to putting code under the stop() method… i know… kinda stupid of me, and i aplogize. But i do appreciate everyones slight interest in my crappy little game lol. My other project isnt working out so well, so i think i may just turn back to this game, if anyone would like to help me out in turning this into a full-fleged game gimme a holla.

If your not going to fix the music problem you should just take it down, it’s rude and annoying to have to close out your browser to shut it up.

In my experience, MediaTracker isn’t good for this, ymmv.

And WTF is a ‘holla’?

Er, the MediaTracker is for the images, not the music ::slight_smile: :wink:
(Stopping the music is just a case of implementing something suitable in the stop() method. Both of these are easy fixes, although it is important to design the code such that it can be started and stopped multiple times, i.e. care is needed in allocating & deallocating resources. A good test is to refresh the page & see if the applet behaves sensibly.)