Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/Java/MinecraftPlatformer/src/de/craftix/game/Game.java
2022-09-04 12:45:01 +02:00

31 lines
830 B
Java

package de.craftix.game;
import javax.swing.*;
import java.awt.*;
public class Game extends JFrame {
public static final int width = 600;
public static final int height = 400;
public static final int BLOCKSIZE = 16;
public static final int FPS = 60;
private static final long serialVersionUID = 1L;
public static Spritesheed terrain = new Spritesheed(5, ImageLoader.load("img/terrain.png"), 16, 16);
public Game(){
super("Minecraft Sky Survival Platformer of Awesomeness");
setLayout(new BorderLayout());
add(new GamePanel(), BorderLayout.CENTER);
pack();
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setVisible(true);
}
public static void main(String[] args) {
new Game();
}
}