-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a190f4b
commit 3fd2948
Showing
4 changed files
with
46 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
package com.mygdx.game; | ||
|
||
import com.badlogic.gdx.Game; | ||
import com.badlogic.gdx.graphics.OrthographicCamera; | ||
import com.badlogic.gdx.graphics.g2d.SpriteBatch; | ||
|
||
public class Main extends Game { | ||
public SpriteBatch batch; | ||
public OrthographicCamera camera; | ||
public Fonts fonts; | ||
public Background background; | ||
|
||
public void create() { | ||
batch = new SpriteBatch(); | ||
|
||
camera = new OrthographicCamera(); | ||
camera.setToOrtho(false, 800f, 600f); | ||
|
||
fonts = new Fonts(); | ||
|
||
background = new Background(); | ||
|
||
this.setScreen(new MainMenuScreen(this)); | ||
} | ||
|
||
@Override | ||
public void render() { | ||
super.render(); | ||
} | ||
|
||
@Override | ||
public void dispose() { | ||
batch.dispose(); | ||
fonts.dispose(); | ||
background.dispose(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters