KeyListener, sound problems with game

Hi All!

I'm new to gaming.. I've developed a game called Puyo Puyo using Swings. But its got some problems...

>> My game plays well for the first time butdoesn't restart.

>> Im unable to implementkeyListeners.. they simply dont work..

>> Can someone tell me how to addsounds to my game?

>> When executed, ablank window appears first, then on maximising.. evrything else comes into picture.. how do i rectify this?

Please help me out at the earliest wid all ur possible and favourable hints n replies..

Take Care ya'll!

[633 byte] By [Afsha] at [2007-10-2 23:48:35]
# 1

If u facing wiith problem that keylistener is not working then try to use setfocuse: ie setFocusable(true) with ur JPanel or what evre u r usin.

Brother can u tell wht logic u hv used for checkin more than 4balls in row and how to clear the board when more than 4 baals get in contact .If u know d logic plz help me and reply me at ID :

amitchugh_14@yahoo.com

thnaks in advance...........

amitchugha at 2007-7-14 16:33:31 > top of Java-index,Other Topics,Java Game Development...
# 2

Hello...

I'm trying to develope Puyo Puyo(Variation of tetris) game through Java(Java Console Application). The game is like that we have to display 4 types of smiles & if 4 Similar smilies forms the row or Column then score is increased & that row/column will be removed from Application. Still now I'm abel in generation of random smilies & moving then left/ right.

But how can I manage to create a array of images & detect whether they forming rows/columns. Plz give me Hints.

Thanks in Advance

amitchugha at 2007-7-14 16:33:31 > top of Java-index,Other Topics,Java Game Development...
# 3
Try this for an example: http://java.sun.com/developer/technicalArticles/Media/soundbarrier/index.htmlmake sure to include the sounds in the jar if you run from one.
patrickmallettea at 2007-7-14 16:33:31 > top of Java-index,Other Topics,Java Game Development...