I have around 400 objects loading in my tower defense game, and the loading time is only a few seconds, so you should be able to optimize your loading somehow.
This game takes a long time to load.
To make it quicker, (I'm assuming you have not done this), make the images static instead of loading them every time you start it.
In addition, I find it rather difficult to take down the first two levels. I have not yet managed that.
So for Math.atan2, to get the degree you should rotate the angle in radians, it would be:
double rad = Math.atan2(enemy.getY() - getY(), enemy.getX() - getX());
Then, because this angle is radians, you'll have to convert it to a degree measure:
setRotation( (int) Math.toDegrees(rad));
To get the correct rotation for the images, I use the Math.atan2 function, which takes the location of 2 points and then returns the angle that's necessary. Then I tell the towers to rotate that amount of degrees. For the weapons to fire automatically, I have implemented a counter in each tower. This counter will count down, and when the counter reaches 0, the tower will fire, and the counter will reset to its original amount.
Hi,
I don't think 238 is possible. Perhaps you mean 28 or 32?
And yes, the Electric towers are quite strong. I put a limit cap of 1 on the number of Electric towers anyone can have.
2010/5/19
Medieval TD
2010/3/18
Space Chase
2010/3/17
Space Chase
2010/3/16
Space Adventure
2010/3/6
Fundamental Tower Defense
2010/3/6
Fundamental Tower Defense
2010/3/6
Tower Defense
2010/3/5
Tower Defense
2010/2/27
Tower Defense