Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //objects
- enum IDS {PLAYER, BULLET, ENEMY};
- //player
- struct Player {
- int ID;
- int x;
- int y;
- int hitpoints;
- int speed;
- int boundx;
- int boundy;
- int velx;
- int vely;
- int maxFrame;
- int curFrame;
- int frameCount;
- int frameDelay;
- int frameWidth;
- int frameHeight;
- int animationColumns;
- int animationRow;
- ALLEGRO_BITMAP *image;
- };
- struct Background
- {
- float x;
- float y;
- float velX;
- float velY;
- int dirX;
- int dirY;
- int width;
- int height;
- ALLEGRO_BITMAP *image;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement