Skip to content

Commit

Permalink
colors staan nu colorgenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
keeslampe committed Jun 24, 2014
1 parent 7ea6efe commit 9fec127
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<!-- enum -->
<script src="../common/Enums.js"></script>

<!-- settings -->
<script src="../common/Settings.js"></script>

<!-- utils -->
<script src="../common/game/util/IDDistributor.js"></script>
<script src="../common/game/util/ColorGenerator.js"></script>
<script src="../common/game/util/Group.js"></script>
<script src="../common/game/util/GroupManager.js"></script>

<!-- settings -->
<script src="../common/Settings.js"></script>

<!-- timers -->
<script src="../common/game/time/Timer.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions src/client/mainscreen.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
<!-- enum -->
<script src="../common/Enums.js"></script>

<!-- settings -->
<script src="../common/Settings.js"></script>

<!-- utils -->
<script src="../common/game/util/IDDistributor.js"></script>
<script src="../common/game/util/ColorGenerator.js"></script>
<script src="../common/game/util/Group.js"></script>
<script src="../common/game/util/GroupManager.js"></script>

<!-- settings -->
<script src="../common/Settings.js"></script>

<!-- timers -->
<script src="../common/game/time/Timer.js"></script>
<script src="../common/game/time/PlayerTimer.js"></script>
Expand Down
4 changes: 1 addition & 3 deletions src/common/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ var Settings = {
//Positions of initial ball
x: 100,
y: 100,
nrOfNewBalls: 3, //Number of new balls created per player.
colors: ["#2237FF", "#2237FF", "#FF0067", "#838FFF", "#FFD870", "#FFBC8C",
"#FF70AA", "#FF004D", "#7716FF", "#FFE700"]
nrOfNewBalls: 3 //Number of new balls created per player.
},

player: {
Expand Down
3 changes: 2 additions & 1 deletion src/common/game/util/ColorGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if(typeof module != 'undefined'){
*/
var ColorGenerator = {

colors: Settings.ball.colors,
colors: ["#2237FF", "#2237FF", "#FF0067", "#838FFF", "#FFD870", "#FFBC8C",
"#FF70AA", "#FF004D", "#7716FF", "#FFE700"],

/**
* Returns a random color from the predefined color list above.
Expand Down

0 comments on commit 9fec127

Please sign in to comment.