Don't wait for new game to be sent before defining the character
This commit is contained in:
parent
75417035f6
commit
c05296fda4
1 changed files with 10 additions and 8 deletions
|
@ -111,6 +111,7 @@ function Automaton(async, cache, dom, messaging, screen, session, ui) {
|
||||||
ui.frame('GameInit');
|
ui.frame('GameInit');
|
||||||
messaging.send({tag: 'NewGame'});
|
messaging.send({tag: 'NewGame'});
|
||||||
async.run(
|
async.run(
|
||||||
|
async.parallel(
|
||||||
session.syncGame(),
|
session.syncGame(),
|
||||||
async.bind(
|
async.bind(
|
||||||
askName(),
|
askName(),
|
||||||
|
@ -120,6 +121,7 @@ function Automaton(async, cache, dom, messaging, screen, session, ui) {
|
||||||
askGender,
|
askGender,
|
||||||
set('gender')
|
set('gender')
|
||||||
),
|
),
|
||||||
|
),
|
||||||
async.apply(session.set, {character: character}),
|
async.apply(session.set, {character: character}),
|
||||||
async.apply(screen.clear, 'text')
|
async.apply(screen.clear, 'text')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue