Skip to main content

Posts

Showing posts with the label particles

Particle Tests 2018

With the infantry mostly done, work continues on the particle system. Some of the particle elements have been migrated from the old project. But some parts have been reworked. If you don't have a particle debugging tool in your game, I suggest adding one. It's great to be able to "paint" with particles at the mouse cursor. It saves a lot of time. Instead of adding a unit to the map and having it shoot at another unit, different particle effects can simply be mapped to keyboard keys and dropped on to the map at will. The particles are arranged like this: [hit particle] ----[sound particle] ----for i in range(amount): --------[smoke particles] --------[fire particles] --------[spark particles] ----[crater particle] In the main code we can just call a ShellExplosion(target_position, size=6) to place a particle and let it control all subsequent values and sub particles.

Special effects.

Right now I'm working on the game's effects. Explosions, physical reactions, sounds etc... It's not easy to add really great effects without putting a drain on the Blender Game engine, so things will be as good as I can make them, but not at the expense of frame rate. Here's an enemy tank being bombarded by rockets. Hits by enemy weapons cause a vehicle to shake and rock. Later there will be more effects, such as rocket trails and a big explosion when the vehicle is destroyed. Here some infantry are getting hit by small arms fire. You can see the red section of their status bar increasing. This shows they are heavily shocked. When that happens their rate of fire and accuracy is decreased and they also can't move quickly. Finally here are some PBIs getting hit by automatic 40mm cannon fire. Machine guns and auto-cannons are very effective against enemy troops out in the open. The large caliber model also does splash damage, increasing the damage ...