Steam'i Yükleyin
giriş
|
dil
简体中文 (Basitleştirilmiş Çince)
繁體中文 (Geleneksel Çince)
日本語 (Japonca)
한국어 (Korece)
ไทย (Tayca)
Български (Bulgarca)
Čeština (Çekçe)
Dansk (Danca)
Deutsch (Almanca)
English (İngilizce)
Español - España (İspanyolca - İspanya)
Español - Latinoamérica (İspanyolca - Latin Amerika)
Ελληνικά (Yunanca)
Français (Fransızca)
Italiano (İtalyanca)
Bahasa Indonesia (Endonezce)
Magyar (Macarca)
Nederlands (Hollandaca)
Norsk (Norveççe)
Polski (Lehçe)
Português (Portekizce - Portekiz)
Português - Brasil (Portekizce - Brezilya)
Română (Rumence)
Русский (Rusça)
Suomi (Fince)
Svenska (İsveççe)
Tiếng Việt (Vietnamca)
Українська (Ukraynaca)
Bir çeviri sorunu bildirin
#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
║Все права защищены законом.
║
║ ║▌│█│║▌║█║│║▌║
║ ║▌│█│║▌║█║│║▌║
║ ║▌│█│║▌║█║│║▌║
╚═══════════════════════════════════►