Cat-Brain / CPPZombs

A farming tower defence FPS
2 stars 0 forks source link

Complicated enemy AI. #1

Open Cat-Brain opened 1 year ago

Cat-Brain commented 1 year ago

Added 2 more enemy types for a total of 3 types, tanky, and speedster, but they all use the same AI pretty much, so it's kind of boring.

Cat-Brain commented 1 year ago

In 1.1 added hyper speedster, a super tanky super fast unit called the Hyper Speedster and the first enemy with a custom AI, the Deceiver, which creates three holographs of itself around the player similarly to the Brain of C'thulu from Terraria. Both of these get entire waves to themselves.

Cat-Brain commented 1 year ago

Some friends and I brainstormed the idea of a snake enemy, that might be added in 0.2.0-alpha or a bit past it, I'm very excited for it!!! I'm also going to focus on doing a rework of enemy spawning and maybe if we're lucky enemies might each be their own files!!! This would be incredible for modding and things of that sort. I really want modding to be a thing, but at the moment it seems super hard to implement, though of course the game's open-source, so overhauls are totally an option as well.

Cat-Brain commented 1 year ago

Instead of snakes, v0.2.0.0 made it so enemies could be different sizes than 1x1, for example, now tankers are 3x3s, and we added mega tankers which are 5x5. In addition to this update, v0.2.1.0 added in parents, 5x5s that turn into 4 children upon death. Last up, v0.2.1.1 added in Exploders 1x1s that explode into a 3x3 and Giga Exploders, 3x3s that explode into a 15x15. Snakes will be added soon though, I still love the idea.

Cat-Brain commented 1 year ago

v0.2.2.0 added snakes!!! Snakes are currently I believe 20 tiles long and 1 tile wide, they cannot cross over themselves or other snakes.

Cat-Brain commented 1 year ago

As of v0.2.5.5 I have made it so that each enemy is segmented into some groups, e.g. earlies, lates, late-mids. Next each planet chooses 1 enemy from each group and will only spawn chosen enemies. The categories in the game are: Earlies on 1: walkers, tankers, and spiders Mids on 4: deceivers, vacuumers, and exploders Mid-lates on 6: parents, spider parents, and snakes Lates on 8: hyper speedsters, mega tankers, giga exploders, and rangers. I'll also be adding another category with some new enemies known as very laters on 12, which will include cats and maybe tanks, I'll also probably add frogs to some category. Oh yeah, and for the record, I removed speedsters.