Advertisement
Guest User

Objects.h

a guest
May 2nd, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. //objects
  2.  
  3. enum IDS {PLAYER, BULLET, ENEMY};
  4.  
  5. //player
  6.  
  7. struct Player {
  8.     int ID;
  9.     int x;
  10.     int y;
  11.     int hitpoints;
  12.     int speed;
  13.     int boundx;
  14.     int boundy;
  15.     int velx;
  16.     int vely;
  17.  
  18.     int maxFrame;
  19.     int curFrame;
  20.     int frameCount;
  21.     int frameDelay;
  22.     int frameWidth;
  23.     int frameHeight;
  24.     int animationColumns;
  25.     int animationRow;
  26.  
  27.     ALLEGRO_BITMAP *image;
  28. };
  29.  
  30. struct Background
  31. {
  32.     float x;
  33.     float y;
  34.     float velX;
  35.     float velY;
  36.     int dirX;
  37.     int dirY;
  38.  
  39.     int width;
  40.     int height;
  41.  
  42.     ALLEGRO_BITMAP *image;
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement