Examples adjustments.
* French to English punctuation. * Pong and Shader use fixed-sized windows now (especially on tiling window managers, the windows will be resized automatically, thus making the examples look and also behave weirdly).
This commit is contained in:
parent
6ef3cb27a1
commit
40ae3ce175
@ -27,7 +27,8 @@ int main()
|
|||||||
float ballRadius = 10.f;
|
float ballRadius = 10.f;
|
||||||
|
|
||||||
// Create the window of the application
|
// Create the window of the application
|
||||||
sf::RenderWindow window(sf::VideoMode(gameWidth, gameHeight, 32), "SFML Pong");
|
sf::RenderWindow window(sf::VideoMode(gameWidth, gameHeight, 32), "SFML Pong",
|
||||||
|
sf::Style::Titlebar | sf::Style::Close);
|
||||||
window.setVerticalSyncEnabled(true);
|
window.setVerticalSyncEnabled(true);
|
||||||
|
|
||||||
// Load the sounds used in the game
|
// Load the sounds used in the game
|
||||||
|
@ -267,7 +267,8 @@ private:
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Create the main window
|
// Create the main window
|
||||||
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML Shader");
|
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML Shader",
|
||||||
|
sf::Style::Titlebar | sf::Style::Close);
|
||||||
window.setVerticalSyncEnabled(true);
|
window.setVerticalSyncEnabled(true);
|
||||||
|
|
||||||
// Load the application font and pass it to the Effect class
|
// Load the application font and pass it to the Effect class
|
||||||
|
@ -25,12 +25,12 @@ int main()
|
|||||||
|
|
||||||
// TCP, UDP or connected UDP ?
|
// TCP, UDP or connected UDP ?
|
||||||
char protocol;
|
char protocol;
|
||||||
std::cout << "Do you want to use TCP (t) or UDP (u) ? ";
|
std::cout << "Do you want to use TCP (t) or UDP (u)? ";
|
||||||
std::cin >> protocol;
|
std::cin >> protocol;
|
||||||
|
|
||||||
// Client or server ?
|
// Client or server ?
|
||||||
char who;
|
char who;
|
||||||
std::cout << "Do you want to be a server (s) or a client (c) ? ";
|
std::cout << "Do you want to be a server (s) or a client (c)? ";
|
||||||
std::cin >> who;
|
std::cin >> who;
|
||||||
|
|
||||||
if (protocol == 't')
|
if (protocol == 't')
|
||||||
|
@ -24,7 +24,7 @@ int main()
|
|||||||
|
|
||||||
// Choose the sample rate
|
// Choose the sample rate
|
||||||
unsigned int sampleRate;
|
unsigned int sampleRate;
|
||||||
std::cout << "Please choose the sample rate for sound capture (44100 is CD quality) : ";
|
std::cout << "Please choose the sample rate for sound capture (44100 is CD quality): ";
|
||||||
std::cin >> sampleRate;
|
std::cin >> sampleRate;
|
||||||
std::cin.ignore(10000, '\n');
|
std::cin.ignore(10000, '\n');
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ int main()
|
|||||||
|
|
||||||
// Client or server ?
|
// Client or server ?
|
||||||
char who;
|
char who;
|
||||||
std::cout << "Do you want to be a server ('s') or a client ('c') ? ";
|
std::cout << "Do you want to be a server ('s') or a client ('c')? ";
|
||||||
std::cin >> who;
|
std::cin >> who;
|
||||||
|
|
||||||
if (who == 's')
|
if (who == 's')
|
||||||
|
Loading…
Reference in New Issue
Block a user