Merge remote-tracking branch 'origin/master'

# Conflicts:
#	scores.kus
This commit is contained in:
Thomas 2022-01-06 15:08:07 +01:00
commit d66b66451a
No known key found for this signature in database
GPG Key ID: E538821A6CDFDAD7
5 changed files with 23 additions and 15 deletions

View File

@ -4,10 +4,10 @@ general:
# Players config
players:
width: 250
width: 100
startXPosition: 50
fireCooldown: 10
speed: 10
speed: 20
user1:
color: red
keys:

View File

@ -1,6 +1,6 @@
10912949710723305374
Thomas,2000
6613206509173847490
Thomas,2500
Thomas,1200
Thomas,1000
Thomas,300
Thomas,0
Thomas,0

View File

@ -3,9 +3,9 @@
#include "utils.h"
#include "god.h"
using namespace nsShape;
PixelManager::PixelManager(MinGL& a) : window(a) {
window.initGlut();
window.initGraphic();
@ -72,14 +72,6 @@ void PixelManager::drawBackground() const {
background.draw(window);
}
PlayMode PixelManager::showInitialMenu() const {
return PlayMode::SINGLE;
}
bool PixelManager::showDeathMenu() const {
return true;
}
unsigned PixelManager::getScreenHeight() const {
return window.getWindowSize().getY();
}
@ -131,4 +123,4 @@ PixelManager::mirrorData(const vector<nsGraphics::RGBAcolor>& inPixels, unsigned
}
}
return std::move(outPixels);
}
}

View File

@ -5,6 +5,7 @@ using namespace std;
// TODO changer tout les unsigned par des size_t dans les boucles
int main(){
srand(time(NULL));
Game g;
g.managedGames();

15
src/menuDraw.cpp Normal file
View 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;
}