Added deprecation message to old arenas, highlighting new hero arenas instead.
This commit is contained in:
parent
5ab7fd7840
commit
07f81755b0
4 changed files with 58 additions and 4 deletions
app
locale
styles/play
templates/play
views/ladder
|
@ -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_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: "Classic Algorithms"
|
||||||
campaign_classic_algorithms_description: "... in which you learn the most popular algorithms in Computer Science."
|
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:
|
share_progress_modal:
|
||||||
blurb: "You’re making great progress! Tell your parent how much you've learned with CodeCombat."
|
blurb: "You’re making great progress! Tell your parent how much you've learned with CodeCombat."
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
margin-bottom: 20px
|
margin-bottom: 20px
|
||||||
text-shadow: 2px 2px 5px black
|
text-shadow: 2px 2px 5px black
|
||||||
|
|
||||||
&:hover div
|
&:hover div, &:hover .dynamic-level-name
|
||||||
color: lighten($yellow, 20%)
|
color: lighten($yellow, 20%)
|
||||||
|
|
||||||
&:hover img
|
&:hover img
|
||||||
|
@ -19,6 +19,20 @@
|
||||||
.level-image
|
.level-image
|
||||||
width: 100%
|
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
|
.overlay-text
|
||||||
color: $yellow
|
color: $yellow
|
||||||
font-family: $headings-font-family
|
font-family: $headings-font-family
|
||||||
|
|
|
@ -14,7 +14,7 @@ block content
|
||||||
img.level-image(src="#{level.image}", alt="#{level.name}").img-rounded
|
img.level-image(src="#{level.image}", alt="#{level.name}").img-rounded
|
||||||
else
|
else
|
||||||
img.level-image(src="/images/pages/play/ladder/multiplayer_notext.jpg", alt="#{level.name}").img-rounded
|
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
|
.overlay-text.level-difficulty
|
||||||
span(data-i18n="play.level_difficulty") Difficulty:
|
span(data-i18n="play.level_difficulty") Difficulty:
|
||||||
each i in Array(level.difficulty)
|
each i in Array(level.difficulty)
|
||||||
|
|
|
@ -54,8 +54,45 @@ module.exports = class LadderHomeView extends RootView
|
||||||
context.campaigns = campaigns
|
context.campaigns = campaigns
|
||||||
context
|
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'
|
name: 'Criss-Cross'
|
||||||
difficulty: 5
|
difficulty: 5
|
||||||
|
@ -101,5 +138,6 @@ arenas = [
|
||||||
]
|
]
|
||||||
|
|
||||||
campaigns = [
|
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}
|
||||||
]
|
]
|
||||||
|
|
Reference in a new issue