Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  Java Game APIs & Engines / J2ME / Re: Bluetooth on: 2005-04-25 15:41:31
well i think ive worked out where my implemenation is going wrong, i am using a RFCOMM method with streams, if use an OBEX method i can send small files of information (say in XML) about the mirrored player, thus being more relaible and informative,

any ideas?

cheers
2  Java Game APIs & Engines / J2ME / Bluetooth on: 2005-04-23 12:18:58
Hiya,

having polished off my single player function i have decided to continue with my project specification (part of my uni dissertation) and implement multiplayer bluetooth.

have managed to get the phones connected, loading into the game and placing the two players. moving a player on one phone moves its mirror on the other phone, cool right!

my implementation may work, but its not exactly robust. here s the situation.

i have a class called player, so i have a created a vector which contains 2 instances of the class player, one the server the other the client.

the keystates from one handset are fed to the other, but the Player moves to far (in the right direction), do you suppose that i also send the precsie location of the player instead, to ensure continuity as the game is constantaly alsive refreshing itself? would i be better feeding game logic rather than keystates?

also, when using a stream how does it scheduele the inputs and know the tag associated with a transfer for sending more than one variable?

also, any clues what a IOException error 10054 during TCP wirte means? or is it just when one phone has dies and cant communicate?

are there any bluewizards who could shed some light on this topic?

(i reccomend the book Bluetooth application programming, by Kumar et al, pretty helpfull stuff, got me from nothing to here in 3 days)

cheers guys, www.pistachiomonkey.com

3  Java Game APIs & Engines / J2ME / Re: adding sound! on: 2005-04-07 14:08:20
david you are a true legand!

my monkey can now battle to the sweet guitar rifts of Luarance Juber's pass the buck! simply sensational! Grin
4  Java Game APIs & Engines / J2ME / Re: adding sound! on: 2005-04-06 13:24:37
cheers David,

here's the returned complier build errors:

C:\WTK22\apps\Monkey Madness\src\MadnessMIDlet.java:434: incompatible types
found   : javax.microedition.media.Player
required: Player
      Player audioPlayer = Manager.createPlayer( is , "audio/midi");
                                               ^(this hat apperas under the 1st paranthases'(')
C:\WTK22\apps\Monkey Madness\src\MadnessMIDlet.java:435: cannot resolve symbol
symbol  : method start ()
location: class Player
      audioPlayer.start();
                 ^(this hat apperas under the first dot .)
2 errors
com.sun.kvem.ktools.ExecutionException
Build failed

here are my imports:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
import javax.microedition.rms.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import java.util.*;
import java.io.*;

um the method that does this call is in the MIDlet. is there any other info you need to diagnose this situation

many thanks for your time

Nick
5  Java Game APIs & Engines / J2ME / Re: adding sound! on: 2005-04-05 12:48:37
thank you david, once again!

i have downloaded and complied the sheepdog example with success, and refrenced the midi file appropriatly but i continue to get an incompatible type error pointing to the use of 'is' on the Manager.createPlayer?? it says required type is Player?

have also made sure that i am importing the media API, aggghh  Shocked

so frustrted with this as it seems so easy?

any other pointers guys?
6  Java Game APIs & Engines / J2ME / adding sound! on: 2005-04-04 14:34:15
i am trying to add sound to my game and have found this implementation

try {
InputStream is = getClass().getResourceAsStream("song.mid");
Player audioPlayer = Manager.createPlayer(is, "audio/midi");
audioPlayer.start();
} catch (IOException ioe) {
} catch (MediaException me) { }

problem is i keep getting a compliation error pointing to the 'is' in the second line with the manager, saying its an incompatible type. i have imported java.io, util, the microedition.media and media.control, where am i going wrong?

any ideas?

cheers
beta test the current game @
www.pistachiomonkey.com
7  Java Game APIs & Engines / J2ME / Re: It will run on emulater but not on real phone on: 2005-04-04 12:44:36
sorted my problem and thought i would complete this thread and post my latter findings.

prefreably dont uses spaces in the name of your jar as it can be confusing with the whole %20 http substitution in the jad

and um just make sure your jad is perfectly correct, the smallest byte of inaccuracy will fail the authentication process,

happy porting, it trully is a bit of a nightmare!

eZ
8  Java Game APIs & Engines / J2ME / Re: It will run on emulater but not on real phone on: 2005-03-11 09:42:39
i am having the same problem porting to a device, i have read the above information but am still having problems, why oh why, the frustration!

any more clues?

url of the game is
http://www.pistachiomonkey.com/mm/

many thanks if you can help me?

cheers
9  Java Game APIs & Engines / J2ME / Re: Remove Sprite and Array on: 2005-02-17 17:24:28
Quote
A much simpler solution is just to use a Vector instead of an array. Then, yes, if you do 'vector.removeElementAt(2);', afterwards the elements at 3 upwards are moved to being at 2 upwards. (Actually, the Vector's implementation has done a System.arraycopy just as above).


i am using this method as described above, but when i call remove element some of the 5 sprites (DROIDS) crash and the sprite stays on the screen!?

monkey = new Monkey(this);
         layerManager.append(monkey);

//DROIDS
         for (int i = 0; i < NUM_DROID; ++i)
         {
           try{
             System.out.println(NUM_DROID);
             Droid newDroid = new Droid(this);
             layerManager.append(newDroid);
             droid.addElement(newDroid);
           }
catch(IllegalArgumentException e)
           {System.out.println("Error" + e);
           }
         }

any ideas as to what else may be necessery to handle this implementation?

many thanks!
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (38 views)
2014-09-24 16:13:29

Pippogeek (29 views)
2014-09-24 16:12:22

Pippogeek (18 views)
2014-09-24 16:12:06

Grunnt (42 views)
2014-09-23 14:38:19

radar3301 (24 views)
2014-09-21 23:33:17

BurntPizza (61 views)
2014-09-21 02:42:18

BurntPizza (31 views)
2014-09-21 01:30:30

moogie (36 views)
2014-09-21 00:26:15

UprightPath (49 views)
2014-09-20 20:14:06

BurntPizza (53 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!