Devlog 4: The First Enemies
Hello again!
Today, I've finished working on the first iteration of the basic enemy AI in Endurance 2. If you'd like to try it, feel free to play the browser build on this page. For a more in-depth look at how my (admittedly terrible) AI works, keep reading. One final note is that there is still no damage system, so feel free to get up close to the enemies if you want.
The only added enemies so far are the normal and fast enemies. They both work in the same way, just with some tweaked variables. Almost all of the current and future enemies in Endurance will have three states that they can be in: Spawning, Wander, and Chase.
Spawning: Enemies are only ever in this state when they are added to the game. The enemy is invincible during this time, and cannot move. They will stay in this state for a few seconds before transitioning to the next state.
Wander: The enemy will pick a random point on the entire map and begin to beeline towards it. Once they reach this point, they will pick another point and go there. This repeats until the enemy sees the player.
Chase: Once the player enters the enemy's "vision," which is a set circular area around the enemy, the enemy will go into Chase mode. Just like in Endurance 1, enemies will begin to move directly toward the player at a set speed. While the player is still inside the enemy's vision, the enemy will not stop chasing the player. Once the player leaves the enemy's vision, a "persistence" timer is started. During this time, the enemy will still chase the player. If the player reenters the enemy's vision, the timer is stopped. If the timer ends and the player is not in the enemy's vision, the enemy forgets where the player is and switches to the Wander state.
The major improvement between Endurance 1 and 2 is that enemies are no longer constantly locked onto the player. This somewhat counteracts the ability to circle around a massive group of enemies to gain a lot of points easily (though this isn't the reason behind the addition of wandering).
That's all I have for now. If you have any feedback about the enemy AI or the game in general, leave a comment on this devlog or on the game's main page. Thank you for reading, and have a great day!
-Silicontent
Files
Get Endurance
Endurance
Dash through enemies and get the highest score!
Status | Released |
Author | Silicontent |
Genre | Survival |
Tags | 2D, Arcade, Godot, High Score, Indie, Pixel Art, Singleplayer |
Languages | English |
More posts
- Devlog 22: Goodbye For Now!Mar 11, 2024
- Devlog 21: New Chonk PhasesFeb 09, 2024
- Devlog 20: First Boss, but BetterJan 30, 2024
- Devlog 19: The First Boss!Jan 29, 2024
- Devlog 18: Short-LivedJan 19, 2024
- Devlog 17: Mystery Box + WatchdogJan 17, 2024
- Devlog 16.5: Patch v0.1.3.1Jan 15, 2024
- Devlog 16: Some RefactoringJan 14, 2024
- Devlog 15: Adding Traps and MoreJan 13, 2024
- Devlog 14: Small UpdatesJan 11, 2024
Leave a comment
Log in with itch.io to leave a comment.