Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <hge.h>
- #include <hgesprite.h>
- #include <hgeanim.h>
- #include <math.h>
- class Object{
- int x, y;
- HTEXTURE tex;
- hgeAnimation *anim;
- float angle, FPS, velocity;
- public:
- Object(int x, int y, HTEXTURE tex, float FPS);
- //Setters
- void SetX(int x);
- void SetY(int y);
- void SetSpeed(int FPS); //Image Speed
- void SetAngle(float angle); //Image Angle
- void SetVelocity(float velocity); //Object Speed/Velocity
- //Getters
- };
Add Comment
Please, Sign In to add comment