Tokiwa Battle Royale
GE777
A PHP Battle Royale inspired game
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
map.php
Go to the documentation of this file.
1
<?php
2
3
define(
'CURSCRIPT'
,
'map'
);
4
5
require
'./include/common.inc.php'
;
6
7
$mapvcoordinate
= Array(
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'J'
);
8
9
for
(
$i
=0;
$i
<count(
$plsinfo
);
$i
++){
10
if
(
$hack
|| array_search(
$i
,
$arealist
) > (
$areanum
+
$areaadd
)){
11
$plscolor[
$i
] =
'mapspanlime'
;
12
}
elseif
(array_search(
$i
,
$arealist
) <=
$areanum
) {
13
$plscolor[
$i
] =
'mapspanred'
;
14
}
else
{
15
$plscolor[
$i
] =
'mapspanyellow'
;
16
}
17
// $position[$i] = array(substr($xyinfo[$i],0,1),substr($xyinfo[$i],3,1));
18
$position=explode(
'-'
,
$xyinfo
[
$i
]);
19
$mpp[$position[0]][$position[1]]=
$i
;
20
// $vposition[$i] = substr($xyinfo[$i],0,1);
21
// $hposition[$i] = substr($xyinfo[$i],3,1);
22
}
23
24
25
$mapcontent
=
'<TABLE border="1" cellspacing="0" cellpadding="0" align=center background="map/neomap.jpg" style="position:relative;background-repeat:no-repeat;background-position:right bottom;">'
;
26
$mapcontent
.=
27
'<TR align="center">
28
<TD width="48" height="48" class=map align=center><div class=nttx>坐标</div></TD>
29
<TD width="48" height="48" class=map align=center><div class=nttx>1</div></TD>
30
<TD width="48" height="48" class=map align=center><div class=nttx>2</div></TD>
31
<TD width="48" height="48" class=map align=center><div class=nttx>3</div></TD>
32
<TD width="48" height="48" class=map align=center><div class=nttx>4</div></TD>
33
<TD width="48" height="48" class=map align=center><div class=nttx>5</div></TD>
34
<TD width="48" height="48" class=map align=center><div class=nttx>6</div></TD>
35
<TD width="48" height="48" class=map align=center><div class=nttx>7</div></TD>
36
<TD width="48" height="48" class=map align=center><div class=nttx>8</div></TD>
37
<TD width="48" height="48" class=map align=center><div class=nttx>9</div></TD>
38
<TD width="48" height="48" class=map align=center><div class=nttx>10</div></TD>
39
</TR>'
;
40
for
(
$i
=0;
$i
<10;
$i
++){
41
$mapcontent
.=
'<tr align="center"><TD class=map align=center><div class=nttx>'
.$mapvcoordinate[
$i
].
'</div></TD>'
;
42
for
($j=1;$j<=10;$j++){
43
if
(isset($mpp[
$mapvcoordinate
[
$i
]][$j])){
44
$mapcontent
.=
'<td width="48" height="48" class="map2" align=middle><span class="'
.$plscolor[$mpp[
$mapvcoordinate
[
$i
]][$j]].
'">'
.
$plsinfo
[$mpp[
$mapvcoordinate
[
$i
]][$j]].
'</span></td>'
;
45
}
else
{
46
$mapcontent
.=
'<td width="48" height="48" class="map2" align=middle><IMG src="map/blank.gif" width="48" height="48" border=0></td>'
;
47
}
48
}
49
$mapcontent
.=
'</tr>'
;
50
}
51
$mapcontent
.=
'</table>'
;
52
53
include
template
(
'map'
);
54
55
?>
56
$mapcontent
for($i=0;$i< count($plsinfo);$i++) $mapcontent
Definition:
map.php:25
$areanum
$areanum
Definition:
gameinfo.php:9
$plsinfo
$plsinfo
Definition:
resources_1.php:801
$xyinfo
$xyinfo
Definition:
resources_1.php:838
$i
$i
Definition:
botservice.php:267
$mapvcoordinate
$mapvcoordinate
Definition:
map.php:7
elseif
【生存者数:<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
Definition:
1_alive.tpl.php:18
$hack
$hack
Definition:
gameinfo.php:12
$arealist
$arealist
Definition:
gameinfo.php:8
$areaadd
$areaadd
Definition:
gamecfg_1.php:7
map.php
Generated on Thu Nov 20 2014 11:38:04 for Tokiwa Battle Royale by
1.8.8