-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameLluviaMenu.java
More file actions
45 lines (33 loc) · 797 Bytes
/
Copy pathGameLluviaMenu.java
File metadata and controls
45 lines (33 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package puppy.code;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class GameLluviaMenu extends Game {
private SpriteBatch batch;
private BitmapFont font;
private int higherScore;
public void create() {
batch = new SpriteBatch();
font = new BitmapFont();
this.setScreen(new MainMenuScreen(this));
}
public void render() {
super.render();
}
public void dispose() {
batch.dispose();
font.dispose();
}
public SpriteBatch getBatch() {
return batch;
}
public BitmapFont getFont() {
return font;
}
public int getHigherScore() {
return higherScore;
}
public void setHigherScore(int higherScore) {
this.higherScore = higherScore;
}
}