vscode-pets
vscode-pets copied to clipboard
Pets chase slower pets causing glitches
One of the features of the "friendship" graph that's built into vscode-pets is that friends will chase each other.
See https://github.com/tonybaloney/vscode-pets/blob/main/src/panel/states.ts#L343
But the pet will chase at it's own pre-set speed, so when you have something fast like a horse chasing a dinosaur it glitches by running back and forth:
There are a two solutions for this that I can think of:
- Friendships are made with pets of similar speeds - add condition here https://github.com/tonybaloney/vscode-pets/blob/main/src/panel/pets.ts#L108-L110
- The chasing pet moves at the speed of it's friend - https://github.com/tonybaloney/vscode-pets/blob/main/src/panel/states.ts#L363
Other ideas welcome. This issue is up for grabs