Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Roundbased design on: 2005-03-14 10:43:30
Hello folks,

i m trying to implement a roundbase game, but i have no idea how to design it and have the controll over the rounds etc.

The input of the player is done via a swing panel.
A player object is set to the swing-panel and so it can controll the model which is referenced in the player object.

When the shot button is pressed by the player the panel tells the gameManeger that it is the next player's turn. When there is no next player the next round is startet and it is player's 1 turn.

so far so good.

But how can i do with ki-players?
They dont press a button to tell that they are finished.

Can i do something with events?
and when i could use events, how should i send, process the events? Who gather the events and who shuld send the events?

Confused greetings,

2  Game Development / Networking & Multiplayer / Re: What about ObjectStreams... on: 2004-10-22 07:35:13
OK... i keep on working with ObjectStreams

Now i have "only" to solve the problem with the relation between serverlocated SpriteModels ans clientlocated SpriteViews ...

It would be great when you could write somthing to that problem when you have some time.

Thanks in advanced.
3  Game Development / Networking & Multiplayer / Re: What about ObjectStreams... on: 2004-10-22 03:47:23
A WorldStatus with some Objects in it ... approx. 10 is about
is this big, small OK... i have no experieces with that stuff


one problem you may run into however is that you "wire" objects must synchronized between client and server.

This is my problem.
I have no synchronization between Objects, because i can't gat any relation between objects on the server and objects on the client.
in the world status there are infoemation about the sprites stored.
e.g. position.
with these inofs from the server about the sprites, the client can draw the sprietes, but in don t have a ship 1 on the client for ship 1 on the server....

So i always have to send the hole world also when nothing has changed
4  Game Development / Networking & Multiplayer / What about ObjectStreams... on: 2004-10-21 06:55:24
Hi folks...

i have finished my fisrct basic Network code and would like you to have a look on it.

First question:
I'm using Oject Streams for the communication between clients and server.
Is the use of this streams much less performant as DataStreams?

Question two:
i have written a small space simulator where spaceships can fight each other.
I realise the synchronization between server World and client world as follow:

The server world has a mainloop.
in the loop the server do the following:
- sync the time
- update all sprites
- check collison
- sends worldstatus

The world status is a WorldData Object which contains the position, velocity, color and some more attributes (e.g. name, enrgie are optional) continously to all clients.
The World state is timestampted

The clients recieve the data and store them.
in the mainloop, the clients do the following:
- calculate the lag (timestamp of World - current time)
- update the world status with the lag
(it s a simple interpolation based on the velocity of each sprite)
- check player controlls and send them to server
(each controll is a simple object)
- paint the world

What could i optimize?
Is this strategie acceptable?

Question 3:
I have problems to connect the modells of my sprites which are flieng around in the werver world with my SpriteViews, which should be managed on the client.
i can't  assign the model on the server to the view on the client.

To solve this i implemented a little Renderer, which decide based on a casting, weather to paint a ship or ah shot (e.g.)
But i don t have a view fpr each sprite on the client..
I hope you can understand my problem.
if i could implement a connection betwwen a server model and a client view, i would be able to reduce the data, which is neccesarry to draw the Sprite.
(e.g. playername, color)

I hope someone can help me here.

Thanks in advanced
5  Game Development / Networking & Multiplayer / Re: How to start a network support... on: 2004-10-18 11:38:19
OK... i m ready with my basics

my server stores the models and braodcast all 15ms the world status to all clients...

the clients recieve these data and draws the world.
Also they grap all keyPressed & Keyreleased Data and sends them in a proper way to the server.

in LAN it works with a lag of 30 ms....

tonight my gamecore will have a try in the internet...

Just because i m interesting:
is RMI a performant way to do a client-server communication?

This would have the advantage that messages shouldnt't be generatet by client and parsed by server.
6  Game Development / Networking & Multiplayer / How to start a network support... on: 2004-10-12 08:58:59
Hi folks,

i 'm trying to implement my first game and i have the physics ready.

now i want to add network support, but i don t know how to do it.

As short info:
Its a 2D Game.
In this game there are 2 (or more) spaceships, which fight against each other.

I have difficulties to get an idea how to synchronize my world on the diffrent clients.

perhaps anyone of you can give me some advises.

A Spaceship has a position, a velocity, a orientation and an image which displays the ship.

If you need more information, don't worry to ask :-)

Thanks in advanced
7  Java Game APIs & Engines / Xith3D Forums / Re: Xith crashes... on: 2004-05-18 03:18:36
i had simmilar problems on my notebook.
There is an ATI Card inside, too.

I think, its a driver problem.
ATI drivers for mobile GFX Cards an Java don t like each other.

If you google with the keyword "+Java +ATI", esecially in the groups, you will find many postings with similar problems.

This don't solve your problem, but it explain it.
I hope so.

8  Java Game APIs & Engines / Xith3D Forums / Re: Xith3D / jogl errors on: 2004-05-12 08:36:27
i think that you havn t installed xith correctly.

You must copy all DLL's from jogl and joal into your bin path of your SDK or JRE (depends which one you use for running the xith app)

also you have to include all the jars in your classpath.

