• Log in or sign up for an account here: https://www.sythe.org/login

2 player space invaders (applet)

slashshot007

Active Member
Joined
May 6, 2006
Sythe Gold
0
Messages
164
Yeah I'm pretty proud of this, I will upload the source in a bit but here's a link to the applet

http://meteora184.home.comcast.net/~meteora184/SpaceInv/classes/SpaceInv.htm

The only problem is that it can be slow on some computers (example my own) I made this at my school computer which is very fast so when i got home to try it, it ran very slow. I think the solution would be to multi thread, and i only have one thread. Or possible to have only one class. Whatever the reason is, go ahead and try and play. (requires a friend)

I also have sounds programmed into it, but for whatever reason they do not work (maybe its just firefox) I'll try and see how to get them running as well.

spaceinv.bmp


sigh... I do know that sythe has a bad reputation for getting alot of viruses/ etc.

Idk how to prove that this is legit, but if a mod could verify for everyone that this is NOT anything else besides a corny game I made that would be nice.
 
I'll vouch that it's clean at the moment of my writing this.

Your sound works find one chrome (I don't see why it shouldn't work find on any browser, as it appears that your audio clips are in the same directory as your class and you are using the methods of the AudioClip class correctly). As a suggestion, you might want to add some code in your modement method that prevents you from moving your ship off of the screen. Also, placing all of your classes in a Jar file is a good idea to implement in the future.
 
yeah i actually had it so that you cannot move off the screen, and i also had it so that the game would end when one player would die (the other player wins)

but yeahh seems like i didn't save it or something lol so i'll have to update that again.
 
Sythe Awards 2010 Winner
Sythe Awards 2012 Winner
Christmas 2015
Valentine's Day 2016
Easter 2016
MushyMuncher
Tier 1 Prizebox
Hehe, my dad saw me playing and we had a 1 on 1 match. Thanks for that :p
 
If you want to increase speed, consider using an AOT compiler to create a .exe file of the project. Excelsior makes an excellent software which can aid you in doing this:

http://www.excelsior-usa.com/jet.html

Specifically, you'd want to use JetPackII if you want to distribute your game to other computers (the user would have to initially install the game though). However, you can guarantee that your game would work faster if you were to package it into an executable, which isn't reliant on bytecode. Rather, the classes of your project would be converted to x86 code.
 
duelarena.gg
Back
Top