Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: trying to make game

  1. #1
    Member
    Join Date
    Jun 2011
    Posts
    44
    My Mood
    Mad
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default trying to make game

    hey i'm about to start making a game and it will be somthing familliar. and even though i am almost completly new to java i would like to use this to help me keep learning how to program in java.

    basically the game will be like one that everybody has seen basically you have a fort / house / building and your are a carecter trying to defend it from waves of attackers by shooting them. exept mine has a n roll playing aspect to it allowing for the real meat of the game to be in the pre/ post battles where you can explor a town, buy stuff from a smithy meet people and buy things to help you aswell as hire people to help fend off the attackers , i would only like a maximum of 20 people that you can hire and i will get more in depth but hte thing that i really need the most help with is the part where your carechter would make a shooting motion when you click on the screen during waves and the audio that follows

    i also need to make the enemies and allow them to be clicked and them to register damage aswell as a way formula to decide the # of attackers and what set and ratio of them that there are...

    i plan for this program to be finished by the start of next school year and i understand if it goes longer than that but basically i would like help on where to start.

    the images are not going ot be too big of a problem, what will be the problem is the user interface and the audio and ANIMATIONS.

    i have no idea how to do these let alone how to overlap them in what would look like layers.

    i think buying upgrades for guns and such would be somthing like this.

     
    class damage {
    int damage = 10 * damage_multiply ;
    int damage_multiply ;
     
     
    if ( M14 = equipped) damage_multiply = 2.4 ; 
    if ( M16 = equipped) damage_multiply = 2.6 ;
    if ( M4  = equipped) damage_multiply = 3.2 ;
     
    // you get the idea also i would have things that would make it so that if it's a head shot than that would mean 
    // that the damage has another multiply added to it 
    // also there would be in time adleast a way to make it so that there would be "grazes " or things that cut the damage multiplyer in half. 
     
    }


    i would also make it so that the story line is very interactive making it so that at the biggining of the game starts out with a vary cliche biggining where the main carecter is woken up and is asked questions like..

    "what is your name?"
    "whats your faveriot school subject "

    and those would be things that would affect your game later.

    there would be more things like this throughout the game making the occasional loop or allowing yo uto have a completly different game experence than many other people.

    this is the base but there would be many other things that would be added to it afterwares

    if anybody would like to help me develop this than i would be gratfull for somboyd who knows what they're doing.

    this is going to be a learning experence for me so that i can use it to program better things in the future. i would just like help about how i would go abou this not so much as the game timeline / story but more with the coding

    [this is a java programming forum not a story developer thingy place]

    any help woul dbe apprecieated

    thank you


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: trying to make game

    Here's the best piece of advice I can give you at the moment: start small (a lot smaller than what you're already thinking), and take things one small (tiny) step at a time. Finish each part of your game before starting the next part. Try not to even really think about what comes next until you've completed the current step.

    I'd say a good place to start is with the most basic drawing. Follow this article (Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)) to figure out how to do the painting. Use boxes for everything, and don't worry about animation or images yet.

    Then you can worry about moving the boxes around. Use a Swing Timer for that.

    Only when you have both of those things figured out, then you might want to figure out the clicking part. That would be this tutorial: How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)

    Just those three most basic steps will probably take you longer than you think. Don't get discouraged, and I've found that the best way to not become discouraged is to work on small steps, so you always have something to show for your work, not just half-finished ideas.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Member
    Join Date
    Jun 2011
    Posts
    44
    My Mood
    Mad
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: trying to make game

    It's going to be a Webb app

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: trying to make game

    Quote Originally Posted by knoxy5467 View Post
    It's going to be a Webb app
    Same rules apply. Start small.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Trying to make Jeopardy Game
    By wbroman in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 8th, 2010, 06:40 AM
  2. how do i make my program to....
    By andys in forum Object Oriented Programming
    Replies: 2
    Last Post: November 26th, 2010, 10:31 AM
  3. How to make a graph like this
    By sugarhigh in forum AWT / Java Swing
    Replies: 1
    Last Post: August 27th, 2010, 09:05 AM
  4. Trying to make a bot
    By ighor10 in forum Java Theory & Questions
    Replies: 1
    Last Post: June 11th, 2010, 02:07 PM
  5. How to make it???
    By Subhasis Banerjee in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: October 29th, 2009, 02:49 PM