Here ( you find a step by step tutorial how to install xith
9  Java Game APIs & Engines / Xith3D Forums / Re: Missing Behaviours in Xith on: 2004-05-07 17:52:39
ok, then i have to wait...

but i'm doing fine with an keylitener now...

but i still think that behaviors are the nicer way of controlling objects...

10  Java Game APIs & Engines / Xith3D Forums / Problems with Sprite3D? on: 2004-05-05 17:53:02

i want to write a sprite3D class, wich has the basic features of moving.

But i have several Problems which i can t solve on my own  Roll Eyes

Here is my code:
 * Created on 05.05.2004
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments

package de.TWOmas.xith.sprite;

import java.text.DecimalFormat;

import javax.vecmath.Point3d;
import javax.vecmath.Tuple3f;
import javax.vecmath.Vector3f;

import com.xith3d.scenegraph.Switch;
import com.xith3d.scenegraph.Transform3D;
import com.xith3d.scenegraph.TransformGroup;

 * @author Besitzer
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments

public class Sprite3D {
      private Vector3f posVec = new Vector3f(0,0,0);
      private Vector3f directionVec;
      private Vector3f strafeVec;
      // Y is pointing up
      private Vector3f upVec = new Vector3f(0,1,0);
      /** Speed of the Sprite */
      private float spriteSpeed = 10;
      private TransformGroup transformGroup;
      private Transform3D transform = new Transform3D();
      private Transform3D tmpTransform = new Transform3D();
       * @param transformGroup
       * @param direction

      public Sprite3D(TransformGroup transformGroup, Vector3f direction) {
            this.transformGroup = transformGroup;
            directionVec = direction;
      public void move(Vector3f move){
      public void rotXYZ (float x, float y, float z) {

I don t know, wether this methods work corectly, so plz comment, if u find any trouble.

Here are my problems:
Must i submit the direction of the sprite in the constructor? I think yes. How should the Class know how the sprite is aligned, right?

How do i update my Strafe Vec after rotation?
I need them to rot along strafe and direction axis,
because my sprites should move in terrain.

Thanks for helping...
11  Java Game APIs & Engines / Xith3D Forums / Re: Missing Behaviours in Xith on: 2004-05-04 10:19:07
i m sure that the abstract Class Behavior and some subclasses are in the Xith3D packet....

for example  Grin

But what about the wakeupCriterions?
i don't know how to implemement an behaviour without them.

In Java 3D there are many of them like
WakupOnAWTEvent which i need for my Problem.

Can i implement my own WakeupOnAWTEvent by extend WakeupCriterion?
But what should i put in
void hasTriggered()?
12  Java Game APIs & Engines / Xith3D Forums / Re: Missing Behaviours in Xith on: 2004-05-04 09:43:52
i studied the Xith API and noticed that behavior is implemented.

If i m right, i have to extend my own behavior like KeyBehavior like that

public class KeyBehavior extends Behavior{
      private WakeupCriterion criterion;
      public void initialize() {
            criterion = new WakeupCriterion() {
                  public boolean hasTriggered() {
                                    return false;

      public void processStimulus(Enumeration arg0) {

But how can i define the criterion to be triggerd on a KeyEvent from the Canvas3D?

Here i can't fit the things together?
Also, because wakupcriterion is an abstract class.
What should i implement in WakeupCriterion#hasTriggerd()
13  Java Game APIs & Engines / Xith3D Forums / Missing Behaviours in Xith on: 2004-05-03 10:44:28

i start reading all texts and tutorials referring  to Java and 3D.

And because of the simmilarity of Java 3D and Xith i often could use the stuff from Java 3D in my Xith tests.

I also read somthing about behaviours implemented in the Java 3D API.
I think it's a nice way to control the objects and miss it in the Xith API.

Is behaviour going to be implemented?

And somthing else:
In Java 3D it s possible to place a Canvas3D in a JFrame.
Why couldn't I do this in Xith? :-/

Thanks for help

14  Java Game APIs & Engines / Xith3D Forums / Re: with which programm can i create ASE? on: 2004-04-30 19:44:45
ahh i just find the loaders from kev.

Now i have only to understand how they work.

Wish me luck  Smiley
15  Java Game APIs & Engines / Xith3D Forums / Re: with which programm can i create ASE? on: 2004-04-30 08:34:42
OK, i createt my Model with Wing 3D.
I think this tool is the most convenient one, esecially for beginners.

Now i export my Model as 3ds and obj file.

But how can i load it into my xith application?
And how can i load each individuall group as note?

I only can group the diffrent Parts in Wing3D but i can t build a real hierachy.

Should it be better, to build the models in an other tool to built up the dependencies of the single parts?

Thanks for help
16  Java Game APIs & Engines / Xith3D Forums / Re: with which programm can i create ASE? on: 2004-04-29 16:43:31
OK... didn t know that ase is exotic.

But i can i load 3ds models as a nodes
17  Java Game APIs & Engines / Xith3D Forums / Creating large random landsapes with Hills? on: 2004-04-29 15:37:25
Hi community,

i have finished my first steps in 3D programming and want now to create a large random landscape.

This landscape should be changeable.
For Example, when there is an explosion, this should lower the land at this point.

It schould be a landscape with hills.
But i have no idea, how to do this.
Do you know any links?
Do you have any suggestions?

Thanks fpr tips and help
18  Java Game APIs & Engines / Xith3D Forums / with which programm can i create ASE? on: 2004-04-29 15:34:08

i m quit new to the 3D Business and startet my first programms with Xith.

Now i want to create my own models, but i don t know which Programm can export models as ASE.

I read about 3D Studio Max but it s far too expensive for me.

Is there a cheaper or free alternative?
i downloaded g max, but this can only export plasma (*.p3d).

Thanks fpr help and tips.
Pages: [1]
DesertCoockie (20 views)
2018-05-13 18:23:11

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

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

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

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

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

Solater (95 views)
2018-03-17 05:04:08

nelsongames (168 views)
2018-03-05 17:56:34

Gornova (378 views)
2018-03-02 22:15:33

buddyBro (1038 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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 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!