2014-11-02 17:51:01 -05:00
|
|
|
.left-cap
|
|
|
|
.right-cap
|
|
|
|
.center-chain
|
|
|
|
.right-chain
|
|
|
|
.wood-background
|
Real-time multiplayer initial commit
Simple matchmaking, synchronous multiplayer PVP, flags!
Rough matchmaking is under the game menu multiplayer tab, for ladder
games only. After creating a 2-person game there, you can exit that
modal and real-time cast to play against each other.
If you’re the first person to cast, you’ll sit at the real-time level
playback view waiting until the other player casts. When they do, you
both should start the real-time playback (and start placing flags like
crazy people).
If in a multiplayer session, the real-time simulation runs the players’
code against each other. Your multiplayer opponent’s name should be up
near the level name.
Multiplayer sessions are stored completely in Firebase for now, and
removed if both players leave the game. There’s plenty of bugs,
synchronization issues, and minimal polish to add before we push it to
master.
2014-08-29 02:34:07 -04:00
|
|
|
|
2014-11-02 17:51:01 -05:00
|
|
|
.levels-link-area
|
|
|
|
a.levels-link(href=homeLink || "/")
|
|
|
|
.glyphicon.glyphicon-play
|
|
|
|
span(data-i18n="nav.play").home-text Levels
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-11-18 12:01:04 -05:00
|
|
|
if isMultiplayerLevel
|
|
|
|
.multiplayer-area-container
|
|
|
|
.multiplayer-area
|
|
|
|
.multiplayer-label(data-i18n="play_level.control_bar_multiplayer")
|
|
|
|
if multiplayerStatus
|
|
|
|
.multiplayer-status= multiplayerStatus
|
|
|
|
else
|
|
|
|
.multiplayer-status(data-i18n="play_level.control_bar_join_game")
|
|
|
|
else
|
|
|
|
.level-name-area-container
|
|
|
|
.level-name-area
|
|
|
|
.level-label(data-i18n="play_level.level")
|
2015-01-16 15:50:10 -05:00
|
|
|
.level-name(title=difficultyTitle || "")
|
|
|
|
span= worldName
|
|
|
|
if levelDifficulty
|
|
|
|
sup.level-difficulty= levelDifficulty
|
Real-time multiplayer initial commit
Simple matchmaking, synchronous multiplayer PVP, flags!
Rough matchmaking is under the game menu multiplayer tab, for ladder
games only. After creating a 2-person game there, you can exit that
modal and real-time cast to play against each other.
If you’re the first person to cast, you’ll sit at the real-time level
playback view waiting until the other player casts. When they do, you
both should start the real-time playback (and start placing flags like
crazy people).
If in a multiplayer session, the real-time simulation runs the players’
code against each other. Your multiplayer opponent’s name should be up
near the level name.
Multiplayer sessions are stored completely in Firebase for now, and
removed if both players leave the game. There’s plenty of bugs,
synchronization issues, and minimal polish to add before we push it to
master.
2014-08-29 02:34:07 -04:00
|
|
|
|
2014-11-02 17:51:01 -05:00
|
|
|
.buttons-area
|
2014-08-08 14:36:41 -04:00
|
|
|
|
2014-11-02 17:51:01 -05:00
|
|
|
button.btn.btn-inverse#game-menu-button(title="Show game menu")
|
|
|
|
.hamburger
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.game-menu-text(data-i18n="play_level.game_menu") Game Menu
|
|
|
|
|
|
|
|
if spectateGame
|
|
|
|
button.btn.btn-xs.btn-inverse.banner#next-game-button(title="Next Game", data-i18n="play_level.next-game") Next game!
|
|
|
|
|
|
|
|
button.btn.btn-xs.btn-primary.banner#level-done-button(data-i18n="play_level.done") Done
|
2014-11-11 11:49:16 -05:00
|
|
|
|
|
|
|
if me.get('anonymous')
|
2014-11-29 11:54:08 -05:00
|
|
|
button.btn.btn-xs.btn-primary.banner#control-bar-sign-up-button(data-toggle='coco-modal', data-target='core/AuthModal', data-i18n="signup.sign_up")
|