- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
global $obj,$pict;
file_put_contents ('export.txt','');
$cr = file_get_contents ('data.txt');
file_put_contents ('compile.txt',$cr);
$all = file_get_contents ('compile.txt');
$player_x = c('player')->x;
$player_y = c('player')->y;
$all1 = str_replace('player_x',$player_x, $all);
$all2 = str_replace('player_y',$player_y, $all1);
$all3 = str_replace('picture',$pict, $all2);
$map_x = c("god")->w;
$map_y = c("god")->h;
$all4 = str_replace('map_x',$map_x, $all3);
$all5 = str_replace('map_y',$map_y, $all4);
$all6 = str_replace('obj_folder','compile/test_export/test/', $all5);
$all7 = str_replace('obj_count',$obj, $all6);
file_put_contents('export.txt', $all7, FILE_APPEND | LOCK_EX);
global $obj_x,$obj_y,$obj_w,$obj_h,$obj_color;
global $obj,$pict,$player_x,$player_y,$map_x,$map_y;
$player_x = c('player')->x;
$player_y = c('player')->y;
$map_x = c("god")->w;
$map_y = c("god")->h;
$obj_x = c("obj".$null)->x;
$obj_y = c("obj".$null)->y;
$obj_w = c("obj".$null)->w;
$obj_h = c("obj".$null)->h;
$obj_color = c("Form1->obj".$null)->brushColor;
ShowForm(map, SW_SHOW);
for ($x=0;$x<$obj;$x++)
{
cr_object();
}
Компиляция локаций в моём 2D движке который я писал очень давно xD
bagor 25.09.2016 15:41 # −67
guestinho 25.09.2016 17:12 # 0
bagor 25.09.2016 21:52 # −66
bagor 25.09.2016 21:54 # −66
bagor 25.09.2016 21:55 # −65