mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
Added multiplayer launch view.
This commit is contained in:
parent
3fa0124d7e
commit
e430a6c2de
3 changed files with 24 additions and 1 deletions
13
app/templates/multiplayer_launch_modal.jade
Normal file
13
app/templates/multiplayer_launch_modal.jade
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h4 March 17th, 2014: Dungeon Arena
|
||||
strong The new way to compete with code
|
||||
|
||||
block modal-body-content
|
||||
ul
|
||||
li Code a hero to support your troops and destroy the enemy base.
|
||||
| Think DotA but with JavaScript.
|
||||
li Rank your code against everyone else's, and climb the ladder as far as you can
|
||||
li Rework and finetune your code to handle every strategy opponents will throw your way.
|
||||
li Roll your own levels and heroes and see how they fare
|
|
@ -1 +0,0 @@
|
|||
require './home_view'
|
11
app/views/multiplayer_view.coffee
Normal file
11
app/views/multiplayer_view.coffee
Normal file
|
@ -0,0 +1,11 @@
|
|||
HomeView = require './home_view'
|
||||
ModalView = require 'views/kinds/ModalView'
|
||||
modalTemplate = require 'templates/multiplayer_launch_modal'
|
||||
|
||||
module.exports = class MultiplayerLaunchView extends HomeView
|
||||
afterInsert: ->
|
||||
super()
|
||||
@openModalView(new MultiplayerLaunchModal())
|
||||
|
||||
class MultiplayerLaunchModal extends ModalView
|
||||
template: modalTemplate
|
Loading…
Reference in a new issue