mbkarle / mind-the-fog

Roguelike JavaScript game--mind the fog!
2 stars 1 forks source link

Doge in training room #108

Closed akarle closed 6 years ago

akarle commented 6 years ago

Symptom

Run around near where dog is in great hall, itll appear

Thoughts

I think its the way the dog was initially spawned in the great hall...

akarle commented 6 years ago

Update: dont need to do training room stuff. Think the whole spawn altogether broken. Avoiding doge in training room and hitting in great hall makes # doges go from 1 -> 2.

akarle commented 6 years ago

This issue happens also if you bypass dog entirely in great hall and on any other floor hit the tile the dog spawns on. I believe the issue is that the collision detection only accounts for dogX/dogY and avX/avY, and not whether the dog is truly at that spot

akarle commented 6 years ago

Solutions

  1. introduce a Z axis
  2. use the dog_present boolean to determine collision

Leaning towards 2 for now as it is easier

akarle commented 6 years ago

Went for option 2. Opening new issue for code cleanup #112