ebrahimebrahim / knock-the-rock

A 2D physics game about throwing rocks.
MIT License
3 stars 0 forks source link

Display messages near what they are about #45

Closed ebrahimebrahim closed 4 years ago

ebrahimebrahim commented 4 years ago

instead of displaying them in the middle of the screen.

For example, "Knocked!" can be near the target rock Mistake messages can be near the boulder etc.

The messages can also be smaller if we do this. Currently it makes sense for them to be large because they might be away from the action, so they need to grab your attention

ebrahimebrahim commented 4 years ago

I am going to start by moving the message display code into its own class

ebrahimebrahim commented 4 years ago

Almost done with this; current work is on branch issue_45

I still need to ensure that messages are fully in the screen. For example if the boulder is very far to the right, then messages that are displayed near the boulder can flow over the screen

We might also want to fine tune message display times and font sizes at the end