#include <iostream>
#include <SFML/Graphics.hpp>
#include<Piece.h>
#include<Personnage.h>
using namespace std;
int action = 1;
int main()
{
sf::RenderWindow window(sf::VideoMode(1920, 1080), "test poo ");
sf::Texture t_lim;
sf::Sprite spr_lim;
t_lim.loadFromFile("ressource/lim.png");
spr_lim.setTexture(t_lim);
Piece spritex;
Personnage parachutiste;
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Right))
{
parachutiste.Deplacement_droite();
}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Left))
{
parachutiste.Deplacement_gauche();
}
window.clear();
window.draw(spritex);
window.draw(spr_lim);
window.draw(parachutiste);
window.display();
}
}