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

Drawing of a clock's hands #118

Open
mrfatguy opened this issue Mar 30, 2024 · 0 comments
Open

Drawing of a clock's hands #118

mrfatguy opened this issue Mar 30, 2024 · 0 comments
Assignees
Labels
feature New feature or request, requires business analysis in most cases

Comments

@mrfatguy
Copy link
Contributor

mrfatguy commented Mar 30, 2024

After completing #34, please implement the feature of drawing clock's hands to denote the actual time.

The small and large hands location (starting point) is always fixed -- center of the clock's dial. It's location in 4K resolution is 3174, 1459 and its dimensions are 10, 11 since it occupies exactly one in-game pixel (another example of inconclusive pixel ratio).

Location and dimensions of a few example clock hand's positions are given below:

Hour Small aW, aH Large aW, aH
06:15 11, 97 129, 10
07:00 -65, -86 11, -118
09:00 -108, 10 11, -118
10:10 -98, -54 -64, 119
10:35 -87, -64 -76, 97
11:30 -54, -86 118, 11
12:20 11, -97 119, 64
12:25 11, -97 75, 97
15:05 108, 10 75, -97
15:45 108, 32 -130, 10

For the clarity, in this case dimensions of clock's hands were given in absolute (4K resolution) values only.

⚠️ Please, pay an attention to the last two examples, compare them carefully and observe the fact that the original game has a fully working dial clock implemented. Meaning that the small hand also rotates when time progresses following quarters.

In the second to last image there's five past three meaning first quarter. And the small arrow points directly to the third hour. At the last image there's a quarter to four meaning third quarter. And the small arrow points two pixels below and is closer to four than to three. Just like in every real dial clock.

Details: Control PanelClockHands.

@mrfatguy mrfatguy added the feature New feature or request, requires business analysis in most cases label Mar 30, 2024
@mrfatguy mrfatguy added this to the [0.9] World and environment milestone Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request, requires business analysis in most cases
Projects
None yet
Development

No branches or pull requests

2 participants