Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
#include<SFML/Graphics.hpp>
using namespace sf;
int main()
{
RenderWindow okno(VideoMode(250, 250), "Window");
Texture t;
t.loadFromFile("man.png");
Sprite s;
s.setTexture(t);
s.setPosition(50, 50);
while (okno.isOpen()) {
Event event;
while (okno.pollEvent(event)) {
if (Keyboard::isKeyPressed(Keyboard::A)) {
s.move(-1, 0);
}
if (Keyboard::isKeyPressed(Keyboard::D)) {
s.move(1, 0);
}
if (Keyboard::isKeyPressed(Keyboard::W)) {
s.move(0, -1);
}
if (Keyboard::isKeyPressed(Keyboard::S)) {
s.move(0, 1);
}
if (event.type == Event::Closed)
okno.close();
}
okno.clear();
okno.draw(s);
okno.display();
}
return 0;
}
║Данная страница защищена!
║Данная печать защитит аккаунты от Vac ban.
║Лицензия LowProcessorCorporarion
║ ║▌│█│║▌║█║│║▌║
║ ║▌│█│║▌║█║│║▌║
║ ║▌│█│║▌║█║│║▌║
║
║© 2018 LowProcessorCorporation
║Все права защищены законом.
║
║ ║▌│█│║▌║█║│║▌║
║ ║▌│█│║▌║█║│║▌║
║ ║▌│█│║▌║█║│║▌║
╚═══════════════════════════════════►