1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#pragma once #include "gameobject.h" class Explosion : public GameObject { float time; public: Explosion(float pos_x, float pos_y, float size_x, float size_y); virtual ~Explosion(); void update() override; void draw() override; bool collidable() override; };