Thursday, July 7, 2011

okay im going to try for a weekend release of a tech demo. Just keep in mind i'm not experienced in programming or java so about 90% of the time i'm screaming at my computer.
Basically my todo list

I hate posting again after a post old post so im going to try to keep you guys updated with blogger. I will edit the front page saying whats done but that it's. No percentage update or code.

[WHAT?]Find public information for running my game files.
[80%]Finish character.class
[50%]Get character class working with statsTest .class
[on hold]Import a GUI and edit it making a template.
[on hold]Make several new gui off the template.
[80%]Write Sex scene and change results depending on character.
[0%]make a monsterRace.class as a super class along with a some other class for a [0]monster type followed by a version of said monster.
[0]Make barebone combat system.

Maybe write a sex scene.

So to start off with how about some code
________________________________________________
So a note about the code below. This will not compile without a class file named "GUI" and a method named "pickUpGUI"

However you can remove these 2 times of code

GUI mainGUI = new GUI();
mainGUI.pickUpGUI();
and it should compile just fine.
________________________________________________

/*
*
* Copyright to BlueLight
* You may base your software off the source code but you may not claim it as
* your own and you must give it your own style.
*/

import javax.swing.JFrame.*;
/**This will be the main game class
We will start by making a object of GUI class and then using pickUpGUI
**/
public class FallingStar {

public static void main(String[] args) {
GUI mainGUI = new GUI();
mainGUI.pickUpGUI();
String blueLight = "BlueLight(Jordan)";
//Starts a line for credits
System.out.println("Credits");
System.out.println();
//Who gave helpful ideas
System.out.println("Inspirational");
System.out.println("rooiehaan");
System.out.println("bed_intruder");
System.out.println();
//Who helped with the programming in the game
System.out.println("Programmer");
System.out.println(blueLight);
System.out.println();
//Who gave or helped with the art
System.out.println("Artist");
System.out.println("rooiehaan");
System.out.println();
//helped the idiots with java, mainly me.
System.out.println("Tech support");
System.out.println("Banana");
System.out.println();
//Who helped with the Story
System.out.println("Story");
System.out.println(blueLight);
System.out.println("rooiehaan");
}
}
___________________________________________
The below code wont compile with out a class file named "characterBody" and it has to have the methods "Head", "Chest", "upperArm", "lowerArm", "Waist", "upperLeg", "lowerLeg", "Foot".

I do provide the code for them below statTest
___________________________________________
/*
*
* Copyright to BlueLight
* You may base your software off the source code but you may not claim it as
* your own and you must give it your own style.
*/


public class statTest {
// all the int's here do just about nothing. Think of them as place holders for now.
int HP = 0;
int Strength = 0;
int Resistance = 0;
int Agilty = 0;
public static void main(String[] args) {
characterBody StatMain = new characterBody();
StatMain.Head();
StatMain.Chest();
StatMain.upperArm();
StatMain.lowerArm();
StatMain.Waist();
StatMain.upperLeg();
StatMain.lowerLeg();
StatMain.Foot();
}
}

___________________________________________
So a mistake i did was made all the methods void. Basically that means i get no number return. However it compiles and i've got a test for the methods to make sure they are working. This is right now my project so i should have this fix by the end of the 7th hopefully.
___________________________________________

/*
*
* Copyright to BlueLight
* You may base your software off the source code but you may not claim it as
* your own and you must give it your own style.
*/


public class characterBody {


public void Head() {
System.out.print("Head work, ");
int hpHead = 0;
int resistanceHead = 3;

}
public void Chest(){
System.out.print("Chest work, ");
int hpChest = 10;
int strengthChest = 0;
int resistanceChest = 0;
int agiltyChest = 0;
}
public void upperArm(){
System.out.print("upperArm work, ");
int hpUpArm = 0;
int strengthUpArm = 0;
}
public void lowerArm(){
System.out.print("lowerArm work, ");
int hpLowArm = 0;
int strengthLowArm = 0;
int resistanceLowArm;
}
public void Hand(){
System.out.print("Hand work, ");
int resistanceHand = 0;
int agiltyHand = 0;
}
public void Waist(){
System.out.print("Waist work, ");
int hpWaist = 0;
int agiltyWaist = 0;
}
public void upperLeg(){
System.out.print("upperLeg work, ");
int hpUpLeg = 0;
int strengthUpLeg = 0;
int agiltyUpLeg = 0;
}
public void lowerLeg(){
System.out.print("lowerLeg work, ");
int hpLowLeg = 0;
int strengthLowLeg = 0;
int resistanceLowLeg = 0;
}
public void Foot(){
System.out.print("Foot work");
int resistanceFoot = 0;
int agiltyFoot = 0;
}

}

No comments:

Post a Comment