Witam napisałem skrypt gry.... z mapą .... w html/php .
mape tworzy sie w edytorze na stronie ( panel admina )...
zapisuje sie ją do plliku txt np 1html.txt i to jest mapa nr1
o zawartości :
<div style="LEFT: 165px; VISIBILITY: visible; POSITION: absolute; TOP: 429px; Z-index: 2;"><img src=images/obj/bush.gif alt="Bush"></div> <div style="LEFT: 165px; VISIBILITY: visible; POSITION: absolute; TOP: 129px; Z-index: 2;"><img src=images/obj/cliff_face02.png alt="cliff"></div> <div style="LEFT: 165px; VISIBILITY: visible; POSITION: absolute; TOP: 279px; Z-index: 2;"><img src=images/obj/bush.gif alt="Bush"></div> <div style="LEFT: 465px; VISIBILITY: visible; POSITION: absolute; TOP: 179px; Z-index: 2;"><img src=images/obj/weed.gif alt="hemp"></div> <div style="LEFT: 365px; VISIBILITY: visible; POSITION: absolute; TOP: 279px; Z-index: 101;"><img src=images/obj/tree02.gif alt="Tree"></div> <div style="LEFT: 515px; VISIBILITY: visible; POSITION: absolute; TOP: 229px; Z-index: 2;"><img src=images/obj/weed.gif alt="reefer"></div> <div style="LEFT: 415px; VISIBILITY: visible; POSITION: absolute; TOP: 179px; Z-index: 2;"><img src=images/obj/weed.gif alt="j"></div> <div style="LEFT: 515px; VISIBILITY: visible; POSITION: absolute; TOP: 179px; Z-index: 2;"><img src=images/obj/weed.gif alt="bud"></div> <div style="LEFT: 515px; VISIBILITY: visible; POSITION: absolute; TOP: 279px; Z-index: 2;"><img src=images/obj/weed.gif alt="420"></div> <div style="LEFT: 415px; VISIBILITY: visible; POSITION: absolute; TOP: 229px; Z-index: 2;"><img src=images/buildings/npc_house01.gif alt="Ilithor's Waystation"></div> <div style="LEFT: 365px; VISIBILITY: visible; POSITION: absolute; TOP: 129px; Z-index: 2;"><img src=images/buildings/cave01.gif alt="Cave"></div>
po mapie chodzi czlowiek .. za pomocą guzików ....
<area href="{move_up}" shape="rect" coords="31, 1, 124, 36">
<area href="{move_down}" shape="rect" coords="35, 71, 115, 108">
<area href="{move_right}" shape="rect" coords="93, 36, 145, 71">
<area href="{move_left}" shape="rect" coords="13, 37, 61, 71">
<area href="{move_refresh}" shape="circle" coords="77, 53, 19">
<area shape="default" nohref>
ale co nową mape wszystko od nową sie ładuje .... obrazki... drzewa.... i to zle wygloda mozna to w ajax albo( w coś innego ) przeerobić??
nie znam sie na ajaxie.....
ps. myslałem zeby to zrobić wszystko w 1 obrazku te drzewa , budynki ale wtedy postać wbiega na drzewo itd....
nie prosze o gotowy skrypt tylko o rade moze drobny skrypt = "wskazówke"
---------------
edit.
nikt nie wie jak zrobić dynamiczną mape ? np w pliku .map?