Skip to content

Commit

Permalink
Converted sounds to Ogg Vorbis.
Browse files Browse the repository at this point in the history
Added GTGE add-ons for Ogg Vorbis playback.
Made some images smaller.
  • Loading branch information
stevygee committed Mar 15, 2012
1 parent 89ce508 commit 29cdb9e
Show file tree
Hide file tree
Showing 52 changed files with 46 additions and 25 deletions.
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ install:

clone repo
checkout gtge/trunk/GTGE to /gtge/
DL & copy GTGE_add_ons.jar, jogg-0.0.7.jar, jorbis-0.0.15.jar to /lib/
set up workspace in root
import eclipse project java2dEtoth
create eclipse project gtge
3 changes: 3 additions & 0 deletions java2dEtoth/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry combineaccessrules="false" kind="src" path="/gtge"/>
<classpathentry kind="lib" path="lib/GTGE_add_ons.jar"/>
<classpathentry kind="lib" path="lib/jogg-0.0.7.jar"/>
<classpathentry kind="lib" path="lib/jorbis-0.0.15.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
4 changes: 2 additions & 2 deletions java2dEtoth/deploy/play.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<body>

<applet code="game.EtothGameApplet.class"
archive="ethos_assets.jar,ethos.jar,goldenT.jar"
archive="goldenT.jar,GTGE_add_ons.jar,jogg-0.0.7.jar,jorbis-0.0.15.jar,ethos_assets.jar,ethos.jar"
width=800 height=600>
</applet>

<!--
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
var attributes = {code:'game.EtothGameApplet.class',
archive:'ethos_assets.jar,ethos.jar,goldenT.jar',
archive:'goldenT.jar,GTGE_add_ons.jar,jogg-0.0.7.jar,jorbis-0.0.15.jar,ethos_assets.jar,ethos.jar',
width:710, height:540} ;
var parameters = {fontSize:16} ;
var version = '1.6' ;
Expand Down
Binary file removed java2dEtoth/img/charmenu/menu_gross.gif
Binary file not shown.
Binary file removed java2dEtoth/img/charmenu/menu_gross.png
Binary file not shown.
Binary file modified java2dEtoth/img/fight/fight_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified java2dEtoth/img/fight/fight_bg_bad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified java2dEtoth/img/fight/fight_bg_midbad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified java2dEtoth/img/fight/fight_bg_schloss.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed java2dEtoth/img/fight/fight_bg_schloss_new.jpg
Binary file not shown.
Binary file added java2dEtoth/sound/arrow.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/arrow.wav
Binary file not shown.
Binary file added java2dEtoth/sound/crowd.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/crowd.wav
Binary file not shown.
Binary file added java2dEtoth/sound/fireball.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/fireball.wav
Binary file not shown.
Binary file added java2dEtoth/sound/fireball_king.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/fireball_king.wav
Binary file not shown.
Binary file added java2dEtoth/sound/gegnertreffer.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/gegnertreffer.wav
Binary file not shown.
Binary file added java2dEtoth/sound/grasboden.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/grasboden.wav
Binary file not shown.
Binary file added java2dEtoth/sound/heilung.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/heilung.wav
Binary file not shown.
Binary file added java2dEtoth/sound/item_found.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/item_found.wav
Binary file not shown.
Binary file added java2dEtoth/sound/laughKing.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/laughKing.wav
Binary file not shown.
Binary file removed java2dEtoth/sound/magic.wav
Binary file not shown.
Binary file added java2dEtoth/sound/murmur.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/murmur.wav
Binary file not shown.
Binary file removed java2dEtoth/sound/steinboden.wav
Binary file not shown.
Binary file removed java2dEtoth/sound/stoenen3.wav
Binary file not shown.
Binary file added java2dEtoth/sound/stoenenKoenig.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/stoenenKoenig.wav
Binary file not shown.
Binary file added java2dEtoth/sound/stone.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/stone.wav
Binary file not shown.
Binary file removed java2dEtoth/sound/tafel.wav
Binary file not shown.
Binary file added java2dEtoth/sound/treffersound.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/treffersound.wav
Binary file not shown.
Binary file added java2dEtoth/sound/verwandlung.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/verwandlung.wav
Binary file not shown.
Binary file added java2dEtoth/sound/wind.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/wind.wav
Binary file not shown.
Binary file removed java2dEtoth/sound/windsturm.wav
Binary file not shown.
Binary file added java2dEtoth/sound/wizzardtafeln.ogg
Binary file not shown.
Binary file removed java2dEtoth/sound/wizzardtafeln.wav
Binary file not shown.
11 changes: 11 additions & 0 deletions java2dEtoth/src/game/EtothGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import com.golden.gamedev.Game;
import com.golden.gamedev.GameLoader;
import com.golden.gamedev.engine.audio.JOrbisOggRenderer;
import com.golden.gamedev.object.GameFont;

