Wednesday, 14 June 2017

Game Prototype 14/06/17

I have been having some problems lately with the FPS. In a frame, it took 16 ms to render, in the next one, it took 300 ms to render. This was weird because sometimes it didn't even happen. I started commenting every piece of code until it stopped doing that and I ended up finding that glGetUniformLocation was the culprit.

I also created a class structure for the game. For example, I have a BaseUnit class (base class), which MovingUnit and StaticUnit inherit of, and for now, I only have another class, the Player class (inherits from MovingUnit).

So, now we have a player which we can move with smooth camera following and other stuff.

Warning! Programmer Art bellow, viewer discretion is advised.

(I know the model is horrible, but it will have to do for now)



I might add some decorations to the terrain in the next update.

No comments:

Post a Comment