Micro sized mirage gun
Jump to navigation
Jump to search
Revision as of 29 April 2024 at 14:23.
This is the thread's initial revision.
This is the thread's initial revision.
Great work! I'm very curious how it would do when combined with nano-sized melee movement. In case it helps (and you haven't already done it) you could reduce the code size by
- Removing the gameTime > 1 check.
- Use a constant state instead of makeState(...) when the opponent wasn't scanned for consecutive ticks.
- Instead of replacing a random table entry, just keep replacing the last one when the table is full.
- Don't add the weight/5 addition to the midpoint aim bin.
I imagine these changes would only slightly degrade performance while saving a decent amount of code size, but I kept them in Mirage because I had the space.