Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Ship.h
- // Space Invaders
- //
- // Created by Marcuz on 25/02/13.
- // Copyright (c) 2013 Marcuz Stolte. All rights reserved.
- //
- #ifndef __Space_Invaders__Ship__
- #define __Space_Invaders__Ship__
- #include <SFML/Graphics.hpp>
- #include "AlienProjectile.h"
- using namespace sf;
- class Ship{
- public:
- Ship();
- void draw(RenderWindow &window);
- void moveLeft();
- void moveRight();
- void checkCollision(AlienProjectile &alienProj, int &lives);
- Vector2f pos;
- Texture shipTexture;
- Sprite ship;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement