Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  I need help in understanding JAVA  (Read 3254 times)
0 Members and 1 Guest are viewing this topic.
Offline learner

Innocent Bystander

« Posted 2005-11-15 17:11:11 »

Hi everyone. Grin
I hope someone will help me in understanding JAVA. i am really new to it all. I also want to design a game.

The world consists of  a number of places.  Each place is created with a fixed set of (natural) resources, and an initial set of neighboring places.  The game should then instantiate the players, which may be human, or computer-controlled. 
Play proceeds in rounds: on each round, the following steps occur:

•   At each place, harvest() is called on each harvester at that place, each harvested resource that is non-renewable, is appropriately decreased at that place.  The quantity of a resource produced by a single call to harvest() on a harvester is a reflection of the efficiency of the harvester.

•   At each place, produce() is called on each factory located at that place.  No units of a commodity will be produced by a factory if the necessary commodity inputs and resource inputs are not present (in the necessary quantities) at the place.  The number of units produced by a factory by a single call to produce() is determined by the efficiency of the factory (an innate property) and the availability of both types of inputs.

•   Each player is given a turn.  In one turn, a player may:
   Specify how to redeploy assets
   Interact with other players (e.g. trade, do battle, agree on prices, exchange technologies (which affects efficiencies), or other similar act of strategy.

•   Actions requested by players are executed.  (e.g. redeployment of harvesters, construction of factories, setting of prices etc).

Places are companies, resources are coarsely bundled as either "energy" or "human potential".  Implementations of harvesters could be solar panels, dams, gas turbines, fuel cells and windmills for harvesting energy; while harvesters of human potential could be high schools, community colleges and universities.  [This example makes "harvester"  seem a little inappropriate as a name, as we are really  talking about things that are needed to tap a resource, so they actually appear as producers of the resource]. 

The Commodity interface could be implemented by classes that represent computing services, financial services, food, toys, electronic devices, etc.  Each of these would have important  dependencies on resources, and possibly on each other.  For example, if the amount of food goes below a certain threshold, there is a loss of the amount of human potential at the start of a round; and financial services require a certain amount of each resource to produce a single unit, but each unit produced in a round has the effect of multiplying the money earned in that round.

The Factory interface could be implemented by several types of   departments.  Money could be earned by trading "commodities" produced, which could then be used to acquire more instances of harvesters and factories.  Each player would begin with a certain amount of money, and a single company.  His objective is to become the richest player after 50 rounds.  (The objective could also be to eliminate the other players by acquiring their companies, or to have the largest conglomeration of companies after a specific number of rounds).
I would really love it if someone could help in designing this game.
REMEMBER, I am new to java but i am a fast learner

Offline CaptainJester

JGO Knight

Medals: 12
Projects: 2
Exp: 14 years

Make it work; make it better.

« Reply #1 - Posted 2005-11-23 12:49:25 »

You should first learn to program.  Then program some simple games.  Then try to program a more complex game.

Start with The Java Tutorial  Do the entire tutorial from start to finish before moving on.  After doing that you can answer a lot of questions yourself.

Next do some simple games first.  Testris, Space Invaders, Asteroids, etc

Then you can move onto something more complex, like your planned game.

Offline richardGoulter

Senior Newbie

Java - n. 2nd only to Chocolate

« Reply #2 - Posted 2006-01-01 00:51:48 »

Once you've learned to program (and learned the java programming language, to the point where you can create a program)

you can search the net for game programming tutorials.

Space Invaders 101 (up until 104) is a great tutorial in a set of great game programming tutorials (it gets up to advanced stuff,  but explains it)

or the one i learned from was java-cooperation (i still wasn't quite a programmer when i read this one, but i learnt).

the former one deals with applications, the latter one with applets.
read space invaders one at least, and then maybe the other one.

What do i put here, i wonder... 218, 211, 207...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mr_Light

Senior Devvie

Medals: 1


« Reply #3 - Posted 2006-01-01 13:06:33 »

I wonder where you'd got the specifications from?

so your new to java but do you have any programming expirence at all?

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline Riven

« JGO Overlord »

Medals: 1356
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #4 - Posted 2006-01-01 13:10:57 »

He was just asking us to do his homework. You can clearly see it's an assignment.

Not much wrong with that, if he was eager to learn, and needed a little help, but as he hasn't replied in this thread, he appearantly isn't really interested in our suggestions.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline Adijatsalisu

Junior Newbie

« Reply #5 - Posted 2007-07-09 14:26:05 »

It clearly seems the guy is not interested but I am.
I am in my third year and I am not new to java but i don't know anything about creating 3D games in java.I really need help and I will be glad if anyone can help.Cos I have  limited amount of time

Pages: [1]
  ignore  |  Print  

EgonOlsen (1669 views)
2018-06-10 19:43:48

EgonOlsen (1706 views)
2018-06-10 19:43:44

EgonOlsen (1158 views)
2018-06-10 19:43:20

DesertCoockie (1585 views)
2018-05-13 18:23:11

nelsongames (1185 views)
2018-04-24 18:15:36

nelsongames (1709 views)
2018-04-24 18:14:32

ivj94 (2533 views)
2018-03-24 14:47:39

ivj94 (1758 views)
2018-03-24 14:46:31

ivj94 (2835 views)
2018-03-24 14:43:53

Solater (971 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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‑
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!