Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Java (not Javascript) Concentration Game

  1. #1
    Join Date
    May 2002
    Location
    Oklahoma, USA
    Posts
    135

    Java (not Javascript) Concentration Game

    MJ are you out there? :):

    Since I can't leave well enough alone I'm trying to put a Java Concentration game on the site. I'm not even close it seems to figuring out what goes where...could you take a look?

    The page I'm trying to put it on will be here http://fumcbixby.org/games/concentra...centration.htm

    A sample of a finished and working game is here http://www.bradyworld.com/game/concentration/

    I've got all my class files and .jar file in the same directory as the Concentration page. I just put in some sample pics to see if I could get this to work but they don't show up.

    The code for the site that works is this:

    <applet code=Concentration1ech.class width=370 height=435 archive=Concentration1.jar>
    <param name=COPYRIGHT value="Concentration applet, Copyright 1998, Eric Harshbarger">
    <param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
    <param name=IMAGE.0 value="images/mike.jpg">
    <param name=IMAGE.1 value="images/carol.jpg">
    <param name=IMAGE.2 value="images/greg.jpg">
    <param name=IMAGE.3 value="images/marcia.jpg">
    <param name=IMAGE.4 value="images/peter.jpg">
    <param name=IMAGE.5 value="images/jan.jpg">
    <param name=IMAGE.6 value="images/bobby.jpg">
    <param name=IMAGE.7 value="images/cindy.jpg">
    <param name=IMAGE.8 value="images/alice.jpg">
    <param name=IMAGE.9 value="bblogo.gif">

    <param name=BGCOLOR value="255,255,255">
    <param name=FONTSIZE value=14>
    <param name=BACKGROUND value="bbjail2.gif">
    <param name=IMAGE.MASK value="mask2.gif">
    <param name=IMAGE.FACEDOWN value="face.jpg">
    <param name=SOUND.PICK value="click2.au">
    <param name=SOUND.CORRECT value="glissant1.au">
    <param name=SOUND.SOLVED value="fanfare.au">

    <param name=ROWS value=4>
    <param name=COLUMNS value=5>
    </applet>

    ________________________

    A note from the author says "any directory paths specified in image/sound parameters are assumed to either be complete URL addresses or directory paths relative to the directory holding the webpage (not necessarily the same directory holding the '.class' files).

    I'm heading to work so if you respond I'll try to look at it from the golf course. I'll be working on it again this evening (States Time).

    Thanks if you get a chance,

    Joe

    btw, the author's site for concentration is here http://www.ericharshbarger.com/java/

  2. #2
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,341
    Hi Joe,
    Could you possibly send me the images and sound files that you have for these parameters:

    <param name=BACKGROUND value="bbjail2.gif">
    <param name=IMAGE.MASK value="mask2.gif">
    <param name=IMAGE.FACEDOWN value="face.jpg">
    <param name=SOUND.PICK value="click2.au">
    <param name=SOUND.CORRECT value="glissant1.au">
    <param name=SOUND.SOLVED value="fanfare.au">

    I have all the other images, but could not get hold of the ones you want to use for the above. Thanks
    .
    Site 5 Website Hosting

    Website Templates
    Drop Down menu maker

    Make a difference in someones life

    <°)))><
    .
    "Take what you have, however little, and do your best with it."

    .

  3. #3
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,341
    Hi Joe,
    forget the above message, I have managed to get the sound files and everything I need....will get back to you
    .
    Site 5 Website Hosting

    Website Templates
    Drop Down menu maker

    Make a difference in someones life

    <°)))><
    .
    "Take what you have, however little, and do your best with it."

    .

  4. #4
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,341
    :woohoo: :woohoo: :woohoo:

    I've actually got SOUND - oh boy, pick myself up off the floor.....
    Okay, page is not perfect, not sure why yet, but check out this link .....just about here
    One thing you will have to work on is the applet backgrond image, it will have to be the same size as the applet, you will see why when you play the game.
    Now you dont need the .jar file at all. Here is my code, so far, notice I have all the images, sound files, class files etc etc in same folder as web page - you dont have to, just that I always start off doing that way, get it working, then files can be moved around if wanted, and file paths changed.

    <applet code=Concentration2ech.class width=370 height=435>
    <param name=COPYRIGHT value="Concentration applet, Copyright 1998, Eric Harshbarger">
    <param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
    <param name=IMAGE.0 value="billdenisetthmb.jpg">
    <param name=IMAGE.1 value="billybreakfastthmb.jpg">
    <param name=IMAGE.2 value="carleyfam5thmb.jpg">
    <param name=IMAGE.3 value="carolcthmb.jpg">
    <param name=IMAGE.4 value="conniethmb.jpg">
    <param name=IMAGE.5 value="freesefam4thmb.jpg">
    <param name=IMAGE.6 value="jessquilt2thmb.jpg">
    <param name=IMAGE.7 value="lydkat7thmb.jpg">
    <param name=IMAGE.8 value="thekids9thmb.jpg">
    <param name=IMAGE.9 value="bettyonorganthmb.jpg">
    <param name=BGCOLOR value="255,255,255">
    <param name=FONTSIZE value=14>
    <param name=BACKGROUND value="jesusatthedoor.jpg">
    <param name=IMAGE.MASK value="jesusatthedoor.jpg">
    <param name=IMAGE.FACEDOWN value="facedown.jpg">
    <param name=SOUND.PICK value="click2.au">
    <param name=SOUND.CORRECT value="glissant1.au">
    <param name=SOUND.SOLVED value="fanfare.au">
    <param name=ROWS value=4>
    <param name=COLUMNS value=5>
    </applet>
    .
    Site 5 Website Hosting

    Website Templates
    Drop Down menu maker

    Make a difference in someones life

    <°)))><
    .
    "Take what you have, however little, and do your best with it."

    .

  5. #5
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,341
    Okay, I got it now!! will replace above link when I hvae it sorted, but have got it worked out now ..... post back later with new link....
    .
    Site 5 Website Hosting

    Website Templates
    Drop Down menu maker

    Make a difference in someones life

    <°)))><
    .
    "Take what you have, however little, and do your best with it."

    .

  6. #6
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,341
    Hey Joe
    Check it out now - really cooool! Hee :crazy:

    http://www.scriptfx.com/test/concentration_joe/jor.htm
    .
    Site 5 Website Hosting

    Website Templates
    Drop Down menu maker

    Make a difference in someones life

    <°)))><
    .
    "Take what you have, however little, and do your best with it."

    .

  7. #7
    Join Date
    Feb 2002
    Location
    Corpus Christi, TX
    Posts
    1,099
    HEEEE! cute! :bounce:

  8. #8
    Join Date
    May 2002
    Location
    Oklahoma, USA
    Posts
    135

    You've Been Busy!

    Hey MJ, you must have the touch.

    Unfortunately I do not.

    It's not working and I don't have a clue why. Maybe my files are in the wrong places...although they are in the same folder as the actual page. Here's the code on my page:

    <applet code=Concentration2ech.class width=370 height=435>
    <param name=COPYRIGHT value="Concentration applet, Copyright 1998, Eric Harshbarger">
    <param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
    <param name=IMAGE.0 value="billdenisetthmb.jpg">
    <param name=IMAGE.1 value="billybreakfastthmb.jpg">
    <param name=IMAGE.2 value="carleyfam5thmb.jpg">
    <param name=IMAGE.3 value="carolcthmb.jpg">
    <param name=IMAGE.4 value="conniethmb.jpg">
    <param name=IMAGE.5 value="freesefam4thmb.jpg">
    <param name=IMAGE.6 value="jessquilt2thmb.jpg">
    <param name=IMAGE.7 value="lydkat7thmb.jpg">
    <param name=IMAGE.8 value="thekids9thmb.jpg">
    <param name=IMAGE.9 value="bettyonorganthmb.jpg">

    <param name=BGCOLOR value="255,255,255">
    <param name=FONTSIZE value=14>
    <param name=BACKGROUND value="jesusatthedoor370.jpg">
    <param name=IMAGE.MASK value="jesusatthedoor.jpg">
    <param name=IMAGE.FACEDOWN value="/java/concentration/win.facedown.jpg">
    <param name=SOUND.PICK value="/java/concentration/click2.au">
    <param name=SOUND.CORRECT value="/java/concentration/glissant1.au">
    <param name=SOUND.SOLVED value="/java/concentration/fanfare.au">

    <param name=ROWS value=4>
    <param name=COLUMNS value=5>
    </applet></p>

    Any thoughts? I'm quickly losing patience with myself. Guess it's been a long day. :):

    Thanks,

    Joe

    http://fumcbixby.org/games/concentra...centration.htm

  9. #9
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,341
    Okay for starters these lines are wrong.

    <param name=IMAGE.FACEDOWN value="/java/concentration/win.facedown.jpg">
    <param name=SOUND.PICK value="/java/concentration/click2.au">
    <param name=SOUND.CORRECT value="/java/concentration/glissant1.au">
    <param name=SOUND.SOLVED value="/java/concentration/fanfare.au">

    You have taken those directly from the original code,

    /java/concentration/fanfare.au

    that line shows that the sound file "fanfare.au" is kept in the folder called java which is in the folder called concentration ... is that where you have the sound file???

    Here is my code:

    <p align="center"><applet code=Concentration2ech.class width=370 height=435>
    <param name=COPYRIGHT value="Concentration applet, Copyright 1998, Eric Harshbarger">
    <param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
    <param name=IMAGE.0 value="one.gif">
    <param name=IMAGE.1 value="two.gif">
    <param name=IMAGE.2 value="three.gif">
    <param name=IMAGE.3 value="four.gif">
    <param name=IMAGE.4 value="five.gif">
    <param name=IMAGE.5 value="six.gif">
    <param name=IMAGE.6 value="seven.gif">
    <param name=IMAGE.7 value="eight.gif">
    <param name=IMAGE.8 value="nine.gif">
    <param name=IMAGE.9 value="ten.gif">
    <param name=BGCOLOR value="255,255,255">
    <param name=FONTSIZE value=14>
    <param name=BACKGROUND value="mj.gif">
    <param name=IMAGE.MASK value="win.gif">
    <param name=IMAGE.FACEDOWN value="facedown.jpg">
    <param name=SOUND.PICK value="click2.au">
    <param name=SOUND.CORRECT value="glissant1.au">
    <param name=SOUND.SOLVED value="fanfare.au">
    <param name=ROWS value=4>
    <param name=COLUMNS value=5>
    </applet>

    Start a totally NEW PAGE in Front Page, with absolutely nothing else on it apart from the basic tags FP gives you, i.e. no background image or theme code, which your present page has. Copy the above code into Notepad, then copy it from notepad directly into the HTML view of your new page, straight after the <body> tag - then just change the name of the 10 images.

    you should have all the images and sound files in same folder as your page - do you actually havae the .au files?? if not I can send them to you. Save the webpage under new name, upload, making sure all images and sound files upload in same folder with it -no reason for it then not to work. Get it working first, before adding any page background images or theme etc to the page.

    I am shortlhy going to bed, so anything else will have to wait until morning.
    good luck. :up:
    .
    Site 5 Website Hosting

    Website Templates
    Drop Down menu maker

    Make a difference in someones life

    <°)))><
    .
    "Take what you have, however little, and do your best with it."

    .

  10. #10
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,341
    Tell you what, I will zip up and email you my page and my images and sound files. You can then use my page as a sort of template, once you get it working with your images, you will have to make sure that the images numbered 0-9 are all of the same size i.e. 74 x 102 pixels and that the backgrond image to the applet is 370 x 408 pixels.

    Just as an afterthought - do you also have ALL the class files in the same folder...

    You should have

    AppletUtil3.class
    Audio Thread2.class
    ConCanvas2.class
    Concentration2ech.class

    You dont need the .jar file
    .
    Site 5 Website Hosting

    Website Templates
    Drop Down menu maker

    Make a difference in someones life

    <°)))><
    .
    "Take what you have, however little, and do your best with it."

    .

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •