Skip to content

Commit

Permalink
💄 demo mode, transparent background by default
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Oct 12, 2021
1 parent 2572cdf commit 9a59c12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drop-game/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Game from './game.js';
import qs from './querystring.js';
import { isBroadcaster, isModerator, twitch } from './twitch.js';

if (qs.demo) document.body.classList.add('demo');

const game = new Phaser.Game({
height: constants.SCREEN_HEIGHT,
physics: {
Expand Down
6 changes: 5 additions & 1 deletion drop-game/static/styles.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
body {
background-color: #555;
background-color: rgba(95, 95, 95, 0);
height: 1080px;
margin: 0;
min-height: 1080px;
overflow: hidden;
padding: 0;
width: 1920px;
}

body.demo {
background-color: #555;
}

0 comments on commit 9a59c12

Please sign in to comment.