Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DoNaTio s.r.o.
PiPo
Commits
3ce033e2
Commit
3ce033e2
authored
Dec 19, 2014
by
DoNaTio s.r.o.
Browse files
END_SCORE
parent
fd022a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.js
View file @
3ce033e2
const
END_SCORE
=
11
;
// Setup basic express server
var
express
=
require
(
'
express
'
);
var
app
=
express
();
...
...
@@ -32,7 +34,7 @@ setInterval(function () {
ball
.
calculateNewAxis
();
if
(
score
.
collision
()){
if
(
score
.
getSumScore
()
>=
11
)
{
if
(
score
.
getSumScore
()
>=
END_SCORE
)
{
io
.
emit
(
'
game over
'
,
{
winTeam
:
score
.
getWinTeam
()
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment