summaryrefslogtreecommitdiffstats
path: root/pages/gallery.php
blob: 68c17ae5298b5ed85bd9c2543a5e6988ea5a0161 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?PHP
htmlHeader();
?>

<body>
<?php
topbar($Links);


include('../mazetd/includes/maps.php');
include('../mazetd/includes/mapoftheday.php');


echo "<br />";
echo "<br />";
echo "";

echo rand(0,1);
echo rand(0,1);
echo rand(0,1);
echo rand(0,1);
echo rand(0,1);

//15x9.c3.r28.w12.t2.:0s.8r.4f.0s.9r.3f.0s.12r.0f.0s.8r.0r.3f.0s.5r.5r.1f.0s.1r.11f.0s.0r.8r.1r.1f.0s.8r.4f.0s.4r.3r.4f.

$map = GenerateMap(
	15, 9, 7					,  //width, height, rocks
	rand(11,13)				,	//Walls
	weight(0,1,2,2,3,3)	,	//Checkpoints
	rand(0,1)					//Teleports
	);
	
	
$map = GenerateMap(
	14, 15, 50				,  //width, height, rocks
	weight(17,18,19,20)	,	//Walls
	weight(1,2,2,3,3)		,	//Checkpoints
	weight(0,0,0,1)					//Teleports
);

//Weekend Map
$map = GenerateMap(
	25, 15, 9					,  		//width, height, rocks
	weight(20)				,			//Walls
	weight(5)		,			//Checkpoints
	weight(5)						//Teleports
);


//Rocky Maze
$map = GenerateMap(
	19, 15, 5				,  		//width, height, rocks
	weight(16,17,18)				,			//Walls
	weight(1,2,2,2,3,3)		,			//Checkpoints
	weight(0)						//Teleports
);
	

//Tele Madness
$map = GenerateMap(
	17, 12, 10					,  		//width, height, rocks
	weight(17,18)					,			//Walls
	weight(1)					,			//Checkpoints
	weight(5)								//Teleports
);

//Tall tall
$map = GenerateMap(
	6, 17, 10				,  		//width, height, rocks
	weight(17,18,19,20)	,			//Walls
	weight(1,2,2,2,3,3)		,			//Checkpoints
	weight(0,0,0,1)					//Teleports
);
//Side to Side
$map = GenerateMap(
	26, 6, 12				,  		//width, height, rocks
	weight(17,18,19)		,			//Walls
	weight(2,2,2,3,3)		,			//Checkpoints
	weight(3,3,3,4)					//Teleports
);	



$mapdisplay = DisplayMap($map);
$code = GenerateMapCode($map);


echo "<br />$mapdisplay";
echo "<br />$code";
print_r ($map);

echo "<br />";
echo "<br />";
echo "<br />";
echo weight(1,2,3,4,5,6);
echo "<br />";
echo weight(1,2,3,4,5,6);
echo "<br />";
echo weight(1,2,3,4,5,6);
echo "<br />";
echo weight(1,2,3,4,5,6);
echo "<br />";
echo weight(1,2,3,4,5,6);
echo "<br />";
echo weight(1,2,3,4,5,6);





?>
</body>
</html>