Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PLAYER_H
- #define PLAYER_H
- #include "Game_Object.h"
- class Player : public Game_Object
- {
- public:
- Player(double x, double y, double direction, double speed,
- int width, int height);
- virtual ~Player();
- int color[3] {0, 0, 0};
- static double verts[60][2];
- protected:
- private:
- };
- double Player::verts[60][2] =
- {
- { 0.4 , 0.2}, { 0.1 , 0.5}, { 0.1 , 0.5}, {-0.4 , 0.5},
- {-0.4 , 0.5}, {-0.4 ,-0.5}, {-0.4 ,-0.5}, { 0.1 ,-0.5},
- { 0.1 ,-0.5}, { 0.4 ,-0.2}, { 0.4 ,-0.2}, { 0.4 , 0.2},
- {-0.2 , 0.1}, {-0.2 ,-0.1}, { 0.1 ,-0.1}, { 0.1 , 0.1},
- { 0.1 , 0.4}, {-0.2 , 0.4}, {-0.2 , 0.4}, {-0.2 , 0.5},
- { 0.1 , 0.4}, { 0.1 , 0.5}, { 0.1 ,-0.4}, {-0.2 ,-0.4},
- {-0.2 ,-0.4}, {-0.2 ,-0.5}, { 0.1 ,-0.4}, { 0.1 ,-0.5},
- {-0.4 , 0.2}, {-0.5 , 0.2}, {-0.5 , 0.2}, {-0.5 ,-0.2},
- {-0.5 ,-0.2}, {-0.4 ,-0.2}, { 0.3 , 0.3}, { 0.3 ,-0.3},
- {-0.5 , 0.1}, {-0.6 , 0.2}, {-0.6 , 0.2}, {-0.9 , 0.0},
- {-0.9 , 0.0}, {-0.6 ,-0.2}, {-0.6 ,-0.2}, {-0.5 ,-0.1},
- { 0.1 , 0.2}, { 0.1 ,-0.2}, { 0.1 ,-0.2}, {-0.2 ,-0.2},
- {-0.2 ,-0.2}, {-0.2 , 0.2}, {-0.2 , 0.2}, { 0.1 , 0.2},
- {-0.5 , 0.0}, {-0.6 , 0.1}, {-0.6 , 0.1}, {-0.7 , 0.0},
- {-0.7 , 0.0}, {-0.6 ,-0.1}, {-0.6 ,-0.1}, {-0.5 , 0.0}
- };
- #endif // PLAYER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement