-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
375 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/** | ||
* Super-Easy DimensioneX Ajax Library | ||
* | ||
* v. 1.4 | ||
* | ||
* http://www.dimensionex.net/ | ||
* | ||
*/ | ||
|
||
var loadingimg = "https://www.dimensionex.net/loading/loading1.gif"; //Prova anche loading2.gif loading3.gif ... | ||
|
||
/** | ||
* Funzione che istanzia un oggetto XMLHttpRequest usando un meccanismo cross browser. | ||
* | ||
* @return restituisce un'istanza di XMLHttpRequest oppure il valore false in caso | ||
* di errori. | ||
*/ | ||
|
||
function getXMLHttpRequestInstance() { | ||
|
||
var xmlhttp; | ||
|
||
// Prova il metodo Microsoft usando la versione più recente: | ||
try { | ||
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); | ||
} catch (e) { | ||
|
||
try { | ||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); | ||
} catch (E) { | ||
xmlhttp = false; | ||
} | ||
} | ||
|
||
// Se non è stato possibile istanziare l'oggetto forse siamo | ||
// su Mozilla/FireFox o su un altro browser compatibile: | ||
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { | ||
try { | ||
xmlhttp = new XMLHttpRequest(); | ||
} catch (e) { | ||
xmlhttp = false; | ||
} | ||
} | ||
|
||
// Restituisce infine l'oggetto: | ||
return xmlhttp; | ||
} | ||
|
||
/** | ||
* Funzione che sostituisce il contenuto HTML di un nodo della pagina. | ||
* | ||
* @param nodeId ID del nodo | ||
* @param html codice HTML da sostituire a quello del nodo | ||
*/ | ||
function updateContent(nodeId, html) { | ||
|
||
var node = document.getElementById(nodeId); | ||
if(null == node) { | ||
//alert("[ERROR] page does not have any DIV with ID " + nodeId); | ||
return; | ||
} | ||
node.innerHTML = html; | ||
node.style.visibility = "visible"; | ||
} | ||
|
||
/** | ||
* Richiede al web server un contenuto in maniera asincrona. | ||
* @param nodeId ID dell'elemento della pagina che conterrà il contenuto | ||
* @param url URL del contenuto (deve essere sullo stesso server per motivi di sicurezza) | ||
* @param url Opzionale, URL dell'immagine/animazione "loading" | ||
*/ | ||
function ajax(nodeId, url, loadimg) { | ||
loadimg = (typeof loadimg == "undefined")?loadingimg:loadimg; | ||
|
||
var xmlhttp = getXMLHttpRequestInstance(); | ||
if(!xmlhttp) { | ||
alert("Il browser non supporta l'oggetto XMLHttpRequest"); | ||
return false; | ||
} | ||
if (loadimg!=null){ | ||
updateContent(nodeId,""); | ||
updateContent(nodeId,"<img alt='...' src='"+loadimg+"' />"); | ||
} | ||
|
||
if (url.indexOf('?')>=0) { | ||
url = url+'&tid='+Math.random(); | ||
} else { | ||
url = url+'?tid='+Math.random(); | ||
} | ||
|
||
//alert(url); | ||
|
||
xmlhttp.open("GET", url,true); | ||
xmlhttp.onreadystatechange=function() { | ||
if (xmlhttp.readyState==4) { | ||
if (xmlhttp.status==200) { | ||
updateContent(nodeId, xmlhttp.responseText); | ||
//alert (xmlhttp.responseText); | ||
} else if (xmlhttp.status==404) { | ||
alert("[ERROR] un-existing URL: "+url); | ||
} else { | ||
alert("[ERROR] un-handled error (" + xmlhttp.status + ")"); | ||
} | ||
} | ||
} | ||
|
||
xmlhttp.send(null); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
<html> | ||
|
||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | ||
<!--meta http-equiv="REFRESH" content="1; URL=/dimx/servlet/multiplayer?game=1"--> | ||
<title>DimensioneX Game Server</title> | ||
<STYLE TYPE=TEXT/CSS> | ||
<!-- | ||
BODY {font-size: 10pt;font-family: Tahoma;color:#FFFFFF;} | ||
H1 {font-size: 28pt;font-family: Tahoma;color:#00FFFF;} | ||
A:link {font-family: Tahoma;color:#EE30EE;} | ||
A:visited {font-family: Tahoma;color:#EE30EE;} | ||
A:hover {font-family: Tahoma;color:#EE30EE;} | ||
A:active {font-family: Tahoma;color:#EE30EE;} | ||
TABLE {font-size: 10pt;font-family: Tahoma;color:#FFFFFF;} | ||
--> | ||
</STYLE> | ||
</head> | ||
|
||
<body bgcolor="black" text="white" topmargin="2" leftmargin="2"> | ||
<center> | ||
<center> | ||
<P align="left"> | ||
</center> | ||
</center> | ||
<table border="0" width="100%" cellspacing="0" cellpadding="5"> | ||
<tr> | ||
<td valign="top"> | ||
<a target="_blank" HREF="https://www.dimensionex.net/"><img border="0" src="logodimxreduced.gif" width="145" height="145"></a> | ||
<BR> | ||
<SMALL><a target="_blank" HREF="https://www.dimensionex.net/">www.dimensionex.net</a></SMALL> | ||
<P> | ||
<IMG SRC="pics/panhelp.gif" WIDTH="16" HEIGHT="16"> Need <A HREF="https://www.dimensionex.net/support/">HELP?<A> | ||
</a> | ||
</P> | ||
</td> | ||
<td valign="top"> | ||
<font face="arial"><h1 align="left"><b><font size="3">DimensioneX Multiplayer Game | ||
Server - menu page</font></b></h1> | ||
<p align="left"><font size="2">If this page looks fine and the following games/demos | ||
run, your installation is OK. If not, let us </font></font><font size="2"> | ||
<a href="https://www.dimensionex.net/support/">help</a>.<br> | ||
</font><table border="1" id="table1" cellspacing="0" cellpadding="4"> | ||
<tr> | ||
<td bgcolor="#008080"><font size="2" color="#000000"><b>S</b></font><b><font size="2" color="#000000">lot</font></b></td> | ||
<td bgcolor="#008080"><b><font size="2" color="#000000">Thumbnail</font></b></td> | ||
<td bgcolor="#008080"><b><font size="2" color="#000000">Title (and type)</font></b></td> | ||
<td bgcolor="#008080"><b><font size="2" color="#000000">Description</font></b></td> | ||
<td bgcolor="#008080"><b><font size="2" color="#000000">Commands</font></b></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">2/3/4</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=2"> | ||
<IMG SRC="pics/thumbs/underworld.jpg" border="2"></a></font></td> | ||
<td><font size="2">Underworld<br> | ||
(Full Game - Fantasy MMORPG)</font></td> | ||
<td><font size="2">A fantasy multiplayer RPG - Fight, magic, | ||
sell/buy, make guilds, build buildings, etc. It has been fairly | ||
successful and can be also played online. Study the game source | ||
and take inspiration from. <br> | ||
<br> | ||
<b>Requires Internet connection while playing.<br> | ||
</b> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=2&view=players" name="I13"></IFRAME> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=3&view=players" name="I14"></IFRAME> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=4&view=players" name="I15"></IFRAME> | ||
</font></td> | ||
<td><font size="2"><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="/dimx/servlet/multiplayer?game=3&view=admin">admin</a></font><br> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">1</font></td> | ||
<td><a href="/dimx/servlet/multiplayer?game=1"><font size="2"> | ||
<IMG SRC="pics/thumbs/beach.jpg" border="2"></font></a></td> | ||
<td><font size="2">The Beach<br> | ||
(Full Game - Multiplayer Adventure)</font></td> | ||
<td></td> | ||
<td><font size="2"><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="/dimx/servlet/multiplayer?game=1&view=admin">admin</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">12</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=12"> | ||
<IMG SRC="pics/thumbs/fourinline.jpg" border="2"></a></font></td> | ||
<td><font size="2">Four-In-Line<br> | ||
(Full Turn-Based Game)</font></td> | ||
<td><font size="2">Turn-based game for two players connected to | ||
Internet.</font></td> | ||
<td><font size="2"><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="/dimx/servlet/multiplayer?game=12&view=admin">admin</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">5/6/7</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=5"> | ||
<IMG SRC="pics/thumbs/underworld.jpg" border="2"></a></font></td> | ||
<td><font size="2">Underworld ITA | ||
<IMG SRC="pics/thumbs/italy.gif" border="0"><br> | ||
(Full Game - Fantasy MMORPG)</font></td> | ||
<td><font size="2">Same game as above, Italian-speaking version. | ||
<br> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=5&view=players" name="I3"></IFRAME> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=6&view=players" name="I4"></IFRAME> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=7&view=players" name="I4a"></IFRAME> | ||
</font></td> | ||
<td><font size="2"><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="/dimx/servlet/multiplayer?game=5&view=admin">admin</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">18</font></td> | ||
<td><a href="/dimx/servlet/multiplayer?game=18"><font size="2"> | ||
<IMG SRC="pics/thumbs/beach.jpg" border="2"></font></a></td> | ||
<td><font size="2">The Beach ITA | ||
<IMG SRC="pics/thumbs/italy.gif" border="0"><br> | ||
(Full Game - Multiplayer Adventure)</font></td> | ||
<td><font size="2">Italian Version</font></td> | ||
<td><font size="2"><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="/dimx/servlet/multiplayer?game=11&view=admin">admin</a></font></td> | ||
</tr> | ||
<tr> | ||
<td colspan="5" bgcolor="#008080"> | ||
<font color="#000000" size="2"><b>Demos</b></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">15</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=15"> | ||
<IMG SRC="pics/thumbs/mapdemo.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">Map Demo </font></td> | ||
<td><font size="2">Demonstrates how maps can be integrated into | ||
command panels. The players' position is updated automatically. (See <b>Developers' Reference</b> for more | ||
details on the MAP feature)</font></td> | ||
<td><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demomap.dxw');">source</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">19</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=19"> | ||
<IMG SRC="pics/thumbs/picgallery.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">Picture Gallery Demo </font></td> | ||
<td><font size="2">Demonstrates that you can build a multimedia | ||
+ multiuser environment to present pictures, and even | ||
integrate with on-line shopping carts for e-commerce!</font></td> | ||
<td><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demopictures.dxw');">source</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">16</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=16"> | ||
<IMG SRC="pics/thumbs/vehicles.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">Vehicles Demo </font></td> | ||
<td><font size="2">Demonstrates how vehicles can be created and | ||
used in a game. Enter in the car and then drive it around. (See <b>Developers' Reference</b> for more | ||
details on the VEHICLE object)</font></td> | ||
<td><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demovehicles.dxw');">source</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">20</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=20"> | ||
<IMG SRC="pics/thumbs/txtbaseddemo.gif" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">Text Input Demo </font></td> | ||
<td><font size="2">Demonstrates how you can parse in-game text commands via scripts</font></td> | ||
<td><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demotextinput.dxw');">source</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">8-9</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=8"> | ||
<IMG SRC="pics/thumbs/multiarea.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">Multi-Area Demo<br> | ||
</font></td> | ||
<td><font size="2">Demonstrates <b>multi-area support</b>. Two or more | ||
independent worlds can be linked together to create a bigger, composite | ||
game. Code can be shared via Includes. In this demo you will | ||
seamlessly switch from one world to another.<br> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=8&view=players" name="I16"></IFRAME> | ||
<IFRAME HEIGHT=26 WIDTH=100 SCROLLBARS="0" SRC="/dimx/servlet/multiplayer?game=9&view=players" name="I17"></IFRAME> | ||
</font></td> | ||
<td><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demoarea1.dxw');">source | ||
area 1</a></font><br> | ||
<font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demoarea2.dxw');">source | ||
area 2</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">17</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=17"> | ||
<IMG SRC="pics/thumbs/panels.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">Custom Panels + Object Creation Demo<br> | ||
</font></td> | ||
<td><font size="2">Demonstrates custom command PANELs with | ||
drop-down controls, and how to create objects dynamically, | ||
within game scripts. To see the demo, USE the switch as soon as | ||
you are inside. (this demo is | ||
very basic and also a little obsolete, see <b>Developers' Reference</b> for details on the | ||
PANEL instruction).</font></td> | ||
<td><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demopanels.dxw');">source</a></font></td> | ||
</tr> | ||
<tr> | ||
<td colspan="5" bgcolor="#008080"> | ||
<font color="#000000" size="2"><b>Templates (start developing a | ||
game from these ones!)</b></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">13</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=13"> | ||
<IMG SRC="pics/thumbs/world1.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">World 1</font></td> | ||
<td><font size="2">Basic world template to start from when | ||
developing. Very basic (just one room).</font></td> | ||
<td><font size="2"><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="/dimx/servlet/multiplayer?game=13&view=admin">admin</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">14</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=14"> | ||
<IMG SRC="pics/thumbs/world2.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">World 2</font></td> | ||
<td><font size="2">Basic game template to start from for | ||
developing a multiplayer game.</font></td> | ||
<td><font size="2"><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="/dimx/servlet/multiplayer?game=14&view=admin">admin</a></font></td> | ||
</tr> | ||
<tr> | ||
<td><font size="2">10</font></td> | ||
<td><font size="2"><a href="/dimx/servlet/multiplayer?game=10"> | ||
<IMG SRC="pics/thumbs/turnbased.jpg" WIDTH="100" HEIGHT="71" border="2"></a></font></td> | ||
<td><font size="2">Simple Dice Game (Demo Game)</font></td> | ||
<td><font size="2">Demonstrates how a <b>turn-based</b> game can | ||
be built. Must be played by two players (if alone, run two | ||
browser instances to simulate 2nd player). Can be used as a | ||
template to create any turn-based game (from cards to board | ||
games such as Monopoly). </font></td> | ||
<td><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
<a href="javascript:alert('see file: tomcat/webapps/dimx/WEB-INF/system/demoturnbased.dxw');"> | ||
source</a></font></td> | ||
</tr> | ||
</table> | ||
|
||
<p><IMG SRC="pics/panuse.gif" WIDTH="16" HEIGHT="16"><font size="2"> | ||
<a href="/dimx/servlet/maintenance">Maintenance Panel</a> for this | ||
server</font></p> | ||
|
||
<p><IMG SRC="pics/pancancel.gif"><font face="arial" size="2"> | ||
If the games don't work, here is an </font> | ||
<a href="/dimx/servlet/cleoni.adv.multiplayer?game=1"><font size="2">Alternate | ||
Mapping</font></a><font face="arial" size="2"> (might work in | ||
some cases)</font></p> | ||
|
||
<p><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
Source code of <b>all</b> games and demos is contained in this | ||
folder: <b>tomcat/webapps/dimx/WEB-INF/system</b></font></p> | ||
|
||
<p><font size="2"><IMG SRC="pics/icoPergamena.gif" WIDTH="16" HEIGHT="16"> | ||
Java classes (+modifiable sources) for the <b>DimensioneX MMORPG engine</b> are here: <b>tomcat/webapps/dimx/WEB-INF/classes</b></font></p> | ||
|
||
<p><img src="https://www.dimensionex.net/images/ok.gif" width="16" height="16" /> <-- If you read OK here then your internet connection is UP</p> | ||
</td></tr> | ||
</table> | ||
<P> | ||
</body> | ||
|
||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.