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 2 of 2

Thread: Making an Alchemy/Doodle God clone in Java

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Location
    Boston
    Posts
    1
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Making an Alchemy/Doodle God clone in Java

    Hello all,

    It's my first time posting so go easy on me.

    I'm trying to create a game/application in Java based on the following rules:

    -Player starts with 4 Elements: Water, Air, Fire, Earth.
    -Available elements are in a scroll box on the right side of the screen in the "tile bank"
    -The player can place and freely move tiles of each element on a free-moving game board and have as many instances of each element as they wish.
    -Elements are combined by dragging one tile (e.g. Water) and another tile (e.g. another Water) to create a new tile of the correct element (For this example, I would have the resulting reaction create "Sea" [Water+Water=Sea]
    -The player can then use the created elements to make more combinations (e.g. Sea + Sea = Ocean)
    -Some elements are final and can't be used to make a new element. These can be excluded from available tiles in the tile bank.
    -Object of the game is to discover all possible elements.

    I want to incorporate hints into the game upon successful reactions, but for now I've run into the conundrum of how to actually combine the elements.

    The suggestions I've had so far are as follows:
    -HashMaps (possibly with elements as binary values; Water= 0001 Fire = 0010, etc.
    -Using the elements as interfaces
    -Creating a table of values with unique ID's
    -Classes within classes, creating a hierarchy.

    I'm also thinking it may be easiest to simply hard-code all of the reactions into the element objects themselves individually.

    Does anyone have experience with a game like this or can give suggestions based on the object of the game?
    Thank you in advance.


  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: Making an Alchemy/Doodle God clone in Java

    There are an endless number of ways to approach this, and which direction you take depends entirely on you, your comfort level with the APIs, the context of the game, etc. In other words, it's hard to answer questions like this in the same way that it's hard to answer "what should I have for dinner?" - we can tell you what we'd have for dinner (burritos!), but that won't necessarily help you out. We can tell you how we would approach it, but that might not be how *you* should approach it.
    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. Need help making a Java roulette simulator.
    By Jmiller4 in forum Loops & Control Statements
    Replies: 1
    Last Post: October 29th, 2012, 07:40 AM
  2. Making Game, Need 1-3 People That Know JAVA
    By Stilez in forum Paid Java Projects
    Replies: 2
    Last Post: August 27th, 2012, 02:51 PM
  3. Iterators and lists and oh god my brain hurts!
    By Brodie337 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 8th, 2011, 04:44 PM
  4. Object.clone()
    By bbr201 in forum Java Theory & Questions
    Replies: 5
    Last Post: July 14th, 2010, 10:55 AM
  5. Writing clone() method for LinkedList
    By vluong in forum Collections and Generics
    Replies: 6
    Last Post: October 27th, 2009, 08:41 AM

Tags for this Thread