My Work So far 5/12/22
- stricklandben2000
- May 12, 2022
- 2 min read
This week I've been mostly working on my code
1 these pictures are about collision of both tanks with the layout

and how I made it so you can't move through these objects with the whole (move Abrahams 1speed towards object family buildings and have it when they collide forward its -1 basically meaning If you went through Highschool and did basic algebra -1+1= 0 because there both the same decibel percentage 0= zero speed from both objects meaning Immovable object because your tank can't speed up while its colliding with the object
2 tank stuck outside wall

"Let me in let me in"!!!!!
3 tank going though middle

But you can go through it by going into the middle like this picture
4 the Collision on the sprite and how there's a indent where you can go into it

but when you go in through the middle you can pass the barrier just fine
5 Reference Car Stopper: used so you have to pay for parking very evil and stupid I know! but "TANKS DONT CARE ABOUT YOUR FEELINGS"!! cues "Ghost division" by Sabaton!

but of course spikes and ,a plastic or wooden or even steel bar wont stop at bare minimum 10 to 30 tons of steel at 30mph or faster
6 Bullitt code for both tanks

the tanks cans shoot at each other but cant shoot through the "obstacles" and "slowdownables" families but can go though the house families which I finished around 2:20 on thursday!
7 Despawn explosion

basically you shoot the Bullitt it goes to another object and, then makes explosion sound on collision with object and then stop the explosion sound and Despawn the explosion so your map doesn't lag and it doesn't look like crap cluttering the entire screen!
8 Families on top right

the family groups
used to separate the different Item types!
9 me learning fire rate

the video about the rate of fire and how it works
10 my code from it

Basically "Can shoot" False then wait 1 second and then "Can shoot" True meaning a 1 second delay before you can shoot again and also I made it where It stops all audio 2 seconds after you shoot so you can hear the explosion nd re chambering sound over the music then after 1 more second you can Hear the audio again
11 The layout so far

I'm probably gonna add a military compound on the left with the non destroyed assets of the Military hummer and probably make a Transport truck
Like this one

And in a convoy like this!

Military base used during the desert storm campaign

imagine this but top down!
Comments