-
Notifications
You must be signed in to change notification settings - Fork 1
Ending Menu Improvement
Aryawwww edited this page Oct 19, 2022
·
2 revisions
Since the background music only exists in the main interface of the game, there is no music on the judgment screen when the game is successful. So we designed the music of the judgment interface to play different music according to the different wins and losses of the game.
In EndingMenuAction.java
private static final String failMusic = "sounds/lose.mp3";
private static final String successMusic = "sounds/win.mp3";
private static final String[] endingMusic = {successMusic, failMusic};
private void playMusic() {
Music music;
if (EndingMenuDisplay.isJudge()){
music = ServiceLocator.getResourceService().getAsset(successMusic, Music.class);
} else {
music = ServiceLocator.getResourceService().getAsset(failMusic, Music.class);
}
music.setLooping(false);
music.setVolume(0.3f);
music.play();
}
private void loadAssets() {
logger.debug("Loading assets");
ResourceService resourceService = ServiceLocator.getResourceService();
resourceService.loadMusic(endingMusic);
while (!resourceService.loadForMillis(10)) {
// This could be upgraded to a loading screen
//logger.info("Loading... {}%", resourceService.getProgress());
}}
private void unloadAssets() {
logger.debug("Unloading assets");
ResourceService resourceService = ServiceLocator.getResourceService();
resourceService.unloadAssets(endingMusic);
}
@Override
public void dispose() {
super.dispose();
ServiceLocator.getResourceService().getAsset(failMusic, Music.class).stop();
this.unloadAssets();
}
In EndingMenuDisplay.java
private static boolean judge = true;
private static final String winMusic = "sounds/win.mp3";
private static final String loseMusic = "sounds/lose.mp3";
- Uniform Pixel Grid Resolution
- Storyline
- Instruction
- NPC info
- NPC Communication Script
- Inventory-System-and-Consumables
- Storyline User Test
- Traitor Clues
- Game Characters
- Player Profile User Test
- Player Eviction Menu Sprint1: User survey (Team 7)
- Player Eviction Menu Sprint2: User survey (Team 7)
- Sprint3 - Win/lose Condition: User survey (Team 7)
- Sprint4 - Polishing-tasks: User survey (Team 7)
- Transition Animation/Special Effects/Sound Effects: Feature Overviews
- Transition Animation and Effects: Design Process & Guideline
- Sprint 4 User Testing
- Transition Animation & Effect: Code Guideline-Sprint4
- Sound effect when players complete npc tasks and hover over npc cards
- Fixing the clue bug
- Music Test
- Player Eviction Menu: Design Process & Guideline
- Player Eviction Menu (Feature Overviews)
- Player Eviction Menu: Code Guideline - Sprint1
- Sprint 1 User Testing
- Detailed Eviction Card: Design Process & Guideline
- Detailed Eviction Card: Feature Overviews
- Sprint 2 User Testing
- Player Eviction Menu: Code Guideline - Sprint2
- Sprint 2 Inventory System and Consumables Items User Testing
- Sprint 2 Inventory System and Consumables Items Functionality
- NPC interaction testing plan sprint3
- NPC interaction testing results sprint3
- NPC Dialogue Scripts
- Code Guideline
- Win/lose Condition: Design Process & Guideline
- Win/lose Condition: Feature Overviews
- Sprint 3 User Testing
- Win/lose condition: Code Guideline - Sprint3
- Enemy List
- User Testing 1: Enemy Image Filter
- User Testing 2: Enemy Animation and AI
- User Testing 3: Basic Attack