Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package first;
- import org.newdawn.slick.*;
- public class This extends BasicGame
- {
- static boolean haha = false;
- int timeelapsed = 0;
- public This()
- {
- super("Not really.");
- }
- @Override
- public void init(GameContainer gc) throws SlickException
- {
- }
- @Override
- public void update(GameContainer gc, int delta) throws SlickException
- {
- timeelapsed += delta;
- if (timeelapsed >= 5000){
- haha = true;
- timeelapsed = 0;
- }
- }
- @Override
- public void render(GameContainer gc, Graphics g) throws SlickException
- {
- g.setBackground(Color.white);
- g.setColor(Color.black);
- if (haha)
- g.drawString("This is not the Game you are looking for", 100, 100);
- }
- public static void main(String[] args) throws SlickException
- {
- AppGameContainer app = new AppGameContainer(new This());
- app.setDisplayMode(800, 600, false);
- app.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement