2DWorlds Forums
Okay, does anybody have a way to embed a Buildism game? - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5)
+--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30)
+--- Thread: Okay, does anybody have a way to embed a Buildism game? (/showthread.php?tid=7195)



Okay, does anybody have a way to embed a Buildism game? - Qwertygiy - 07-25-2011

Like in HTML?


RE: Okay, does anybody have a way to embed a Buildism game? - noob007 - 07-25-2011

Hmm,

there might be a way... Brb, I'll do some h4xing xD
[lua]<applet code="net.buildism.launcher.UpdaterApplet" codebase="buildism.net/game/" archive="BuildismLauncher.jar" width="800" height="600">
<param name="options" value="[user id] [user name] [idk what this is, some hash] play false http://buildism.net/game/join.php?mode=play&amp;id=[game id]"><param name="urls" value="http://buildism.net/game/Buildism.jar|http://buildism.net/game/lib/resources.jar|http://buildism.net/game/lib/jsyntaxpane-0.9.5-b29.jar">
<param name="java_arguments" value="-Xms512m -Xmx1024m">
<param name="separate_jvm" value="true">
<param name="name" value="Buildism">
<param name="boxbgcolor" value="#d9ebed">
</applet>[/lua]

There where it says 'params' and it has the '[user id]' etc. you have to replace those with the stuff you want.


RE: Okay, does anybody have a way to embed a Buildism game? - Cap - 07-27-2011

Well you could use an iframe like:

<iframe src="http://buildism.net/game.php?id=ID&play" border="none"></iframe>

Or if your feel that iframes are stupid for whatever reason:

<div id="Buildism_player"></div>
<script type="text/javascript">
Http = new XMLHttpRequest();
Http.onreadystatechange = function(){document.getElementById("Buildism_player").innerHTML=Http.responseText;;};
Http.open("GET", "http://buildism.net/game.php?id=ID&play", true);
Http.send(null);
</script>