Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ProjectWaitWhile extends EGGame {
- public ProjectWaitWhile(EGVersion version, String dataFolderName, LwjglApplicationConfiguration config) {
- super(version, dataFolderName, config);
- }
- @Override
- protected void init() {
- GameResource.add("ProjectWaitWhile-Atlas", new TextureAtlas(Gdx.files.internal("ProjectWaitWhile.pack")));
- GameResource.add("ProjectWaitWhile-Json", Gdx.files.internal("ProjectWaitWhile.json"));
- GameResource.add("ProjectWaitWhile-Skin", new Skin((FileHandle) GameResource.get("ProjectWaitWhile-Json"),
- (TextureAtlas) GameResource.get("ProjectWaitWhile-Atlas")));
- GameStateManager.add("screenMenu", new GameStateMenu());
- GameStateManager.add("screenLoadGame", new GameStateLoadGame());
- setGameState(GameStateManager.get("screenMenu"));
- Gdx.graphics.setDisplayMode(100, 100, false); // Test 1
- Gdx.graphics.setDisplayMode(1280, 720, false); // Test 2
- // I can still resize the window.
- }
- @Override
- protected void updateGame() {
- getGameState().update();
- }
- @Override
- protected void renderGame() {
- getGameState().render();
- }
- public static void main(String... args) {
- LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
- config.title = "Project Wait a While";
- config.width = 1280;
- config.height = 720;
- config.resizable = true;
- EGVersion version = new EGVersion(0, 0, 1, DevelopmentStatus.Indev);
- new ProjectWaitWhile(version, null, config);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment