Adblock breaks this site

2 player space invaders (applet)

Discussion in 'Programming General' started by slashshot007, Feb 18, 2010.

  1. slashshot007

    slashshot007 Active Member

    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    Yeah I'm pretty proud of this, I will upload the source in a bit but here's a link to the applet

    http://meteora184.home.comcast.net/~meteora184/SpaceInv/classes/SpaceInv.htm

    The only problem is that it can be slow on some computers (example my own) I made this at my school computer which is very fast so when i got home to try it, it ran very slow. I think the solution would be to multi thread, and i only have one thread. Or possible to have only one class. Whatever the reason is, go ahead and try and play. (requires a friend)

    I also have sounds programmed into it, but for whatever reason they do not work (maybe its just firefox) I'll try and see how to get them running as well.

    [​IMG]

    sigh... I do know that sythe has a bad reputation for getting alot of viruses/ etc.

    Idk how to prove that this is legit, but if a mod could verify for everyone that this is NOT anything else besides a corny game I made that would be nice.
     
  2. Jimmy

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25
    2 player space invaders (applet)

    I'll vouch that it's clean at the moment of my writing this.

    Your sound works find one chrome (I don't see why it shouldn't work find on any browser, as it appears that your audio clips are in the same directory as your class and you are using the methods of the AudioClip class correctly). As a suggestion, you might want to add some code in your modement method that prevents you from moving your ship off of the screen. Also, placing all of your classes in a Jar file is a good idea to implement in the future.
     
  3. slashshot007

    slashshot007 Active Member

    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    yeah i actually had it so that you cannot move off the screen, and i also had it so that the game would end when one player would die (the other player wins)

    but yeahh seems like i didn't save it or something lol so i'll have to update that again.
     
  4. Brendan

    Brendan Your friendly neighbourhood cuck
    $50 USD Donor Retired Sectional Moderator

    Joined:
    Sep 19, 2009
    Posts:
    8,418
    Referrals:
    4
    Sythe Gold:
    18
    Sythe Awards 2012 Winner Christmas 2015 Valentine's Day 2016 Easter 2016 MushyMuncher Tier 1 Prizebox
    2 player space invaders (applet)

    Hehe, my dad saw me playing and we had a 1 on 1 match. Thanks for that :p
     
  5. XeNoS

    XeNoS Newcomer

    Joined:
    May 6, 2010
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    Cool, did you do this in the SDL graphics API?
     
  6. clint999

    clint999 Active Member

    Joined:
    Jun 4, 2008
    Posts:
    110
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    Hehe, my dad saw me playing and we had a 1 on 1 match. Thanks for that
     
  7. somanayr

    somanayr Active Member

    Joined:
    Apr 25, 2010
    Posts:
    114
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    Nice :) I can't do shit with java.
     
  8. qwerty0987

    qwerty0987 Newcomer

    Joined:
    Dec 6, 2012
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    where's the source code :)
     
  9. somanayr

    somanayr Active Member

    Joined:
    Apr 25, 2010
    Posts:
    114
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    [deleted]
     
    Last edited: Feb 2, 2023
  10. iJava

    iJava .Previously known as RSGoldRush
    $200 USD Donor New

    Joined:
    Nov 21, 2011
    Posts:
    1,197
    Referrals:
    11
    Sythe Gold:
    485
    Discord Unique ID:
    220055593568829441
    2 player space invaders (applet)

  11. Snoopchicken

    Snoopchicken Forum Addict

    Joined:
    Jun 13, 2012
    Posts:
    383
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    If you want to increase speed, consider using an AOT compiler to create a .exe file of the project. Excelsior makes an excellent software which can aid you in doing this:

    http://www.excelsior-usa.com/jet.html

    Specifically, you'd want to use JetPackII if you want to distribute your game to other computers (the user would have to initially install the game though). However, you can guarantee that your game would work faster if you were to package it into an executable, which isn't reliant on bytecode. Rather, the classes of your project would be converted to x86 code.
     
  12. slashshot007

    slashshot007 Active Member

    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0
    2 player space invaders (applet)

    this is an applet
     
< Heyo guys, Assembly? | twitter acc &/or followers >


 
 
Adblock breaks this site