diff --git a/lib/classes/player.js b/lib/classes/player.js index 98cd024..dcb81e0 100644 --- a/lib/classes/player.js +++ b/lib/classes/player.js @@ -5,7 +5,6 @@ GridGame.classes.player = function (config) { this.config = config; this.name = config.name; - this.css_class = config.css_class; this.playable = config.playable; this.key_map = GridGame.data.key_maps[this.name]; diff --git a/lib/classes/tile.js b/lib/classes/tile.js index 6966273..5386e45 100644 --- a/lib/classes/tile.js +++ b/lib/classes/tile.js @@ -89,7 +89,7 @@ GridGame.classes.tile = function (x, y) { .toggleClass('tile_city', this.city); if (this.player && this.value > 0) { - this.cell.addClass('tile_' + this.player.css_class); + this.cell.addClass('tile_' + this.player.name); } }; diff --git a/lib/data/players.js b/lib/data/players.js index 76e6e8f..f2f1640 100644 --- a/lib/data/players.js +++ b/lib/data/players.js @@ -1,14 +1,12 @@ GridGame.data.players = [ { name: 'green', - css_class: 'green', start: GridGame.positions.north_west_corner, direction: 'east', playable: true }, { name: 'red', - css_class: 'red', start: GridGame.positions.south_east_corner, direction: 'west', playable: true @@ -17,7 +15,6 @@ GridGame.data.players = [ , { name: 'yellow', - css_class: 'yellow', start: { x: 8, y: 0 @@ -27,7 +24,6 @@ GridGame.data.players = [ }, { name: 'blue', - css_class: 'blue', start: { x: 11, y: 11 diff --git a/lib/player_components/control_panel.js b/lib/player_components/control_panel.js index 08f5e54..c8a08e9 100644 --- a/lib/player_components/control_panel.js +++ b/lib/player_components/control_panel.js @@ -4,7 +4,7 @@ GridGame.player_components.control_panel = function() { if (this.playable) { this.panel = $('
'); this.panel.addClass('player_panel'); - this.panel.addClass(this.css_class); + this.panel.addClass(this.name); this.add_button('north'); this.add_button('west'); diff --git a/style/grid_game.css b/style/grid_game.css index ee7e172..ab15771 100644 --- a/style/grid_game.css +++ b/style/grid_game.css @@ -115,7 +115,7 @@ table.game_board tr.row td.tile_city small { .footer { float:left; width: 100%; - font-size: 20px; + font-size: 16px; color: darkgrey; }