Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "game.h"
- using namespace glm;
- namespace Tmpl8
- {
- class Surface;
- class Bullet
- {
- public:
- Bullet();
- ~Bullet();
- void SpawnBullet();
- void Update(int playerPosX, int playerPosY);
- void Draw(Surface *screen);
- void OnCollision();
- bool CanDrawBullet();
- bool isSpawned;
- bool playerAlive;
- vec2 bulletPos;
- private:
- float velocity;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement