Skip to content

Commit

Permalink
Demo Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregster31 committed Dec 17, 2024
1 parent 79cdcbf commit 38f4407
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"name": "bag",
"path": "./assets/sounds/bag.mp3",
"size": 1,
"volume": 0.2,
"volume": 0.4,
"loop": false
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/states/LevelTransitionState.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class LevelTransitionState extends State {
this.levelLabelY = -this.levelLabelHeight;
this.levelLableTextX = 0;

sounds.play(SoundName.Music3);
// sounds.play(SoundName.Music3);

/**
* Animate the white screen fade-in, then animate a drop-down with the level text.
Expand Down
2 changes: 1 addition & 1 deletion src/states/PlayState.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class PlayState extends State {

enter(parameters = {}) {
matter.World.clear(world, false);
sounds.play(SoundName.Music);
// sounds.play(SoundName.Music);
this.level = LevelMaker.createLevel(parameters.level, parameters.ballColor);

// //! IF YOU NEED TO CARRY BALL WITH MOUSE
Expand Down
4 changes: 2 additions & 2 deletions src/states/ShopState.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export default class ShopState extends State {
super();

// Start the music the very first time showing this state.
sounds.play(SoundName.Music);
// sounds.play(SoundName.Music);
}

enter() {
this.level = LevelMaker.createLevel(0);
}

exit() {
sounds.pause(SoundName.Music);
// sounds.pause(SoundName.Music);
}

update(dt) {
Expand Down
6 changes: 3 additions & 3 deletions src/states/TitleScreenState.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class TitleScreenState extends State {
this.levelHighScores = [100,100,100]

// Start the music the very first time showing this state.
sounds.play(SoundName.Music);
// sounds.play(SoundName.Music);
}

enter(parameters) {
Expand All @@ -67,12 +67,12 @@ export default class TitleScreenState extends State {
if(this.levelHighScores[parameters.level - 1] > parameters.strokes) {
this.levelHighScores[parameters.level - 1] = parameters.strokes
}
sounds.play(SoundName.Music);
// sounds.play(SoundName.Music);
this.startColourTimer();
}

exit() {
sounds.pause(SoundName.Music);
// sounds.pause(SoundName.Music);
}

update(dt) {
Expand Down

0 comments on commit 38f4407

Please sign in to comment.