PDA

View Full Version : [JAVA]Life, simple GUI game.



reese
June 24th, 2010, 05:56
Okay when i made this i thought it would be named growingUp, but I went in a different direction. So know it's named simply, Life. A simple GUI program/game. I find it fun, you can work minimum wage, or go to college for money and then be able to be a doctor for more money and you can work one shift a day and you pay on a apartment every 30 days. Please download and give me suggestions on how to expand. Also added a bank and a cheating panel with a password, it's my user name.
Only the registered members can see the link.
Only the registered members can see the link.

Oh yea the marry and break up buttons don't work yet, I'm lazy.
Might change starter money in bank to half, like for scholarship money.

Oh yea, hopely since this site got reset we don't have flamers, but I'll go ahead and do this.
I DIDN'T LEECH THIS IDIOTS IF YOU WANT I'LL SEND YOU A MESSAGE ON THE SITE I ORIGINALLY POSTED THIS ON.

fr00zen
June 24th, 2010, 06:08
lmao seems said but ima use it :P

reese
June 24th, 2010, 06:22
lmao seems said but ima use it :P

seems what? and feel free to use it[=

Fanz
June 24th, 2010, 18:22
Looks nice, might make something like this later, would be gunner with more customisaton as in your avatar, your apartment and buying and placing furniture

Faab234
June 24th, 2010, 18:33
I need to pay if i'm 20 and i move in with parents. But nice job

Fenway`
June 24th, 2010, 19:01
lol pretty interesting

aTime
June 24th, 2010, 20:02
Don't take this as flame, but I hate games that use Java components, you should learn about Graphics and Graphics2D in general.

Mish
June 24th, 2010, 20:04
Nice wish I could make something like this.;)

reese
June 24th, 2010, 22:55
I love them, Most people can't even make this. I'm learning about all that too atm.

samuraiblood2
June 24th, 2010, 23:52
Sucks, its not the concept that's bad but the program. If I were you, I would set up an open-source SVN and do this the right way.

reese
June 24th, 2010, 23:58
Sucks, its not the concept that's bad but the program. If I were you, I would set up an open-source SVN and do this the right way.

How's the program bad? It's fine, nothing wrong with it. Correct and non-messy code.

samuraiblood2
June 25th, 2010, 00:24
Correct and non-messy code.
You used a GUI creator which always causes messy code. Also, your programming conventions are wrong for the things you actually did make yourself (like the class name).

reese
June 25th, 2010, 01:21
You used a GUI creator which always causes messy code. Also, your programming conventions are wrong for the things you actually did make yourself (like the class name).

Conventions are right, I wasn't talking about the generated code. That shit's suspected to be messy when you use the GUI builder.

Peter
June 25th, 2010, 01:23
Reminds me of "Ganster" on my old calculator

New Clear
June 25th, 2010, 01:24
Going to check it out right now.

samuraiblood2
June 25th, 2010, 01:29
Conventions are right, I wasn't talking about the generated code. That shit's suspected to be messy when you use the GUI builder.

That's why you take the annoying shit (such as those annoying X and Y coordinates) from generated code and add it into your own crap. Also, how is


double withdrawamount;
double depositamount;



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* grow.java
*
* Created on Jun 23, 2010, 12:02:30 AM
*/
/**
*
* @author Jacob
*/
public class grow extends javax.swing.JFrame {
Following proper conventions? Ill say it again, make a public SVN and even I may be inclined to help.

reese
June 25th, 2010, 03:12
That's why you take the annoying shit (such as those annoying X and Y coordinates) from generated code and add it into your own crap. Also, how is


double withdrawamount;
double depositamount;



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* grow.java
*
* Created on Jun 23, 2010, 12:02:30 AM
*/
/**
*
* @author Jacob
*/
public class grow extends javax.swing.JFrame {
Following proper conventions? Ill say it again, make a public SVN and even I may be inclined to help.

the */ shit was auto generated.

Austin
June 25th, 2010, 05:37
Good job. You should add map rendering then make it like the real game board then sell it :)

reese
June 25th, 2010, 07:00
Good job. You should add map rendering then make it like the real game board then sell it :)

I was planning to go that way[= once people gave me suggestions then I'de take the methods and such and move them over to a 2D engine.

firescape_team
June 25th, 2010, 10:29
Sucks, its not the concept that's bad but the program. If I were you, I would set up an open-source SVN and do this the right way.

Yeah so you could leech it and call it your own.

Trey
June 25th, 2010, 15:07
the */ shit was auto generated.

He wasn't referring to the comments, lol. The class name doesn't grammatically follow class naming conventions, and it is lowercase. There are two problems right there.

And the first word in a variable should be lowercase, but every word after that should begin with a capitalized letter:



private int thisIsAnExample;


I don't know if those fields were instance variables or not, but you should also always declare instance nvariables with an access modifier, and instance variables should practically never be public if they aren't static and constant (final), (disregarding Java's famous array.legth vs String.length() vs collection.size() design fuck up).

@Firescape_team Keep your mouth shut when you don't know what or who you're talking about.

samuraiblood2
June 25th, 2010, 16:22
Yeah so you could leech it and call it your own.

That made me piss myself laughing.

TehCow
June 25th, 2010, 16:24
Very funny :)

reese
June 25th, 2010, 16:51
He wasn't referring to the comments, lol. The class name doesn't grammatically follow class naming conventions, and it is lowercase. There are two problems right there.

And the first word in a variable should be lowercase, but every word after that should begin with a capitalized letter:



private int thisIsAnExample;


I don't know if those fields were instance variables or not, but you should also always declare instance nvariables with an access modifier, and instance variables should practically never be public if they aren't static and constant (final), (disregarding Java's famous array.legth vs String.length() vs collection.size() design fuck up).

@Firescape_team Keep your mouth shut when you don't know what or who you're talking about.

Regarding the int etc. I meant to put them correctly, forgot :/ But this is a base, before I make a more advanced game with a map this was just testing certain things out and getting ideas set.
The class case it was early and wasn't really thinking but yea.