Next up
Now the tank turret rotates realistically - at different speeds, depending on the movement of the tank. I tried to do this before, but it turned out very poorly and strange things happened
(Tank turning speed increased by ~4 times)
I decided to do a tank race to test the AI. Participants: 4 bots and me (gray tank)
Previously, bullets could ricochet an infinite number of times and it looked very strange, but now I have limited the number of ricochets and it looks more realistic
Rotation of two different types of tanks.
Next, I should improve their aiming, since at the moment tanks cannot hit a moving targets. Well, I think it won't be difficult to make smarter aiming. I hope
I recently started developing my first game to improve my programming skills. In this 2D game you need to control a tank and destroy other tanks. I'm currently adding various features to the game. This game doesn't have a name yet
I added a new type of tank to the game - self-propelled artillery. It does not have a turret and the rotation angle of the barrel is limited. It deals more damage per shot, but has low speed.
I also improved some parts of the game (see article)
I improved my old tank control code. It used to be 400+ lines, but now it's only 66. Only 66, Carl!
This is very cool, but while I was rewriting my code, many bugs appeared, for example, when I clicked on WASD, I controlled all the tanks at once (GIF)
1 comment