-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJCVJ2012.pde
47 lines (36 loc) · 1.04 KB
/
JCVJ2012.pde
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
46
/**
* VanJam2012
* Double Impact
* Ryan Lester, Josh Raab, Chris Hernandez, Young Neil, Calvin Hu
*/
import hermes.*;
import hermes.hshape.*;
import hermes.animation.*;
import hermes.physics.*;
import hermes.postoffice.*;
import static hermes.HermesMath.*;
import static hermes.postoffice.POConstants.*;
///////////////////////////////////////////////////
// CONSTANTS
///////////////////////////////////////////////////
/**
* Constants should go up here
* Making more things constants makes them easier to adjust and play with!
*/
static final int WINDOW_WIDTH = 1280;
static final int WINDOW_HEIGHT = 960;
World currentWorld;
///////////////////////////////////////////////////
// PAPPLET
///////////////////////////////////////////////////
void setup() {
size(WINDOW_WIDTH, WINDOW_HEIGHT);
Hermes.setPApplet(this);
animSetup();
currentWorld = new LevelPvPGoons();
//Important: don't forget to add setup to TemplateWorld!
currentWorld.start(); // this should be the last line in setup() method
}
void draw() {
currentWorld.draw();
}