Fixed a sound bugg and added a new load bar.

This commit is contained in:
Ziver Koc 2007-04-30 15:17:15 +00:00
parent 88fcd15266
commit 7aa445f694
8 changed files with 11 additions and 12 deletions

View file

@ -22,8 +22,6 @@ public class LWJGLGameWindow {
private static Camera cam;
// The framerate
private int fps;
// If fullscreen
private boolean fullscreen;
// The title
private String title;
// The fps calculator
@ -64,7 +62,6 @@ public class LWJGLGameWindow {
LWJGLGameWindow.width = width;
LWJGLGameWindow.height = height;
this.fps = fps;
this.fullscreen = fullscreen;
this.title = title;
MultiPrintStream.makeInstance(new MultiPrintStream("log.txt"));
@ -90,7 +87,6 @@ public class LWJGLGameWindow {
public void createWindow(DisplayMode dm, boolean fullscreen){
LWJGLGameWindow.width = dm.getWidth();
LWJGLGameWindow.height = dm.getHeight();
this.fullscreen = fullscreen;
MultiPrintStream.makeInstance(new MultiPrintStream("log.txt"));
try {

View file

@ -97,7 +97,7 @@ public class BitmapProgressBar extends Entity{
if(progress != null){
progress.setLocation(new Vector3f(
(LWJGLGameWindow.getWidth()/2)-progress.getSize().getX(),
(LWJGLGameWindow.getHeight()/2)+3,0.0f));
(LWJGLGameWindow.getHeight()/2),0.0f));
}
if(background != null){
background.setLocation(getLocation());
@ -200,7 +200,7 @@ public class BitmapProgressBar extends Entity{
if(progress != null){
progress.setLocation(new Vector3f(
getLocation().getX()-progress.getSize().getX()+(progress.getSize().getX()*procent),
getLocation().getY()+6,0.0f));
getLocation().getY(),0.0f));
progress.render();
}
if(bar != null) bar.render();

View file

@ -279,4 +279,10 @@ public class SoundManager {
}
return instance;
}
public void clear(){
for(int i=0; i<sources.size() ;i++){
stopSound(i);
}
}
}