Fixed bug in looping, some refactoring

master
Ondřej Hruška 11 years ago
parent 1a5ee30a06
commit 3b0713ff3a
  1. 9
      src/mightypork/gamecore/backends/lwjgl/audio/SlickSound.java
  2. 4
      src/mightypork/gamecore/backends/lwjgl/graphics/LwjglGraphicsModule.java

@ -128,6 +128,15 @@ public class SlickSound extends DeferredAudio {
}
@Override
public boolean isActive()
{
if (!isLoaded()) return false;
return sourceID != -1;
}
@Override
public void play(double pitch, double gain, boolean loop, double x, double y, double z)
{

@ -416,14 +416,14 @@ public class LwjglGraphicsModule extends GraphicsModule {
@Override
public DeferredTexture createDeferredTexture(String path)
public DeferredTexture createTextureResource(String path)
{
return new SlickTexture(path);
}
@Override
public DeferredFont createDeferredFont(String path)
public DeferredFont createFontResource(String path)
{
return new LwjglFont(path);
}

Loading…
Cancel
Save