Tags
I’ve been looking through your code for the menu state. You can see how this is created with the knowledge from previous courses. Really good to see that you have set up a simple collision system in a 2D space in order to simplify the creation process.
class Hitbox2D {
public:
Hitbox2D() {
m_x = 0;
m_y = 0;
m_w = 0;
m_h = 0;
}
Hitbox2D(float x, float y, float w, float h) {
m_x = x;
m_y = y;
m_w = w;
m_h = h;
};
And then later on tracking the mouse’s position in order to check if the mouse’s position is within the menu button’s collision area (to trigger perhaps a higlated state in the menu). This reading of the code was really usefull to me since I am to set up a quick menu and of course a menu state our game as well. And since we all (well most of us) are using the helium project as base it is really easy to understand what’s going on.
This was a really short review but everything looks good for now, keep up the good work.
//Simon Johansson
For this week’s progress it has been really slow, the whole group is scattered so I’ve been completing my individual task for programming III, I completed the last methods for binary source tree; traversing and pre order printing, it was a matter of thinking and placing the print code at the right spot. The base code I hade already coded in my print after sorting.
And that was it this week, Happy Holidays!