Example: Star.h
1#pragma once2#include "Gfx.h"3#include <string>4 5class Star: public Cubios::Gfx::Sprite6{7 public:8 9 enum Animation10 {11 Spin = 0,12 UpAndDown = 1,13 LeftAndRight = 214 };15 16 Star(std::string name, const Cubios::Math::Transform& t);17 Star(std::string name, float x, float y);18 Star(std::string name);19 20 virtual ~Star();21 22 Star* Tick(uint32_t dt);23 Star* RenderStep();24 25 public:26 Animation AnimationType;27 Cubios::Math::Vec2 RotationCenter;28 29 private: 30 31 float currAngle;32 float angVelocity;33 float radius;34 35 Cubios::Math::Vec2 pos;36};