[Programming Game] presents a gift at the age of a new year. (The first prize is 10000 available points)
Author:
Ignition[Ctrl + A select all tips: you can modify some code and then press run]
Other map parameters:
, 10,, 10,,, 9, 31, 10, 31, 11, 31, 22, 31, 22, 31, 24, 31, 25, 31, 26, 31, 27, 31
,,, Listen,,, values, 25, 21, 56, 21, 25, 22, 56, 22, 9, 23, 25, 23, 56, 23, 24, 24, 24, 24, 24, 25, 25, 56, 25, 25, 24, 24, 26, 25, 40, 26, 26,,, 31, 33,31, 34,31, 35,31, 46,31, 47,31, 48 ,31, 49,31, 50,31, 51,31
<HTML> <br/> <pead> <br/> <title> K. g script3d 2.00 beta-map upfire </title> <br/> </pead> <br/> <body bgcolor = "#000000" text = "# ffffff" style =" overflow: hidden; "> <br/> <! -- <P id = "idtext" style = "color: RGB (255,255,255)"> tip: refresh the window size to see the largest field of view. </P> --> <br/> </body> <br/> <SCRIPT type = "text/JavaScript"> <br/> // K. g script3d 2.00 beta <br/> // 3D script for DHTML <br/> // copyright-kitegirl [China] 2009 <br/> var pubelements = NULL; <br/> var pubx = puby = pubz = 0; <br/> var pubr = pubg = pubb = 0; <br/> var pubviewangle = 0; <br/> var pubviewwidth = 0; <br/> var pubviewheight = 0; <br/> var pubviewfogover = 0; <br/> var pubviewfogfull = 0; <br/> var P Ubat = 0; <br/> var pubcelllen = 0; <br/> var pubbasex = pubbasey = pubscale = 0; <br/> var pubbasez = 0; <br/> var pubtimercode = 0; <br/> var pubontimer = 0; <br/> var pubtimeout = 0; <br/> var pubmapvalstrs = 0; <br/> var pubpy = 0; <br/> var pubpydt = 0; <br/> var pubssg_recosva = 0; <br/> var pubssg_reva = 0; <br/> var pubmapsindex = 0; <br/> function RGB (B, G, R) {<br/> return "#" + <br/> ("00" + math. flo Or (R ). tostring (16 )). replace (/^. * (/W {2} $)/g, "$1") + <br/> ("00" + math. floor (g ). tostring (16 )). replace (/^. * (/W {2} $)/g, "$1") + <br/> ("00" + math. floor (B ). tostring (16 )). replace (/^. * (/W {2} $)/g, "$1"); <br/>}< br/> window. onload = function () {<br/> pubssg_recosva = 0; <br/> pubssg_reva = 0; <br/> pubviewangle = 45; <br/> pubviewwidth = (document. body. clientwidth | document.doc umentelement. clientwidth)-1 0; <br/> pubviewheight = (document. body. clientheight | document.doc umentelement. clientheight)-10; </P> <p> pubbasez = 2000; <br/> pubviewfogover = 3700; <br/> pubviewfogfull = 1500; <br/> pubcelllen = 255; <br/> pubpy = 0; <br/> pubpydt = 110; <br/> TMAP =, 17,5, 26,5, 17,6, 26,6, 17,7, 26,7, clerk, 26,8, 17,9, "+ <br/>" 26,9, 16,10, 26,10, 16,11, 26,11, 15,12, 26,12, 13,13, 14,13, 2, "+ <Br/>,, 8, "+ <br/>,, "+ <br/>", 22,, "+ <br/>, 26, 24,26, 28,26, 9,27, 11,27, 14, "+ <br/>" 27,17, 27,19, 27,22, 27,25, 27,27, 27,10, 28,14, 28,17, 28,19, 28,22, 28,26, 28,15, 29,16, 29,19, 29, "+ <br/>", 20,30, "; <br/> pubmapvalstrs = TMAP. split (/,/); <br/> tvallen = pubmapvalstrs. length; <br/> pubcelllen = tvallen/2; <br/> pubx = new array (pubcelllen); <br/> puby = new array (pubcelllen ); <br/> pubz = new array (pubcelllen) </P> <p> getmap1 (); <br/> pubelements = E Lementscreate (pubcelllen); <br/> newcolor (); </P> <p> elementsview (pubelements, pubx, puby, pubz, pubcelllen, pubviewangle, pubviewwidth, pubviewheight, pubviewwidth/2, pubviewheight/2, pubbasez, pubviewfogfull, pubviewfogover, pubr, pubg, pubb, 9); <br/> timeloop (); <br/>}< br/> function getmap1 () {<br/> for (VAR Tci = 0; TCI <pubcelllen; TCI ++) {<br/> pubx [TCI] = 16-parseint (pubmapvalstrs [TCI * 2])-16; <br/> pubz [TCI] = (parseint (pubmapvalstrs [TCI * 2 + 1])-16) * 2; <br/> puby [TCI] = 500-pubz [TCI]; <br/>}< br/> function getmap2 () {<br/> for (VAR Tci = 0; TCI <pubcelllen; TCI ++) {<br/> pubx [TCI] = parseint (pubmapvalstrs [TCI * 2]) -16 + 16; <br/> pubz [TCI] = (parseint (pubmapvalstrs [TCI * 2 + 1])-16) * 2; <br/> puby [TCI] = 500-pubz [TCI]; <br/>}< br/> function newcolor () {<Br/> var trgb = new array (3); <br/> trgb [0] = math. random () * 0.5 + 0.5; <br/> trgb [1] = math. random () * 0.5 + 0.5; <br/> trgb [2] = math. random () * 0.5 + 0.5; <br/> trgb [math. floor (math. random () * 3)] = 1; <br/> pubr = trgb [0] * 255; <br/> pubg = trgb [1] * 255; <br/> pubb = trgb [2] * 255; <br/>}< br/> function timeloop () {<br/> // pubontimer = timer; <br/> If (pubat <1500) pubat = pubat + 50; <br/> pubpy = Pubpy + pubpydt; <br/> pubpydt = pubpydt-5; <br/> If (pubat> 1440) {<br/> pubat = pubpy = 0; <br/> pubpydt = 110; <br/> pubmapsindex = (pubmapsindex + 1) % 2; <br/> If (pubmapsindex = 0) {<br/> getmap1 (); <br/>}else {<br/> getmap2 (); <br/>}< br/> newcolor (); <br/>}< br/> elementsview (pubelements, pubx, puby, pubz, pubcelllen, pubviewangle, pubviewwidth, pubviewheight, <br/> pubviewwidth/2, pubvi Ewheight/2, pubbasez, pubviewfogfull, pubviewfogover, pubr, pubg, pubb, 9); <br/> pubtimercode = Window. setTimeout ("timeloop ();", 33); <br/>}< br/> function elementscreate (plength) {<br/> var oelms = new array (plength + 1); <br/> for (TEI = 0; Tei <plength; Tei ++) {<br/> with (document) {<br/> oelms [Tei] = createelement ("span"); <br/> body. appendchild (oelms [Tei]); <br/>}< br/> with (oelms [Tei]) {<br /> Innerhtml = "*"; <br/> style. position = "absolute"; <br/> style. color = "#000000"; <br/>}< br/> return oelms; <br/>}< br/> function elementsview (pelements, pxs, pys, pzs, plength, PVA, pvw, PVH, PBX, PBY, PBZ, PCF, PCE, PRS, PGS, PBS, PVCs) {<br/> for (TEI = 0; Tei <plength; Tei ++) {<br/> TSC = (pubat/100) + 1 ); <br/> TZ = pzs [Tei] * TSC + PBZ + (1000-pubat) * 2; <br/> Tx = pxs [Tei] * TS C; <br/> ty = pys [Tei] + 500-pubpy; <br/> var tvx = TVY = tvcs = 0; <br/> If (tz> 0) shadowscenograph (TX, Ty, tz, PVA, pvw, PBX, PBY, PVCs, function (OVX, ovy, OVCs) {tvx = OVX; TVY = ovy; tvcs = OVCs;}); <br/> If (tvcs <0) tvcs = math. ABS (tvcs); <br/> TVC = locateoverview (tvx, TVY, tz, pvw, PVH); <br/> If (TVC) {<br/> with (pelements [Tei]. styles) {<br/> color = "#000000"; <br/> fontsize = "9"; <br/> Top = 0 <br/> left = 0 <br/>}< br/>} else {<br/> with (pelements [Tei]. style) {<br/> color = fogcolor (tz, PCF, PCE, PRS, PGS, PBS); <br/> fontsize = tvcs + 1; <br/> Top = TVY; <br/> left = tvx; <br/> zindex = tvcs + 1; <br/>}< br/> function fogcolor (PZ, pvf, PVE, PR, PG, Pb) {<br/> If (PZ> PVE) {<br/> TCS = 0; <br/> ocolor = 0; <br/>} else if (PZ <pvf) {<br/> TCS = 1; <br/>} else {<Br/> TCS = (PVE-PZ)/(PVE-pvf); <br/>}< br/> TB = TCS * pb; <br/> Tg = TCS * PG; <br/> TR = TCS * PR; <br/> return RGB (TB, TG, TR ); <br/>}< br/> function locateoverview (PX, Py, PZ, pvw, PVH) {<br/> return (PX> pvw) | (PX <0) | (PY> PVH) | (PY <0) | (PZ <0); <br/>}< br/> function shadowscenograph (IX, Iy, Iz, Iva, ivw, ivbx, ivby, IVCS, func) {<br/> If (pubssg_reva! = IVA) {<br/> pubssg_reva = IVA; <br/> pubssg_recosva = math. cos (radian (pubssg_reva); <br/>}< br/> tzw = iz * pubssg_recosva; <br/> If (tzw! = 0) {<br/> OVCs = IVCS * ivw/tzw; <br/> TVPS = OVCs/2; <br/> OVX = (IX * ivw) /tzw + ivbx-TVPS; <br/> ovy = (Iy * ivw)/tzw + ivby-TVPS; <br/>} else {<br/> OVCs = OVX = ovy = 0; <br/>}< br/> func (OVX, ovy, OVCs ); <br/>}</P> <p> function spherelocate (IR, IAV, IAP, ox, oy, oz) {<br/> TRV = radian (IAV ); <br/> TRP = radian (IAP); <br/> tr_sin_rv = IR * Math. sin (TRV); <br/> ox = tr_sin_rv * Math. cos (TRP); <br/> Oy = tr_sin_rv * Math. sin (TRP); <br/> Oz = IR * Math. cos (TRV); <br/>}< br/> function radian (PA) {<br/> return Pa * 71/4068; <br/>}< br/> </SCRIPT> <br/> </ptml> <br/>
Ignition[Ctrl + A select all tips: you can modify some code and then press run]