Real Time Strategy game

Hi,



I want to create a game using the jME, but I've a few questions.



First : how does the engine treat the map positioning and size?

Second: militar units have movement speed, how does jME understand and implements such variable?

Third: Would i be able to implement the "fog system" for map exploration? (maps are only open when u send an unit there and is only updated when you have an unit close to it, this point me another question).

Fourth: Each unit has a view range, that is used to open the maps and check updates on it, jME has anything to help me on that?

Fifth : Has jME a thread system for control several units at the same time?



Regards,

Thiago

Pilon said:

First : how does the engine treat the map positioning and size?

The engine doesn't have a concept of maps. You can create a 3D object, put it somewhere, rotate it and change its size.

Pilon said:

Second: militar units have movement speed, how does jME understand and implements such variable?

jME does not have a concept of "movement speed". This variable, and its associated functionality is to be implemented in your own code.

Pilon said:

Third: Would i be able to implement the "fog system" for map exploration? (maps are only open when u send an unit there and is only updated when you have an unit close to it, this point me another question).

By fog I assume selective darkening of the game level at certain areas. You can do this with fog texcoords or vertex color (TriMesh.getColorBuffer). Objects that are inside the fog should be darkened as well, you can use material color (MaterialState.setDiffuse/setAmbient/setSpecular). While in your game level data structure you keep a matrix or similar that tells for each map vertex if its fogged or not.

Pilon said:

Fourth: Each unit has a view range, that is used to open the maps and check updates on it, jME has anything to help me on that?

No, you periodically check the units' view ranges and update the fog matrix that I mentioned above.

Pilon said:

Fifth : Has jME a thread system for control several units at the same time?

You don't need a thread system to control units, you just iterate them like so:


for each unit in map
     unit.doLogic()

Hi,



I have an idea for a RTS game. I just learning JME for a year (but i have many years experience of Java developing-on business side…)

So, i just want to create a kind of pilot project to have deeper knowledge about JME.

Please give me some initial idea to start this project.

Which classes can provide some RTS specific code?

After that basically what are the steps to make a RTS

For example:

  • implement the units movement system (move, turn, start, stop)
  • implement the map (basically to have the map)
  • implement the units "advanced" system (shoot, path finding)
  • implement other map features like the map is dark while a unit is discover it
  • etc …

    I just want to create a kind of (priority) list to have done this pilot project.

    It's a pilot project because i thought all units are box at the start and all building is a box too.

    It is possible to create a pilot project like this before i use models, etc?

    Could i implement the unit's AI and other advanced systems and after that i change the model?



    Thanks and sorry for my English!


You will have to write your own classes that represent game entitys etc. and develop your own ways to have them interact etc. Thats what writing a game is about.