Stick Duel (webstart finally works)

Please check out my game. It’s only a beta, and it’s two player, hot seat only so you’ll need a friend.

(Marshmallow Duel clone)

webstart link!
http://grexengine.com/sections/externalgames/jnlps/stickduel/stickduel.jnlp

Special thanks to JGF for the hosting.

Known issue: Game sometimes crashes if you don’t name the players.
Statistics don’t get saved

webstart, webstart, webstart …

I’m stupid! What’s a zip good for?

great game! :smiley:

What about a splatter & gore feature? ;D
A tournament mode would be nice, too

I’ll uplooad the new version in a couple of days which saves your wins & losses and has a super cool tag mode!! oh yeah it isn’t web startable cuz its a school project so i didn’t need to. Besides this is my first big project, when I started I didn’t know what an abstract class was, let alone webstart and I dont want to rewrite my image loading classes. And I still dont know how webstart works but maybe when I’m finished I will. Any idead for weapons are welcome, and bugs or other comments…

Hm, I never had to rewrite anything for webstart. Just create the XML, sign the jars and off you go!
I’ll take a look at the game when I get home :slight_smile:

There’s a updated version now with tag mode and statistics (still no webstart).

I read in some tuturial you can’t use Toolkit.getDefaulToolkit().getImage() to load images, and I did and I’m too lazy to change it.

Jolly good fun! :smiley:

Now only some updated graphics with insanely over-the-top amounts of blood and gore to make it even more funny ;D

[quote]There’s a updated version now with tag mode and statistics (still no webstart).

I read in some tuturial you can’t use Toolkit.getDefaulToolkit().getImage() to load images, and I did and I’m too lazy to change it.
[/quote]
Shrug. Then obviously you don’t care that much whether people play your game, seeing as you can’t be bothered to make it easy for them. (FYI I won’t bother playing your game - too much hassle).

Webstarting takes you all of, oh, 1 minute if you have a correctly written application (using packages and JAR’s). If not, you probably ought to learn about those things anyway. If you want to convert image-loading code IIRC all you need do is visit the Wiki on this site and you can cut and paste the code.

If you’re using 3rd party libs it could take significantly longer :frowning: until they sort themselves out and make their libs directly webstart-loadable, saving you all the hassle.

There is a brief tutorial on JGF in the articles section that gives you a step-by-step guide to webstdarting (although it is due an update)

Being a school project, I’m not too worried about other people playing it at the moment. I’m also writing exams at the moment, after this I’m going on holiday and then the project is due which means I don’t have time to learn stuff like that. And that means I don’t have a properly written application, I don’t have the time to rewrite & debug old code when I still have so much new code to work on.

I’m checking out the walkthru on the wiki at the moment tho. I’ll make it webstartable, just to have the honour of blah playing my game :stuck_out_tongue:

Yay! Another game goes webstart thanks to the ultra-annoying-I’ll-bug-you-until-you-do attitude of…ME!

You will be loved forevermore by all games players once you do this. Seriously. No, really. Just you wait and see…

you say it is webstartable… but not for me: when I click the JNLP link i get a page with the following text:

href=“stickduel.jnlp”>

You have your local codebase commented out wrong, you have ! instead of !–

I corrected it and tried to run it from a location jnlp file but it failed to load stick.jar (possibly because I was using a local jnlp file instead of one off the site).

