Dev Diary

Work continues on our final assignment for Game Programming I.

20/12:  18:20-20:30

Met up on voicechat to organize, go over what has been done and plan for the next few days.

My partner suggested tiling for the background. Seems like a very good idea! Generate a room by reading in characters from a text file.

Partner went over animation again for me.

Decided to draw the sprite for the sword separately from the sprite for Link, that is, draw both sprites when an attack is occurring. This in order to simplify collision checking, so we check ANY collision with the Link sprite and an enemy projectile or weapon for damage, and the ANY collision with sword sprite and an enemy/destructible terrain.

We want to draw the sword sprite “under” the Link sprite so the hilt doesn’t overlap his hands. In order to do this, without having to send the sword before the Player into the vector m_entities, we simply inverted the for-loop that is used to draw sprites in the Draw() function, like so:

for (unsigned int i = m_entities.size()-1; i < -1; i--)

Handling movement animations and attacking animations with the sword is trickier than we thought. Individual work to attempt to solve it.

About Dee Majek

2014  Programming