Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.27 KB | None | 0 0
  1. #ifndef PLAYER_H
  2. #define PLAYER_H
  3.  
  4. #include "Game_Object.h"
  5.  
  6. class Player : public Game_Object
  7. {
  8. public:
  9.   Player(double x, double y, double direction, double speed,
  10.                int width, int height);
  11.   virtual ~Player();
  12.   int color[3] {0, 0, 0};
  13.   static double verts[60][2];
  14. protected:
  15.  
  16. private:
  17. };
  18.  
  19. double Player::verts[60][2] =
  20. {
  21.     { 0.4 , 0.2}, { 0.1 , 0.5}, { 0.1 , 0.5}, {-0.4 , 0.5},
  22.     {-0.4 , 0.5}, {-0.4 ,-0.5}, {-0.4 ,-0.5}, { 0.1 ,-0.5},
  23.     { 0.1 ,-0.5}, { 0.4 ,-0.2}, { 0.4 ,-0.2}, { 0.4 , 0.2},
  24.     {-0.2 , 0.1}, {-0.2 ,-0.1}, { 0.1 ,-0.1}, { 0.1 , 0.1},
  25.     { 0.1 , 0.4}, {-0.2 , 0.4}, {-0.2 , 0.4}, {-0.2 , 0.5},
  26.     { 0.1 , 0.4}, { 0.1 , 0.5}, { 0.1 ,-0.4}, {-0.2 ,-0.4},
  27.     {-0.2 ,-0.4}, {-0.2 ,-0.5}, { 0.1 ,-0.4}, { 0.1 ,-0.5},
  28.     {-0.4 , 0.2}, {-0.5 , 0.2}, {-0.5 , 0.2}, {-0.5 ,-0.2},
  29.     {-0.5 ,-0.2}, {-0.4 ,-0.2}, { 0.3 , 0.3}, { 0.3 ,-0.3},
  30.     {-0.5 , 0.1}, {-0.6 , 0.2}, {-0.6 , 0.2}, {-0.9 , 0.0},
  31.     {-0.9 , 0.0}, {-0.6 ,-0.2}, {-0.6 ,-0.2}, {-0.5 ,-0.1},
  32.     { 0.1 , 0.2}, { 0.1 ,-0.2}, { 0.1 ,-0.2}, {-0.2 ,-0.2},
  33.     {-0.2 ,-0.2}, {-0.2 , 0.2}, {-0.2 , 0.2}, { 0.1 , 0.2},
  34.     {-0.5 , 0.0}, {-0.6 , 0.1}, {-0.6 , 0.1}, {-0.7 , 0.0},
  35.     {-0.7 , 0.0}, {-0.6 ,-0.1}, {-0.6 ,-0.1}, {-0.5 , 0.0}
  36. };
  37.  
  38. #endif // PLAYER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement