-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTemplate.java
More file actions
34 lines (27 loc) · 904 Bytes
/
Template.java
File metadata and controls
34 lines (27 loc) · 904 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
import java.awt.Color;
import java.awt.event.KeyEvent;
class Template
{
// Main Method
public static void main(String[] args)
{
SJGL game = new SJGL("SJGL Template by @TokyoEdtech");
// game.setBackgroundColor(Color.BLACK);
// Create Background Sprites
// Sprite spriteName = new Sprite(x, y, "image.png");
// game.addBackgroundSprite(spriteName);
// Create Sprites
// Sprite spriteName = new Sprite(x, y, "image.png");
// game.addSprite(spriteName);
// Create sounds
// Sound explosion = new Sound("sound.wav");
// Create labels
// Label labelName = new Label("text", x, y);
// game.addLabel(labelName);
// Main Game Loop
while(true)
{
// Your Game Code Goes Here
}
}
}