Advertisement
Al99

Enemy.cpp

Nov 11th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include "Enemy.h"
  2.  
  3. Enemy::Enemy(const LoaderParams* pParams) :
  4. SDLGameObject(pParams)
  5. {
  6. }
  7.  
  8. void Enemy::draw(SDL_Renderer* pRenderer)
  9. {
  10.     SDLGameObject::draw(pRenderer);
  11. }
  12.  
  13. void Enemy::clean()
  14. {}
  15. void Enemy::update()
  16. {
  17. m_position.setX(m_position.getX() + 1);
  18. m_position.setY(m_position.getY() + 1);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement