Initialisation de la fenêtre dans la liste d'initialisation
Et jacob dégage
This commit is contained in:
parent
9fdf9ac931
commit
0f37d49c6c
13
engine.cpp
13
engine.cpp
|
@ -3,14 +3,11 @@
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
|
||||||
Engine::Engine() : goLeftKey(false), goRightKey(false) {
|
Engine::Engine() : window(
|
||||||
// initialise et ouvre la fenêtre
|
sf::VideoMode(300, 150), "Projet CMI",
|
||||||
window.create(
|
sf::Style::Default & ~sf::Style::Resize,
|
||||||
sf::VideoMode(300, 150), "La cage de Jacob",
|
sf::ContextSettings(0, 0, 2)
|
||||||
sf::Style::Default & ~sf::Style::Resize,
|
), goLeftKey(false), goRightKey(false) {
|
||||||
sf::ContextSettings(0, 0, 2)
|
|
||||||
);
|
|
||||||
|
|
||||||
window.setVerticalSyncEnabled(true);
|
window.setVerticalSyncEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue