-
Notifications
You must be signed in to change notification settings - Fork 1
Music
Game sound effects and music allow players to integrate into the game world and resonate with their emotions. Sound effects don't stop there. If there is no superb game sound effects, no matter how good the graphics skills can not make the game performance out of mediocrity, it is not attractive enough to the players. Excellent game sound design will affect the performance quality and entertainment interactivity of a game, so game sound design is no longer a foil for the game screen, it is the best supplement to the game connotation and a powerful driving force for game culture.
Call 'playMusic' to add music or sound:
package com.deco2800.game.music;
import com.badlogic.gdx.audio.Music;
import com.deco2800.game.services.ServiceLocator;
import com.deco2800.game.services.ResourceService;
public class MusicStuff {
public static void playMusic(String path, boolean loop) {
Music music = ServiceLocator.getResourceService().getAsset(path, Music.class);
music.setLooping(loop);
music.setVolume(0.3f);
music.play();
}
}
Used to store all the music effects that need to be used
private static final String backgroundMusic = "sounds/VillageBGM_2.mp3"; // Example
private static final String movementMusic = "sounds/Movement_sound.mp3"; // Example
private static final String[] forestMusic = {backgroundMusic, movementMusic};
-
Call 'VillageBGM_2.mp3' when game start and set it loop playback, so that when the game starts, the music can be automatically looped. (In ForestGameArea.java)
-
Call 'Movement_sound.mp3' when the move button is pressed, so that every time we move we can hear the movement sound. (In KeyboardPlayerInputComponent.java)
If we need to change the selected music, you only need to simply switch the music path.
- 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