Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
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 3003 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.

DESCRIPTION:
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 http://java.sun.com/docs/books/tutorial/index.html.  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


shiny.


« 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
Administrator

« JGO Overlord »


Medals: 1324
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

Tnx
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (107 views)
2017-09-30 02:57:34

theagentd (134 views)
2017-09-26 18:23:31

cybrmynd (244 views)
2017-08-02 12:28:51

cybrmynd (236 views)
2017-08-02 12:19:43

cybrmynd (237 views)
2017-08-02 12:18:09

Sralse (251 views)
2017-07-25 17:13:48

Archive (863 views)
2017-04-27 17:45:51

buddyBro (1006 views)
2017-04-05 03:38:00

CopyableCougar4 (1564 views)
2017-03-24 15:39:42

theagentd (1372 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!