Add a word that waits for a game to finish running
parent
6a501d4aa3
commit
22faa12205
|
@ -74,6 +74,9 @@ M: game-world apply-world-attributes
|
||||||
: start-game ( attributes -- game-world )
|
: start-game ( attributes -- game-world )
|
||||||
f swap open-window* ;
|
f swap open-window* ;
|
||||||
|
|
||||||
|
: wait-game ( attributes -- game-world )
|
||||||
|
f swap open-window* dup promise>> ?promise drop ;
|
||||||
|
|
||||||
: define-attributes-word ( word tuple -- )
|
: define-attributes-word ( word tuple -- )
|
||||||
[ name>> "-attributes" append create-in ] dip define-constant ;
|
[ name>> "-attributes" append create-in ] dip define-constant ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue