Talk:SuperWalls
Hi, question: What if SuperWalls first fire with HeadOn, then the next shot fire with LT, then HOT hit, but it will increase the rating of LT? » Nat | Talk » 17:47, 1 March 2009 (UTC)
Problem: If you use LT, but enemy energy is 8, your robot will fire at 2, but the code calculate using power 3 bullet! » Nat | Talk » 17:49, 1 March 2009 (UTC)
Well, I realized that that could happen, but I thought that it was a small enough problem that it wouldn't matter much. If the ratings for the two guns are close enough that it is switching on every shot, it means that the two guns are close enough in rating that which gun you use would not matter very much. About the bulletpower, thanks for pointing that out. I'll correct that--CrazyBassoonist 18:18, 1 March 2009 (UTC)
Okay, It's changed.(I didn't test the code change, I just assumed it would work. I hope it does.) I am also thinking about changing the movement to involve changing directions some, as it would still be incredibly easy to beat with simple linear targeting--CrazyBassoonist 18:25, 1 March 2009 (UTC)
That still incorrect, the bullet speed is calculated by 20 - 3 * power, not the power itself. And, 16 / 4 = 4!?! can you fire with bullet power of 4? » Nat | Talk » 18:26, 1 March 2009 (UTC)
More note, the shot/hit should be int/long instead of double! It execute faster, but when you calculate the rating, you should cast them to double, like (double)hit / shot
. And, the AdvancedRobot lost energy when hit the wall so... » Nat | Talk » 18:29, 1 March 2009 (UTC)
About changing the direction, every time the enemy fire is good ideas! Not very much of people use head fake targeting :) » Nat | Talk » 18:32, 1 March 2009 (UTC)
Ok, I'll work on that. About changing the direction, I think that changing it every single time they fire would be bad because SuperWalls would mostly stay in a small area and be vulnerable to Head-On Targeting. Rather, I might give it a random chance of changing direction every time they fire--CrazyBassoonist 18:38, 1 March 2009 (UTC)