Oops!
:-[

Fixed…Thanks.

Didn’t work. I got:


<?xml version="1.0" encoding="utf-8"?>
<!-- Stick duel Webstart -->
<jnlp
spec="1.0+"
codebase="http://stickduel.tripod.com/files"
href="stickduel.jnlp">
<information>
<title>Stick Duel Beta
<vendor>Ruan Rothmann
<homepage href="http://stickduel.tripod.com"/>
<description>Stick Duel
<description kind="short">2 Player platform combat
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<jar href="stick.jar"/>

</resources>
<application-desc/>
</jnlp>

<!-- ********************************************************** -->
<!-- * START TRIPOD AD CODE - PLEASE REMOVE WHEN EDITING PAGE * -->
<!-- ********************************************************** -->

<!-- revision: inline - $Change: 70645 $ -->

<script language="JavaScript" src="/adm/ad/common_scripts.js"></script>
<script language="JavaScript">
<!--
// Cache-busting LUBID bug.
var ran = Math.round(Math.random() * 899999) + 100000;
var lubid_string = "<img src=\"http://hb.lycos.com/header?VID=5905&LHIG=1&ord=" + ran + "\" height=\"1\" width=\"1\">";
document.write(lubid_string);
//-->
</script>

<noscript><img src="http://hb.lycos.com/header?VID=5905&LHIG=1" height="1" width="1"></noscript>

<!-- START: Catman header -->

<script>
var cm_role = "live"
var cm_host = "tripod.lycos.com"
var cm_taxid = "/memberembedded"
</script> 
<script src="http://scripts.lycos.com/catman/init.js"></script>
<script language="JavaScript1.1">
var objAdMgr = new AdManager();


var strProdSetName = objAdMgr.chooseProductSet(); objAdMgr.renderHeader();
</script>

<!-- END: Catman header -->

<script language="JavaScript">
<!--
launchSidebar('sidebar.tripod.com', '(none)');
if (!displayAd()) document.write("<!" + "--");
//-->
</script>
<noscript>
<img src="/adm/img/common/ot_nosidepane.gif?rand=266666" alt="dot" width="150" height="1">
</noscript>

<div align="center" id="FooterAd_266666" name="FooterAd_266666" style="display:none; left:0px; top:0px">
<table border="0" cellpadding="0" cellspacing="0">
      <tr><td><A href="/adm/redirect/www"><IMG SRC="/adm/img/popup/tripodsm.gif" ALT="hosted by tripod" WIDTH="116" HEIGHT="26" BORDER="0" VSPACE="2"></A></td></tr>
      <tr><td align="center" valign="top" width="468"><script>
if (objAdMgr.isSlotAvailable("banner")) {
      objAdMgr.renderSlot("banner");
}
</script>
<noscript>
<a href="http://network.realmedia.com/RealMedia/ads/click_nx.ads/lycostripod/ros/468x60/wp/ss/a/266666@Position1?x"><img border="0" src="http://network.realmedia.com/RealMedia/ads/adstream_nx.ads/lycostripod/ros/468x60/wp/ss/a/266666@Position1"></a>
</noscript>
</td></tr>
</table>
<table border="0" cellpadding="0" cellspacing="3" width="468">
      <tr>
            <td><font size="1" face="verdana, arial, helvetica, sans serif"><a href="http://r.hotbot.com/r/tp_embeddedtxthb/http://www.hotbot.com/" target="_NEW">Check out the NEW Hotbot</a></font></td>

            <td align="right"><font size="1" face="verdana, arial, helvetica, sans serif"><a href="/bin/email_when_updated/display_form">Tell me when this page is updated</a></font></td>
      </tr>
</table>
</div>

<script language="JavaScript">
<!--

window.onload = function () {
    setKeywordCookie('(none)');
    // buildExitHandler();
    showAd("FooterAd_266666");
}

if (!displayAd()) document.write("-" + "->");

//-->
</script>
<script language="JavaScript">
<!--
  if(!displayTopAd()) {
   var adImg=d.createElement('IMG'); adImg.src="/adm/img/common/ot_smallframe.gif?w="+pageWidth+"&h="+pageHeight+"rand=266666";
   document.write("<!" + "--");
  }
  else {
   var adImg=d.createElement('IMG'); adImg.src="/adm/img/common/ot_adserved.gif?rand=266666";
  }
//-->
</script>
<noscript>
<img src="/adm/img/common/ot_noscript.gif?rand=266666" alt="dot" width="150" height="1">
</noscript>

<div align="center">

<script>
if (objAdMgr.isSlotAvailable("leaderboard")) {
        objAdMgr.renderSlot("leaderboard")
}
</script>
<noscript>
<iframe width="728" height="90" frameborder="0" scrolling="no" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-lycos_us_tripod_above_728x90&random=266666&alternate_ad_url=http%3A%2F%2Fnetwork.realmedia.com%2FRealMedia%2Fads%2Fadstream_sx.ads%2Flycostripod%2Fgoogle%2F728x90%2Fwp%2Fss%2Fa%2F266666%40Top1%3F&format=728x90_t_new&output=html&url=http://stickduel.tripod.com/files/stickduel.jnlp">
<a href="http://network.realmedia.com/RealMedia/ads/click_nx.ads/lycostripod/ros/728x90/wp/ss/a/266666@Top1?x"><img border="0" src="http://network.realmedia.com/RealMedia/ads/adstream_nx.ads/lycostripod/ros/728x90/wp/ss/a/266666@Top1">
</iframe>
</noscript>


</div>

<script language="JavaScript">
<!--
  if(!displayTopAd()) document.write("-" + "->");
//-->
</script>
<!-- START: Catman Footer -->
<script language="JavaScript1.1">
objAdMgr.renderFooter();
</script>

<!-- END: Catman Footer -->

<!-- revision: ubiquitous - $Change: 70645 $ -->

<!-- ******************************************************** -->
<!-- * END TRIPOD AD CODE - PLEASE REMOVE WHEN EDITING PAGE * -->
<!-- ******************************************************** -->

Doesn’t work for me, too.

Just a page with “Ruan Rothmann Stick Duel 2 Player platform combat” and some ads below.

Well, not your fault. Tripod just sucks. Try getting better webspace.

Same here.

Cas :slight_smile:

yep, just a blank page here. :frowning:

Hmm. that’s about the 4th host i’ve tried. You only seem to find out about these things afterwards. Sorry for it never seeming to work, unfortunately I cant test it from my PC as it’s ancient, only running windows 95 (I code on one machine & upload on the other).

new web site:
http://stickduel.freewebpage.org/files/stickduel.jnlp

[quote]Hmm. that’s about the 4th host i’ve tried. You only seem to find out about these things afterwards. Sorry for it never seeming to work, unfortunately I cant test it from my PC as it’s ancient, only running windows 95 (I code on one machine & upload on the other).

new web site:
http://stickduel.freewebpage.org/files/stickduel.jnlp
[/quote]
“Free Web Page Hosting offers the easiest way to get a website on the Internet. Sign up now and receive free space and tools for you to build your own web site.”

Looks like they don’t allow it either…

Email me at ceo @ grexengine.com with all the files. I’ll put it in the JGF area on grexengine.com (so you’d better send me the details for including in JGF at the same time ;)).

blah - did you recieve the files from sponge? (I’m eager to try the game out but can’t see it up at JGF yet) :smiley: