musique et bruitage rangés, crédit en train d'être fait
This commit is contained in:
parent
7c375a2922
commit
83ff5a79fe
|
@ -1,10 +1,17 @@
|
||||||
MUSIQUE :
|
MUSIQUE :
|
||||||
|
|
||||||
menu pause :
|
Crédits:
|
||||||
House
|
House
|
||||||
Bensound
|
Bensound
|
||||||
"Royalty Free Music from Bensound" : https://www.bensound.com/royalty-free-music/track/house
|
"Royalty Free Music from Bensound" : https://www.bensound.com/royalty-free-music/track/house
|
||||||
|
|
||||||
|
|
||||||
|
Menu pause :
|
||||||
|
|
||||||
|
Metre - Concentric
|
||||||
|
Attribution-NonCommercial 4.0 International License.
|
||||||
|
https://www.freemusicarchive.org/music/Metre/kinetic/concentric
|
||||||
|
|
||||||
menu principal :
|
menu principal :
|
||||||
|
|
||||||
Deflector
|
Deflector
|
||||||
|
|
Binary file not shown.
|
@ -56,8 +56,8 @@ public class Arrow extends EntityQuad {
|
||||||
|
|
||||||
if (!preview) {
|
if (!preview) {
|
||||||
|
|
||||||
arrowLandedSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/TOONTwang_Plante cartoon 6 (ID 1955)_LS.mp3"));
|
arrowLandedSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/effects/arrow_landed.mp3"));
|
||||||
arrowHitSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/VOXScrm_Cri wilhelm (ID 0477)_LS.wav"));
|
arrowHitSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/effects/player_death.wav"));
|
||||||
|
|
||||||
texture = new ArrayList<>();
|
texture = new ArrayList<>();
|
||||||
String path = "core/assets/arrow" + MathUtils.random(2);
|
String path = "core/assets/arrow" + MathUtils.random(2);
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class Bow extends Actor {
|
||||||
private boolean aimAssist = false;
|
private boolean aimAssist = false;
|
||||||
private boolean pressed = false;
|
private boolean pressed = false;
|
||||||
private float angle;
|
private float angle;
|
||||||
private Sound shotSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/SWSH_Whoosh 3 (ID 1795)_LS.mp3"));
|
private Sound shotSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/effects/arrow_shot.mp3"));
|
||||||
private Vector2 anchor = new Vector2();
|
private Vector2 anchor = new Vector2();
|
||||||
private Vector2 aim = new Vector2();
|
private Vector2 aim = new Vector2();
|
||||||
|
|
||||||
|
|
61
core/src/sagittarius/view/CreditScreen.java
Normal file
61
core/src/sagittarius/view/CreditScreen.java
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
package sagittarius.view;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.Gdx;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.InputEvent;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener;
|
||||||
|
import com.kotcrab.vis.ui.VisUI;
|
||||||
|
import com.kotcrab.vis.ui.widget.VisTable;
|
||||||
|
import com.kotcrab.vis.ui.widget.VisTextButton;
|
||||||
|
|
||||||
|
import sagittarius.SagittariusGame;
|
||||||
|
|
||||||
|
public class CreditScreen extends BaseScreen {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
|
||||||
|
// A music is played
|
||||||
|
if (!SagittariusGame.disableMusic){
|
||||||
|
|
||||||
|
SagittariusGame.music.stop();
|
||||||
|
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/music/credit_music.mp3"));
|
||||||
|
SagittariusGame.music.setLooping(true);
|
||||||
|
SagittariusGame.music.play();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Gdx.input.setInputProcessor(uiStage);
|
||||||
|
|
||||||
|
// Table creation
|
||||||
|
VisTable table = new VisTable(true);
|
||||||
|
table.setFillParent(true);
|
||||||
|
uiStage.addActor(table);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// go back button
|
||||||
|
VisTextButton returnButton = new VisTextButton("Go Back");
|
||||||
|
returnButton.addListener(new ActorGestureListener() {
|
||||||
|
@Override
|
||||||
|
public void tap(InputEvent event, float x, float y, int count, int button) {
|
||||||
|
super.tap(event, x, y, count, button);
|
||||||
|
SagittariusGame.setActiveScreen( new StartScreen() );
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
table.add(returnButton).width(150);
|
||||||
|
table.row();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(float dt) {
|
||||||
|
// nothing (?)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void dispose() {
|
||||||
|
VisUI.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -51,7 +51,7 @@ public class GameScreen extends BaseScreen implements InputProcessor {
|
||||||
if (!SagittariusGame.disableMusic){
|
if (!SagittariusGame.disableMusic){
|
||||||
|
|
||||||
SagittariusGame.music.stop();
|
SagittariusGame.music.stop();
|
||||||
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/HMO-MercuryCity.mp3"));
|
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/music/game_music.mp3"));
|
||||||
SagittariusGame.music.setLooping(true);
|
SagittariusGame.music.setLooping(true);
|
||||||
SagittariusGame.music.play();
|
SagittariusGame.music.play();
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class ResumeScreen extends BaseScreen {
|
||||||
|
|
||||||
if (!SagittariusGame.disableMusic){
|
if (!SagittariusGame.disableMusic){
|
||||||
SagittariusGame.music.stop();
|
SagittariusGame.music.stop();
|
||||||
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/Metre - Concentric.mp3"));
|
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/music/resumeMenu_music.mp3"));
|
||||||
SagittariusGame.music.setLooping(true);
|
SagittariusGame.music.setLooping(true);
|
||||||
SagittariusGame.music.play();
|
SagittariusGame.music.play();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class SettingsScreen extends BaseScreen {
|
||||||
|
|
||||||
if (!SagittariusGame.disableMusic){
|
if (!SagittariusGame.disableMusic){
|
||||||
SagittariusGame.music.stop();
|
SagittariusGame.music.stop();
|
||||||
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/Metre - Concentric.mp3"));
|
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/music/resumeMenu_music.mp3"));
|
||||||
SagittariusGame.music.setLooping(true);
|
SagittariusGame.music.setLooping(true);
|
||||||
SagittariusGame.music.play();
|
SagittariusGame.music.play();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,13 +18,13 @@ public class StartScreen extends BaseScreen {
|
||||||
if (!SagittariusGame.disableMusic){
|
if (!SagittariusGame.disableMusic){
|
||||||
if ( SagittariusGame.music != null ){
|
if ( SagittariusGame.music != null ){
|
||||||
SagittariusGame.music.stop();
|
SagittariusGame.music.stop();
|
||||||
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/Ghostrifter-Deflector.mp3"));
|
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/music/mainMenu_music.mp3"));
|
||||||
SagittariusGame.music.setLooping(true);
|
SagittariusGame.music.setLooping(true);
|
||||||
SagittariusGame.music.play();
|
SagittariusGame.music.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/Ghostrifter-Deflector.mp3"));
|
SagittariusGame.music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/music/mainMenu_music.mp3"));
|
||||||
SagittariusGame.music.setLooping(true);
|
SagittariusGame.music.setLooping(true);
|
||||||
SagittariusGame.music.play();
|
SagittariusGame.music.play();
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,16 @@ public class StartScreen extends BaseScreen {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
VisTextButton creditButton = new VisTextButton("Credits");
|
||||||
|
creditButton.addListener(new ActorGestureListener() {
|
||||||
|
@Override
|
||||||
|
public void tap(InputEvent event, float x, float y, int count, int button) {
|
||||||
|
super.tap(event, x, y, count, button);
|
||||||
|
SagittariusGame.setActiveScreen( new CreditScreen() );
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Quit button
|
// Quit button
|
||||||
VisTextButton quitButton = new VisTextButton("Exit");
|
VisTextButton quitButton = new VisTextButton("Exit");
|
||||||
quitButton.addListener(new ActorGestureListener() {
|
quitButton.addListener(new ActorGestureListener() {
|
||||||
|
@ -72,6 +82,8 @@ public class StartScreen extends BaseScreen {
|
||||||
table.row();
|
table.row();
|
||||||
table.add(settingsButton).width(150);
|
table.add(settingsButton).width(150);
|
||||||
table.row();
|
table.row();
|
||||||
|
table.add(creditButton).width(150);
|
||||||
|
table.row();
|
||||||
table.add(quitButton).width(150);
|
table.add(quitButton).width(150);
|
||||||
table.row();
|
table.row();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue