package
javagame;
import
org.newdawn.slick.*;
import
org.newdawn.slick.state.*;
import
org.lwjgl.input.Mouse;
public
class
Menu extends
BasicGameState
{
Image playNow;
Image exitGame;
public
Menu(int
State)
{
}
public
void
init(GameContainer gc,StateBasedGame sbg) throws
SlickException
{
playNow
= new
Image("res/playNow.png");
exitGame
= new
Image("res/exitGame.png");
}
public
void
render(GameContainer gc,StateBasedGame sbg, Graphics g) throws
SlickException
{
g.drawString("Welcome
to My RPG Game",100,50);
playNow.draw(100,100);
exitGame.draw(100,200);
}
public
void
update(GameContainer gc,StateBasedGame sbg, int
delta) throws
SlickException
{
}
public
int
getID()
{
return
0;
}
}

沒有留言:
張貼留言