Skip to content

Commit 0910c76

Browse files
committed
set level background on multiplayer
1 parent dea5a2d commit 0910c76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nodes/Multiplayer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ export default class Multiplayer extends GameNode {
3939
}),
4040
];
4141
for (let [index, player] of this.players.entries()) {
42+
player.onLevelUp = (level) => {
43+
this.background.setGenerator(level.randomQubit);
44+
};
4245
player.onTopOut = () => {
4346
this.outPlayers.push(index);
4447
if (this.outPlayers.length === 2) {

0 commit comments

Comments
 (0)