Commit 3ce033e2 authored by DoNaTio s.r.o.'s avatar DoNaTio s.r.o.
Browse files

END_SCORE

parent fd022a65
const END_SCORE = 11;
// Setup basic express server // Setup basic express server
var express = require('express'); var express = require('express');
var app = express(); var app = express();
...@@ -32,7 +34,7 @@ setInterval(function () { ...@@ -32,7 +34,7 @@ setInterval(function () {
ball.calculateNewAxis(); ball.calculateNewAxis();
if(score.collision()){ if(score.collision()){
if(score.getSumScore() >= 11) { if(score.getSumScore() >= END_SCORE) {
io.emit('game over', { io.emit('game over', {
winTeam: score.getWinTeam() winTeam: score.getWinTeam()
}); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment