-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
39 lines (23 loc) · 800 Bytes
/
Copy pathMain.java
File metadata and controls
39 lines (23 loc) · 800 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
import java.awt.Font;
import java.util.Random;
import edu.princeton.cs.introcs.StdDraw;
public class Main extends Scaling{
public static boolean IAStatus = false;
public boolean activScaling=true;
public static double SW = Scaling.scalingFactor()[0];
public static double SH = Scaling.scalingFactor()[1];
public static int X_MAX=(int)(640*SW);
public static int Y_MAX=(int)(360*SH);
public static double WIDTH=0.5f;
public static int debug1 = 1;
public static Titre titre;
public static void main(String[] args)
throws Exception {
StdDraw.setCanvasSize((int)(1280*SW),(int)(720*SH));
StdDraw.setXscale(-WIDTH,X_MAX+WIDTH);
StdDraw.setYscale(-WIDTH,Y_MAX+WIDTH);
titre = new Titre(true);
Partie.createNiveau();
Partie.DispDeplacement();
}
}