February 25, 2009

ultimate fight 3d java game

in this version you can fight as iran,us,german,france,spain,......in place iran us, france,china ....
watch it here


and download it from
http://www.esnips.com/web/ultimatefight

gamepicture1
Hosted by eSnips

Read more »

February 24, 2009

animation and sound in 3d games

for this purpose you should use synchronized function for synchronized animation and sound with

your events occurred when key pressing.for Synchronize any functions you should use synchronized word before you functions this function is used for play mp3 sound
public synchronized void playmusic(String file)
{
if(sound==0)
try
{
Player p = Manager.createPlayer(file);
p.setLoopCount(5);
p.start();
}
catch(IOException e)
{
System.out.println("Error in io : " + e.toString());
}
catch(MediaException e)
{
System.out.println("Error in media : " + e.toString());
}
}
you should add this function in function that you want played syncronized .
public void keypress()
{
playmusic(file);
}
for animation you can make any arbitary function like this
syncronized void animation()
{
x++;
group.setTranslation(x,y,z);
}
this function force to moving a group in x axis without stop!
this was a sample way for animation and sound in java 3d game.
Read more »

February 17, 2009

download ultimate fight 3d 0.1 (my new game)


sorry for my late. i worked in my new game.this is ultimate fight 0.1.this game is in testing and contain a one level and two player now but this will be enhanced as soon as.in this video you can see game in snaps.

watch it

and download it from here
download it
Read more »