Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package test;
- import org.newdawn.slick.AppGameContainer;
- import org.newdawn.slick.BasicGame;
- import org.newdawn.slick.GameContainer;
- import org.newdawn.slick.Graphics;
- import org.newdawn.slick.Music;
- import org.newdawn.slick.SlickException;
- public class launcher extends BasicGame {
- Music music;
- public launcher(String title) {
- super(title);
- }
- public static void main(String[] args) throws SlickException {
- BasicGame game = new launcher("OGG Streaming Test");
- AppGameContainer container = new AppGameContainer(game);
- container.start();
- }
- @Override
- public void init(GameContainer container) throws SlickException {
- music = new Music("res/flashback4.ogg", true);
- music.play();
- }
- // needed by Basic Game interface
- @Override
- public void render(GameContainer container, Graphics g) throws SlickException {
- }
- // needed by Basic Game interface
- @Override
- public void update(GameContainer container, int delta) throws SlickException {
- }
- }
Add Comment
Please, Sign In to add comment