Merge remote-tracking branch 'origin/master'
# Conflicts: # scores.kus
This commit is contained in:
commit
d66b66451a
@ -4,10 +4,10 @@ general:
|
||||
|
||||
# Players config
|
||||
players:
|
||||
width: 250
|
||||
width: 100
|
||||
startXPosition: 50
|
||||
fireCooldown: 10
|
||||
speed: 10
|
||||
speed: 20
|
||||
user1:
|
||||
color: red
|
||||
keys:
|
||||
|
@ -1,6 +1,6 @@
|
||||
10912949710723305374
|
||||
Thomas,2000
|
||||
6613206509173847490
|
||||
Thomas,2500
|
||||
Thomas,1200
|
||||
Thomas,1000
|
||||
Thomas,300
|
||||
Thomas,0
|
||||
Thomas,0
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -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
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