1 year ago

I've been making AI for my game for over a month. It was a long and difficult process, I even lost several kilograms. The result is on the GIF. In my opinion it turned out very well, although not perfect


The main thing is that all this brings me pleasure, coding is probably exactly what I wanted to do in my life



2 comments

Loading...

Next up

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

So I made a smart aiming of the tank turret at a moving target. This required a long mathematical formula, but it did not affect the optimization (I used 1500 tanks on one screen and there were no lags!)

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)

@MewMarissa is a Jolter to Watch and and a game developer who takes pride in attention to detail and producing quality work! Follow @MewMarissa before the quest ends on April 8 and you'll get Coins!

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

This week's Fan Art Friday celebrates Baldi's Basics in Education and Learning! Accept the quest in your quest log to get started.

#MinecraftMemory The last 5 seconds of my life

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)

Great news! 📢 @Aya_Games has joined Game Jolt!

They're the indie studio behind the haunting & atmospheric horror platformer Ayasa: Shadows of Silence.

Follow the development of Ayasa: Shadows of Silence at https://bit.ly/AYASAGAME

I decided to do a tank race to test the AI. Participants: 4 bots and me (gray tank)