diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 7d0ef01c2..f39c4caa3 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -92,6 +92,8 @@ campaign_player_created_description: "... in which you battle against the creativity of your fellow <a href=\"/contribute/artisan\">Artisan Wizards</a>." campaign_classic_algorithms: "Classic Algorithms" campaign_classic_algorithms_description: "... in which you learn the most popular algorithms in Computer Science." + campaign_old_multiplayer: "(Deprecated) Old Multiplayer Arenas" + campaign_old_multiplayer_description: "Relics of a more civilized age. No simulations are run for these older, hero-less multiplayer arenas." share_progress_modal: blurb: "You’re making great progress! Tell your parent how much you've learned with CodeCombat." diff --git a/app/styles/play/ladder_home.sass b/app/styles/play/ladder_home.sass index e9b474a6a..38eb07af8 100644 --- a/app/styles/play/ladder_home.sass +++ b/app/styles/play/ladder_home.sass @@ -8,7 +8,7 @@ margin-bottom: 20px text-shadow: 2px 2px 5px black - &:hover div + &:hover div, &:hover .dynamic-level-name color: lighten($yellow, 20%) &:hover img @@ -19,6 +19,20 @@ .level-image width: 100% + .dynamic-level-name + position: absolute + z-index: 1 + top: 40px + width: 100% + text-align: center + + text-shadow: 0px 5px 5px black, -2px 0px 2px black, 2px 0px 2px black, 0px -2px 2px black + font-size: 72px + color: $yellow + font-family: $headings-font-family + font-variant: small-caps + @include transition(color .10s linear) + .overlay-text color: $yellow font-family: $headings-font-family diff --git a/app/templates/play/ladder_home.jade b/app/templates/play/ladder_home.jade index 61adab298..ec2df7906 100644 --- a/app/templates/play/ladder_home.jade +++ b/app/templates/play/ladder_home.jade @@ -14,7 +14,7 @@ block content img.level-image(src="#{level.image}", alt="#{level.name}").img-rounded else img.level-image(src="/images/pages/play/ladder/multiplayer_notext.jpg", alt="#{level.name}").img-rounded - //h3= level.name + (level.disabled ? " (Coming soon!)" : "") + h3.dynamic-level-name= level.name + (level.disabled ? " (Coming soon!)" : "") .overlay-text.level-difficulty span(data-i18n="play.level_difficulty") Difficulty: each i in Array(level.difficulty) diff --git a/app/views/ladder/MainLadderView.coffee b/app/views/ladder/MainLadderView.coffee index 1de64a187..a27b43682 100644 --- a/app/views/ladder/MainLadderView.coffee +++ b/app/views/ladder/MainLadderView.coffee @@ -54,8 +54,45 @@ module.exports = class LadderHomeView extends RootView context.campaigns = campaigns context +heroArenas = [ + { + name: 'Zero Sum' + difficulty: 3 + id: 'zero-sum' + image: '/file/db/level/550363b4ec31df9c691ab629/MAR26-Banner_Zero%20Sum.png' + description: 'Unleash your coding creativity in both gold gathering and battle tactics in this alpine mirror match between red sorcerer and blue sorcerer.' + } + { + name: 'Cavern Survival' + difficulty: 1 + id: 'cavern-survival' + image: '' + description: 'Stay alive longer than your multiplayer opponent amidst hordes of ogres!' + } + { + name: 'Dueling Grounds' + difficulty: 1 + id: 'dueling-grounds' + image: '' + description: 'Battle head-to-head against another hero in this basic beginner combat arena.' + } + { + name: 'Multiplayer Treasure Grove' + difficulty: 2 + id: 'multiplayer-treasure-grove' + image: '' + description: 'Mix collection, flags, and combat in this multiplayer coin-gathering arena.' + } + { + name: 'Harrowland' + difficulty: 2 + id: 'harrowland' + image: '' + description: 'Go head-to-head against another player in this dueling arena--but watch out for their friends!' + } +] -arenas = [ +oldArenas = [ { name: 'Criss-Cross' difficulty: 5 @@ -101,5 +138,6 @@ arenas = [ ] campaigns = [ - {id: 'multiplayer', name: 'Multiplayer Arenas', description: '... in which you code head-to-head against other players.', levels: arenas} + {id: 'multiplayer', name: 'Multiplayer Arenas', description: '... in which you code head-to-head against other players.', levels: heroArenas} + {id: 'old_multiplayer', name: '(Deprecated) Old Multiplayer Arenas', description: 'Relics of a more civilized age. No simulations are run for these older, hero-less multiplayer arenas.', levels: oldArenas} ]