Jeffery Hurley
/
Asteroids
Simple starter skeleton for asteroids video game.
Projectile.cpp
- Committer:
- jhurley31
- Date:
- 2021-04-01
- Revision:
- 3:98aa3db6a48f
File content as of revision 3:98aa3db6a48f:
#include "Projectile.h" #include "graphic.h" // Replace the code below. You should pass in the direction of the command // ship and then have the projectile move along that direction void Projectile::reset() { int offset = 64; m_xPoints[0] = (0+offset); m_yPoints[0] = (5+offset); m_xPoints[1] = (0+offset); m_yPoints[1] = (8+offset); m_color = YELLW; m_numPoints = 2; m_bIsValid = true; }