ok, I have updated it again. There is now player movement. I am probably going ot increase the difficulty, by decreasing the probability of shileds apearing.
Nice 7720
What about side scrolling ;D ? If you want, I have at least an example of source code that performs this.
why the 7720?
I would have to change a lot of the game to make it side scrolling.
it is a possiblilty.
Althouhg then I would have to have levels. which is a problem I have whne I am using slick.
If I can get levels working, then I would like to try that idea.
thx for the replies
It is my score.
Why is it a problem with Slick?
cause, I dont have complete control of my program.
there is a “greater power” so it calls my init(). I could possibly run my init() from inside the program.
I may want to actually consider taht, I will look into it.
P.S: you can probably get a higher score now that oyu can move ;).
enjoy
YES! I tested that theory on final stand, and it worked!
I owuld love to see your side scrolling code :).
P.S: Final stand is gunna get a new update VERY soon
enjoy.
Coming up:
thx to demonPants, I am chaning the movement stuff to a more reliable method, vectors :).
should increase fun.
expect an update soon.
Please find the whole source code of one of my first unfinished “game” written in Java:
http://membres.lycos.fr/javalution/download/fighting.zip
It uses RMI for online gaming, maybe your game could benefit of it too.
I have another better example that I used for my (finished) shoot’em up but it is in Python :s (side scrolling, explosions, sounds)
Score: 11320 (but it was becoming unplayable, 3 FPS, lots of slowdowns maybe because of your way of handling collisions between ships)
hm.
so when there is tons of guys it ends up slowing down.
there were 1136 enemies on the screen so…
is there a better way for collision?
I use the way were it makes rectangles around objects and tehn if any crosses it calls it.
I might also jsut make the game harder by making the guys move faster. this way, no1 will live long enough to get there :).
thxfor the input
Maybe you could only draw and check collision for enemies within a certain distance…
Are you also checking for collisions between all enemies against all enemies? That will make it more expensive, make sure you only check collisions that you actually want to react to.
I currenty have an array list for them.
I will try and have one for bullets, one for items, and one for enemies.
before I try that though(cause I will ahve to change a lot of code for that) I will try a simple if statement.
jsut like:
if(a instanceof Bullet||Item||Player)
{
//do whatever crap
}
oh yeah almost forgot,
coming soon :
- Invincibility items
- Enemies will chase you more accurately
I fixed the problem (for now).
I ahve changed all of my movments(except player) to using vectors :).
since I had done this I was able to make teh enemies follow you :).
I will add invincibility ASAP.
taht is all
enjoy
haha invincibility is now there.
If it doesnt apear for a while dont worry, it is a 1 in 50 chance
it lasts 10 seconds.
pls give me your input,
enjoy!
ok, I fixed 2 things.
I have been annoyed by the fact that when I accidentally click off-screen it will go super speed and kill me. So I set it so that it pauses when you click off-screen, I got this idea from VE(thx). It will nto be up for about 5 min, causee I am gunna have it say “PAUSED” over top everything when it is not focused.
It is up.
The drawing “PAUSED” didnt work cause when the window is not selected any changexs are not seen by the user :/.
well anyways, enjoy
@goussej: I tried the link, it is broken :/.
thx anyways.
ok, I REALLY gotta do something about making the game run faster, I am at 1,000+ right now.
It moves at 2 FPS :(.
any suggestions greatly appreciated
me again :D.
I made the guys move 2X as fast, so now it is easier to lose.
Now it should be harder to reach the point where the game starts lagging severly.
enjoy
I made the shield a 1/10 chance.
I made the invincible a 1/100 chance.
I am gunna make waves soon :D.