CodeArcade / GameOff2021

Game Off is an annual game jam, where participants spend the month of November creating games based on a secret theme. THEME: BUG
1 stars 1 forks source link

Enemies #9

Closed Cyklan closed 2 years ago

Cyklan commented 2 years ago

Add enemy ideas and what type of attacker they are / what kind of loot they could drop in the comments

Cyklan commented 2 years ago

I've had another optimization idea.

Maybe we only spawn enemies once the player is in a certain range to the enemies. Then enemies could theoretically be pooled to save on memory and cpu usage

NoctusRex commented 2 years ago

I did a similar thing.

All spawned enemies will be disabled by default. If the player is close to them they get enabled. Once the player is to far away the enemies get disabled again.

I also tried doing that with the ground and walls, but there were to many objects so performance was even worse.