Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Game Play & Game Design / RPG Object Variables on: 2013-05-08 02:51:08
I'm creating a text based RPG (will be turned into a top-down dungeon crawler later), and all I've gotten to the point of developing all my Objects.

I have a basic idea of what I need inside these objects, but I would love if I could get some opinions on what else to include! I'll post what I already have, along with comments if necessary. Anything that is extended will include all of the inherited variables.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
Player class:
   private String name;
   private double evadeChance;
   private int experience;
   private int money;
   private int level;
   private int baseAttack; // starting base + stats
  private int speed; //speed based on weight and stats      //***DEFINE BASE SPEED***//
  private int finalAttack; // baseAttack + weapon damage
  private int health;
   private int skillPoints;
   private String style;      // mage/melee/range
  public Vector<Item> inventory = new Vector<Item>();      // inventory
  public Vector<Item> equipped = new Vector<Item>();      // equipped item


1  
2  
3  
4  
5  
6  
7  
8  
Armor class:
   protected int price;
   protected int level;
   protected String name;
   protected int wieldLevel;
   protected int itemLevel;
   protected int weight;
   protected double reduction; // value to reduce income damage by


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
 Weapon class:
   protected int price;
   protected int level;
   protected String name;
   protected int wieldLevel;
   protected int itemLevel;
   protected int weight;
   protected int damage;   // double?
  protected double missChance;
   protected boolean hasAmmo;
   protected boolean needsAmmo = false;
   protected String type;    // bow/axe/etc...


1  
2  
3  
4  
5  
6  
 Potion class:
   protected int damage;   // double?
  protected double missChance;
   protected boolean hasAmmo;
   protected boolean needsAmmo = false;
   protected String type;


1  
2  
3  
4  
5  
6  
7  
8  
 Ammo class:
   protected int damage;   // double?
  protected double missChance;
   protected boolean hasAmmo;
   protected boolean needsAmmo = false;
   protected String type;
   protected String forWeapon;
   protected int quantity;


1  
2  
3  
4  
5  
6  
7  
8  
9  
Creature class:
   protected String name;
   protected int damage;
   protected int level;
   protected int experience; // reward for slaying (xp)
  protected int health;
   protected int bounty; // reward for slaying (cash)
  protected double missChance;
   protected int speed; // relative to weight & base speed; getSpeed() returns speed - weightAddition


For reference: wieldLevel is the required level to EQUIP the item. itemLevel is the level of the item relative to it's effectiveness (ie. a very very rare super weapon can have a level of 999).


Any other variables you think would be good to include? I've been trying to think of others to put in here so I can finish the constructors, but I always think there's something I'm missing.
2  Game Development / Newbie & Debugging Questions / Re: Any Good Beginners Tutorials? on: 2012-02-24 17:08:58
Catacomb Snatch is a frenzied steampunk-themed shooter, I'm not sure I'd classify it as being similar to an old-school dungeon RPG other than being tile-based and top-down.

Either way, a 2D toolkit like Slick2D would go a long way.  Start small, just draw a simple map the size of the screen, then get a character that can walk around the screen, then start scrolling it.  You have the basic programming knowledge, so it's really just a matter of learning a new API.

I was saying that I would like to make old-school dungeon RPGs and games like Catacomb Snatch, not that it was a dungeon RPG.


I have no knowledge on how to even get a window to appear, never mind drawing anything on it. After I learn how to do the simple things I can learn how to do that. Obviously I would need to learn how to do even simpler things, like combine classes to work together.
3  Game Development / Newbie & Debugging Questions / Any Good Beginners Tutorials? on: 2012-02-24 15:28:28
Hi everybody, I just joined after taking a look around this site and not finding exactly what I needed. I've organized the important parts of this topic below:

Learning History / What I Know

I've taken half of an "Intro to Java" class (the way my school schedules stuff didn't let me take it, and I'm not sure if they even offer it next year Sad ) and I'm pretty sure the next half of the class would start with arrays.

In that class I've learned IO, if/else, for loops, (do) while, switch case, swing GUIs (VERY basic, just displaying them, not customizing, JOptionPane), basic math (including modulus), parsing, string manipulations (toUpperCase, etc.), type casting, (returning) methods, final variables, FileReader, printf, and System.exit(#).

I also made a few console games in my free time, learning some extra stuff: basic Thread (only Thread.sleep() ), random numbers (Random() ), how to use break and continue, and declaring multiple variables on one line (and not initializing them).

I've tried learning C++ too, so I have some basic knowledge of enums and arrays from learning that. I don't really know how to use them, just what they are and how they work.

The most complicated thing I've probably every made myself can be found here: http://www.mediafire.com/?ovssr8y17iv0yw4

What I Want To Learn

You probably know about Catacomb Snatch by Mojang, so you have a basic idea of what I want to learn.

It's mostly 2D graphics and everything associated with them. Sound, images, files from external sources (all games have some sort of sound/images folder), how to use classes, etc. I know people usually start with pong & sorts clones, but I honestly have no idea how to do that.

And one last thing. NO applets. I want a separate application window like normal games. Learning how to make it fullscreen would be nice but not necessary. Some sorts of games that I would like to learn how to make are:

A top-down old school dungeon RPG:
http://www.mediafire.com/i/?1twp090lttz9c2z


Top Down Shooters (Catacomb Snatch):
    Billions of videos, you probably already saw some...


Thanks for the help! Smiley
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (29 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (76 views)
2014-09-10 06:39:09

Tekkerue (38 views)
2014-09-09 02:24:56

mitcheeb (58 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (30 views)
2014-09-07 01:12:14

Longarmx (35 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!