public class EtothGame extends Game {
Expand Down Expand Up @@ -195,6 +196,16 @@ public boolean init() {
return false;
}

protected void initEngine() {
super.initEngine();

// set sound effect to use ogg
bsSound.setBaseRenderer(new JOrbisOggRenderer());

// set music to use ogg
bsMusic.setBaseRenderer(new JOrbisOggRenderer());
}

private void loadFont() {
Font font;
Font andyFont;
Expand Down
30 changes: 18 additions & 12 deletions java2dEtoth/xml/gamesounds.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<sounds>
<sound name="info">wizzardtafeln.wav</sound>
<sound name="findItem">wizzardtafeln.wav</sound>
<sound name="npcTalk">murmur.wav</sound>
<sound name="walkGras">grasboden.wav</sound>
<sound name="gameWin">crowd.wav</sound>
<sound name="change">verwandlung.wav</sound>
<sound name="itemFound">item_found.wav</sound>
<sound name="heilung">heilung.wav</sound>
<sound name="hit">treffersound.wav</sound>
<sound name="projectileStone">stone.wav</sound>
<sound name="projectileWind">wind.wav</sound>
<sound name="projectileFire">fireball.wav</sound>
<sound name="info">wizzardtafeln.ogg</sound>
<sound name="findItem">wizzardtafeln.ogg</sound>
<sound name="npcTalk">murmur.ogg</sound>
<sound name="walkGras">grasboden.ogg</sound>
<sound name="gameWin">crowd.ogg</sound>
<sound name="change">verwandlung.ogg</sound>
<sound name="itemFound">item_found.ogg</sound>
<sound name="heilung">heilung.ogg</sound>
<sound name="hit">treffersound.ogg</sound>
<sound name="projectileStone">stone.ogg</sound>
<sound name="projectileWind">wind.ogg</sound>
<sound name="projectileFire">fireball.ogg</sound>
<sound name="projectileArrow">arrow.ogg</sound>
<sound name="projectileKing">fireball_king.ogg</sound>
<sound name="laughKing">laughKing.ogg</sound>
<sound name="gegnertreffer">gegnertreffer.ogg</sound>
<sound name="kingHit">stoenenKoenig.ogg</sound>

</sounds>
4 changes: 2 additions & 2 deletions java2dEtoth/xml/maps/enteredcastle_bad.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<map>
<player startX="3" startY="3" />
<enterMapSound path="laughKing.wav" />
<background path="fight_bg_schloss_new.jpg" />
<enterMapSound path="laughKing" />
<background path="fight_bg_schloss.jpg" />
<doors>
<!-- TODO: sollen doors auch immer eine info haben? -->
<door id="0" x="8" y="14" direction="UP" target="map_castle_end.xml" targetId="1" />
Expand Down
2 changes: 1 addition & 1 deletion java2dEtoth/xml/maps/map_castle_end.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<map>
<player startX="16" startY="3" />
<background path="fight_bg_bad.jpg" />
<enterMapSound path="laughKing.wav" />
<enterMapSound path="laughKing" />
<doors>
<door id="0" x="19" y="3" direction="left" target="map_cave_end.xml" targetId="2" />

Expand Down
16 changes: 8 additions & 8 deletions java2dEtoth/xml/npcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
fightName="opponent"
fightImgPath="gegner_200"
fightProjPath="speer_200.gif"
hitSound="gegnertreffer.wav"
projectileSound="arrow.wav"
hitSound="gegnertreffer"
projectileSound="projectileArrow"
/>
<npc
evil="false"
Expand All @@ -29,8 +29,8 @@
fightName="badking"
fightImgPath="koenig_200"
fightProjPath="koenigGeschoss_200.png"
hitSound="stoenenKoenig.wav"
projectileSound="fireball_king.wav"
hitSound="kingHit"
projectileSound="projectileKing"
/>
<npc
evil="false"
Expand All @@ -51,8 +51,8 @@
fightName="opponentblack"
fightImgPath="gegner_black_200"
fightProjPath="speer2_200.gif"
hitSound="gegnertreffer.wav"
projectileSound="arrow.wav"
hitSound="gegnertreffer"
projectileSound="projectileArrow"
/>
<npc
evil="false"
Expand All @@ -79,8 +79,8 @@
fightName="cavemonster"
fightImgPath="schlange_200"
fightProjPath="zaehne_200.gif"
hitSound="gegnertreffer.wav"
projectileSound="arrow.wav"
hitSound="gegnertreffer"
projectileSound="projectileArrow"
/>


Expand Down

0 comments on commit 29cdb9e

Please sign in to comment.