1
General / Clear() method overwrites sprite drawing
« on: November 12, 2011, 02:26:58 pm »
see, i knew it was some stupid mistake. thank you for helping me realize my idiocy.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sf::Vector2<int> vector;
while(true)
{
app.Clear(sf::Color(0, 255, 255));
app.Display();
app.Draw(player.drawsprite());
float ElapsedTime = app.GetFrameTime();
if(app.GetEvent(Event))
{
if(app.GetInput().IsKeyDown(sf::Key::Up))
{
player.move_up();
}
if(Event.Type == Event::Closed)
{
return EXIT_SUCCESS;
}
if(Event.Type == Event::KeyPressed && Event.Key.Code == Key::Escape)
{
return EXIT_SUCCESS;
}
}
}