mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-24 19:59:53 -04:00
Remove hardcoded student ui game dev play instructions
This commit is contained in:
parent
a5f18f88be
commit
2dadc8458c
1 changed files with 1 additions and 19 deletions
|
@ -641,25 +641,7 @@ module.exports = class PlayLevelView extends RootView
|
||||||
# Real-time playback
|
# Real-time playback
|
||||||
onRealTimePlaybackStarted: (e) ->
|
onRealTimePlaybackStarted: (e) ->
|
||||||
@$el.addClass('real-time').focus()
|
@$el.addClass('real-time').focus()
|
||||||
if @level.isType('game-dev')
|
@$('#how-to-play-game-dev-panel').removeClass('hide') if @level.isType('game-dev')
|
||||||
panel = @$('#how-to-play-game-dev-panel')
|
|
||||||
panel.removeClass('hide')
|
|
||||||
# TODO: Remove this once these levels have studentPlayInstructions set.
|
|
||||||
if not @level.get('studentPlayInstructions')
|
|
||||||
lines = switch @level.get('slug')
|
|
||||||
when 'over-the-garden-wall' then ['Watch to see if the peasants are properly protected.']
|
|
||||||
when 'click-gait' then ['Move to each red "X".', 'Click on the screen to move the Knight there.']
|
|
||||||
when 'heros-journey' then ['Move to each red "X".', 'Click on the screen to move the Knight there.']
|
|
||||||
when 'a-maze-ing' then ['Move to the chest of gems.', 'Click on the screen to move the Duelist there.']
|
|
||||||
when 'gemtacular' then ['Move to each of the gems.', 'Click on the screen to move the Captain there.']
|
|
||||||
when 'vorpal-mouse' then ['Slay the ogres.', 'Click on the screen to move the Guardian there.', 'Click on the munchkins to attack them!']
|
|
||||||
when 'crushing-it' then ['Slay the ogres.', 'Click on the screen to move the Goliath there.', 'Click on the munchkins to attack them!']
|
|
||||||
when 'tabula-rasa' then ['Slay any ogres.', 'Collect any coins.', 'Click on the screen to move the Raider there.', 'Click on any munchkins to attack them!']
|
|
||||||
else null
|
|
||||||
if lines
|
|
||||||
html = _.map(lines, (line) -> "<p>#{line}</p>").join('')
|
|
||||||
panel.find('.panel-body').html(html)
|
|
||||||
|
|
||||||
@onWindowResize()
|
@onWindowResize()
|
||||||
|
|
||||||
onRealTimePlaybackEnded: (e) ->
|
onRealTimePlaybackEnded: (e) ->
|
||||||
|
|
Loading…
Add table
Reference in a new issue