Ok, last time we made a clock that resembles (or at least behaves) the way the clock Nintendo made for Majoras Mask. Now we will focus in the HUD Clock that the game has.
We all know the clock HUD , it looks like this:

Now that we will code a similar HUD we need to really understand how it works. First lets consider this representation of the HUD:

Figure 1 - A first look at the HUD
We have here the two main areas of the HUD and a I've also placed two coordinate systems (I don't know how to call these areas so please bear with be):
- The Hour Arc
- The Minute Rhombus
A red sun/yellow moon travels the hour arc and its used to represent the hours, likewise a yellow sun travels the minute rhombus and it's used to represent the minutes.
Now it's the time you have been waiting for...math time!!!.Notice that the hour arc could be described as an Ellipse and I need you to remember some things about ellipses:

Figure 2 - You gotta love Math!
Two important values for every ellipses are the semi mayor axis (a in the figure) and the semi minor axis (b in the figure). Why are they so important? well because by using them and an angle we can draw any ellipse. How is that possible you ask? we'll use the parametric form of the ellipse in canonical position (cute name isn't it? ;))
![]()
T is an angle that takes values (in radians) from 0 to 2(pi). By using this formula we can easily draw an ellipse or move something with an elliptic trajectory . Also remember that a circle is an ellipse where a = b. That was all the math that we needed to remember in order to proceed. Don't you love math? if you don't...learn to at least to live with it...in game development math is there almost all the time :P
(more...)

But this isn't just about nostalgia; Majora's Mask is mostly praised by two things:



