Merge remote-tracking branch 'origin/master'
# Conflicts: # scores.kus
This commit is contained in:
commit
d66b66451a
@ -4,10 +4,10 @@ general:
|
|||||||
|
|
||||||
# Players config
|
# Players config
|
||||||
players:
|
players:
|
||||||
width: 250
|
width: 100
|
||||||
startXPosition: 50
|
startXPosition: 50
|
||||||
fireCooldown: 10
|
fireCooldown: 10
|
||||||
speed: 10
|
speed: 20
|
||||||
user1:
|
user1:
|
||||||
color: red
|
color: red
|
||||||
keys:
|
keys:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
10912949710723305374
|
6613206509173847490
|
||||||
Thomas,2000
|
Thomas,2500
|
||||||
|
Thomas,1200
|
||||||
Thomas,1000
|
Thomas,1000
|
||||||
Thomas,300
|
Thomas,300
|
||||||
Thomas,0
|
Thomas,0
|
||||||
Thomas,0
|
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "god.h"
|
#include "god.h"
|
||||||
|
|
||||||
|
|
||||||
using namespace nsShape;
|
using namespace nsShape;
|
||||||
|
|
||||||
|
|
||||||
PixelManager::PixelManager(MinGL& a) : window(a) {
|
PixelManager::PixelManager(MinGL& a) : window(a) {
|
||||||
window.initGlut();
|
window.initGlut();
|
||||||
window.initGraphic();
|
window.initGraphic();
|
||||||
@ -72,14 +72,6 @@ void PixelManager::drawBackground() const {
|
|||||||
background.draw(window);
|
background.draw(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayMode PixelManager::showInitialMenu() const {
|
|
||||||
return PlayMode::SINGLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PixelManager::showDeathMenu() const {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned PixelManager::getScreenHeight() const {
|
unsigned PixelManager::getScreenHeight() const {
|
||||||
return window.getWindowSize().getY();
|
return window.getWindowSize().getY();
|
||||||
}
|
}
|
@ -5,6 +5,7 @@ using namespace std;
|
|||||||
// TODO changer tout les unsigned par des size_t dans les boucles
|
// TODO changer tout les unsigned par des size_t dans les boucles
|
||||||
int main(){
|
int main(){
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
|
|
||||||
Game g;
|
Game g;
|
||||||
g.managedGames();
|
g.managedGames();
|
||||||
|
|
||||||
|
15
src/menuDraw.cpp
Normal file
15
src/menuDraw.cpp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include <playMode.h>
|
||||||
|
#include "pixelManager.h"
|
||||||
|
#include "utils.h"
|
||||||
|
#include "god.h"
|
||||||
|
|
||||||
|
PlayMode PixelManager::showInitialMenu() const {
|
||||||
|
return PlayMode::SINGLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PixelManager::showDeathMenu() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user