Switching to sfml
This commit is contained in:
parent
4536c62dad
commit
de72aead56
40 changed files with 462 additions and 2385 deletions
13
src/Enemy/Enemy.hpp
Normal file
13
src/Enemy/Enemy.hpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
#include <SFML/Graphics.hpp>
|
||||
|
||||
class Enemy : public sf::Drawable
|
||||
{
|
||||
sf::RectangleShape rectangle;
|
||||
public:
|
||||
explicit Enemy(sf::Vector2f position);
|
||||
|
||||
void look_at(sf::Vector2f target);
|
||||
|
||||
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue