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
|
2016-04-15 13:58:52 -04:00
|
|
|
span(data-i18n=me.isSessionless() ? "nav.courses" : (ladderGame ? "general.ladder" : "nav.play")).home-text Levels
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2015-01-31 13:04:02 -05:00
|
|
|
if isMultiplayerLevel && !observing
|
2014-11-18 12:01:04 -05:00
|
|
|
.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 || "")
|
2015-12-03 15:04:42 -05:00
|
|
|
span= (campaignIndex ? campaignIndex + '. ' : '') + worldName.replace('Course: ', '')
|
2015-01-16 15:50:10 -05:00
|
|
|
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
|
|
|
|
2015-01-31 13:04:02 -05:00
|
|
|
if !observing
|
2015-10-13 11:05:47 -04:00
|
|
|
button.btn.btn-inverse#game-menu-button(data-i18n="[title]play_level.show_menu", title="Show game menu")
|
2015-01-31 13:04:02 -05:00
|
|
|
.hamburger
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.game-menu-text(data-i18n="play_level.game_menu") Game Menu
|
2015-10-13 11:05:47 -04:00
|
|
|
|
2014-11-02 17:51:01 -05:00
|
|
|
if spectateGame
|
2015-10-13 11:05:47 -04:00
|
|
|
button.btn.btn-xs.btn-inverse.banner#next-game-button(data-i18n="play_level.next_game") Next game
|
|
|
|
|
2015-01-31 13:04:02 -05:00
|
|
|
if !observing
|
|
|
|
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')
|
2016-02-25 18:24:16 -05:00
|
|
|
button.btn.btn-xs.btn-primary.banner#control-bar-sign-up-button(data-toggle='coco-modal', data-target='core/CreateAccountModal', data-i18n="signup.sign_up")
|