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