Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate the player model approprietly based on motion #25

Open
lobau opened this issue May 2, 2024 · 1 comment
Open

Rotate the player model approprietly based on motion #25

lobau opened this issue May 2, 2024 · 1 comment
Assignees

Comments

@lobau
Copy link
Contributor

lobau commented May 2, 2024

face rightward when moving
only face enemy when engaged in combat

@lobau lobau self-assigned this May 2, 2024
@lobau
Copy link
Contributor Author

lobau commented May 2, 2024

Based on our conversation, here are the two approaches:

The simplest, acceptable approach is:

  • Dots always faces the door
  • Dots turns toward the enemy it's attacking
  • After combat, stay rotated until the next move, where it faces the door again

The more desirable, more sophisticated approach:

  • when the player tap on a tile, the movement gets decomposed in one-cell steps
  • for each step, Dots move to an adjacent cell, and pause for something like 300ms
  • Dots orients its back towards the previous tile
  • When attacking, Dots reorients towards the attacker

The second approach, while more complex, will make the game a bit nicer to play and allow for positioning strategies, like flanking or backstabbing damage

cc @christianv78 for viz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant