Re: Java programming language and audiogames.

2019-10-24 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Hello everyone! As promised, I am ready to share my first game with you! I specify immediately that it is a very simple game, but for me it was the first experiment to try the java language and solve the different problems that presented themselves.The game is, as I predicted, the popular paper, rock and scissors game, which I reworked. In fact for the course it was requested to program this game, but in a dos window, without sounds, without any interaction with the keyboard.Clearly started the game first in text form helped me to think about the mechanisms of the game.I went further. I added the interaction with the keyboard, the sounds and the speech synthesis!The file you will download is a zip that contains an exe file, yes you heard it right! In fact I used a program called jar2exe, which by the way is very accessible! In addition to this there will be the java runtime folder, which is about thirty mega! Yup! Here too you heard right!In other words things have improved a lot compared to a few years ago. In fact using jdeps you can understand which java packets are actually needed for that application, and then with jlink you create the custom java folder. From 300 mb to 30 mb there is a big difference!In short: the archive that you download does not require any Java runtime installation, or anything else!At this point good download, let me know your opinion, and please, be good ... It's my first game, but I did my best to make it interesting!https://drive.google.com/file/d/1uHRp38 … sp=sharing

URL: https://forum.audiogames.net/post/470439/#p470439




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-24 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Hello everyone! As promised, I am ready to share my first game with you! I specify immediately that it is a very simple game, but for me it was the first experiment to try the java language and solve the different problems that presented themselves.The game is, as I predicted, the popular paper, rock and scissors game, which I reworked. In fact for the course it was requested to program this game, but in a dos window, without sounds, without any interaction with the keyboard.Clearly started the game first in text form helped me to think about the mechanisms of the game.I went further. I added the interaction with the keyboard, the sounds and the speech synthesis!The file you will download is a zip that contains an exe file, yes you heard it right! In fact I used a program called jar2exe, which by the way is very accessible! In addition to this there will be the java runtime folder, which is about thirty mega! Yup! Here too you heard right!In short: the archive that you download does not require any Java runtime installation, or anything else!At this point good download, let me know your opinion, and please, be good ... It's my first game, but I did my best to make it interesting!https://drive.google.com/file/d/1uHRp38 … sp=sharing

URL: https://forum.audiogames.net/post/470439/#p470439




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-23 Thread AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector


  


Re: Java programming language and audiogames.

I'm glad you got it working the way you expected. Regarding Java programs and .exe files, seethis other post on the forum.

URL: https://forum.audiogames.net/post/470206/#p470206




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-22 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Hi everybody. After some time I would like to update you on my progress in java. I managed to create a working menu, using tolk. I've tried both with Nvda, with Jaws, and with Sapi and everything works great. Jaws does not bother and the program quietly incorporates the keys pressed.In practice I made tolk pronounce the array of strings I had created. When the player reaches the last item, if he presses the down arrow he will return to the first. If it is on the first item and will press the up arrow it will go to the last one. In order for these instructions to work properly, I had to nest the two ifs, the one that controls which key was pressed, and the one that determines what to do if the last or first item is exceeded. The example of Kae Jones did not work properly, and I had to correct several errors. Thank you Kae Jones anyway because you gave me an idea on how to proceed. I didn't use any panels, etc. Only Tolk, and that's a magic!At this point the inaccessibility of Java no longer frightens me, because with tolk the problem is totally avoided. What scares me for now is how to turn my java file into exe. I know that there are methods, but they are not integrated in Java.When I succeed I will post the card game stone and scissors, which I had written as a course exercise. For the course I had written it so that it appears on a dos type window. Instead, continuing the work I did for the menu I want to bring everything to a graphic window.

URL: https://forum.audiogames.net/post/470140/#p470140




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Thanks CaeJones, I've downloaded all files. For now I've tried your class Sound2Player and works. I've correctly loaded a wav file and played it.The only thing I've noted is that you can't write b10 for panning because gives you this errorError setting stereo balance. The most likely cause is setting a value out of range of legal values.You can write values between -1 and +1. -1 goes to the left and +1 to the right, and 0 is centered.

URL: https://forum.audiogames.net/post/468095/#p468095




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

Every single thing I try for sharing these files is being unusually difficult today, so I'll be editing in sendspace links as I get them uploaded.These are the sound system I used, using Javax.sound. I stress that I stopped using Java when I got a computer without a stereo-compatible mixer that Java could access, and I have no idea what the present state is.Latest version: Sound2Player : works like the BGT sound object.Original version: SoundPlayer, included because I don't remember if the version of SoundBuffer I have supports Sound2Player or just this one. I think the only difference is that Sound2Player tries harder to support pitch bending, but will have to check.SoundBuffer, which should allow you to say SoundBuffer sb = new SoundBuffer(); sb.play("mysound.wav", stereox); and be done. It's not as versatile as BGT's sound_pool, as I just threw it together circa 2007 for my own convenience.There were a couple jars you could add to the classpath to support more file-types. By default, it can do wav and mid. I was able to get mp3 and ogg, but I couldn't tell you where find the necessary packages. One or more other types might work by default anyway, but no promises.[edit] If you compile and run Sound2Player, it has a command line interface you can use to test it. p = play, s = stop, I think r = reset. Following a letter by a number tries to set properties, such as b10.0 to set stereo balance to 10, t0.5 to set tempo to 50% (use this for pitch in wavs, I think? If not, it'll be r instead of t.). v# for volume, f to fade (I think you can include a number to control how long it takes?). l# sets the loop count, s# and m# for solo and mute in midis.

URL: https://forum.audiogames.net/post/468062/#p468062




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

Every single thing I try for sharing these files is being unusually difficult today, so I'll be editing in sendspace links as I get them uploaded.These are the sound system I used, using Javax.sound. I stress that I stopped using Java when I got a computer without a stereo-compatible mixer that Java could access, and I have no idea what the present state is.Latest version: Sound2Player : works like the BGT sound object.Original version: SoundPlayer, included because I don't remember if the version of SoundBuffer I have supports Sound2Player or just this one. I think the only difference is that Sound2Player tries harder to support pitch bending, but will have to check.SoundBuffer, which should allow you to say SoundBuffer sb = new SoundBuffer(); sb.play("mysound.wav", stereox); and be done. It's not as versatile as BGT's sound_pool, as I just threw it together circa 2007 for my own convenience.There were a couple jars you could add to the classpath to support more file-types. By default, it can do wav and mid. I was able to get mp3 and ogg, but I couldn't tell you where find the necessary packages. One or more other types might work by default anyway, but no promises.

URL: https://forum.audiogames.net/post/468062/#p468062




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

Every single thing I try for sharing these files is being unusually difficult today, so I'll be editing in sendspace links as I get them uploaded.These are the sound system I used, using Javax.sound. I stress that I stopped using Java when I got a computer without a stereo-compatible mixer that Java could access, and I have no idea what the present state is.Latest version: Sound2Player : works like the BGT sound object.Original version: SoundPlayer, included because I don't remember if the version of SoundBuffer I have supports Sound2Player or just this one. I think the only difference is that Sound2Player tries harder to support pitch bending, but will have to check.SoundBuffer, which should allow you to say SoundBuffer sb = new SoundBuffer(); sb.play("mysound.wav", stereox); and be done. It's not as versatile as BGT's sound_pool, as I just threw it together circa 2007 for my own convenience.

URL: https://forum.audiogames.net/post/468062/#p468062




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

I Every single thing I try for sharing these files is being unusually difficult today, so I'll be editing in sendspace links as I get them uploaded.These are the sound system I used, using Javax.sound. I stress that I stopped using Java when I got a computer without a stereo-compatible mixer that Java could access, and I have no idea what the present state is.Latest version: Sound2Player : works like the BGT sound object.Original version: SoundPlayer, included because I don't remember if the version of SoundBuffer I have supports Sound2Player or just this one. I think the only difference is that Sound2Player tries harder to support pitch bending, but will have to check.

URL: https://forum.audiogames.net/post/468062/#p468062




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

I Every single thing I try for sharing these files is being unusually difficult today, so I'll be editing in sendspace links as I get them uploaded.These are the sound system I used, using Javax.sound. I stress that I stopped using Java when I got a computer without a stereo-compatible mixer that Java could access, and I have no idea what the present state is.Latest version: Sound2Player : works like the BGT sound object.

URL: https://forum.audiogames.net/post/468062/#p468062




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Hello, thanks for all your replies. I've managed to use correctly tolk. Now I am working to find a solution for audio stereo positional. Step by step I'm trying to build the elements for a game. I hope I will do that!@ Bgt LoverRotfl!Your message is very nice. The course I am attending is in Java, by a blind programmer. He told us that in italy java is a programming language that can give you a job. Sadly in Italy there is no so many possibilities if you use piton, that I like, or other languages. That is what the blind programmer told us. But if I see that java is very complicate to program games I will switch for them to another language.

URL: https://forum.audiogames.net/post/468026/#p468026




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Hello, thanks for all your replies. I've managed to use correctly tolk. Now I am working to find a solution for audio stereo positional. Step by step I'm trying to build the elements for a game. I hope I will do that!@ Bgt LoverRotfl!Your message is very nice. The course I am attending is in Java, by a blind programmer. He told us that in italy java is a programming language that can give you a job. Sadly in Italy there is no so many possibilities if you use piton, that I like, or other languages. That is what the blind programmer told us. But if I see that java is very complicate to program games I will switch to program them to another language.

URL: https://forum.audiogames.net/post/468026/#p468026




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-13 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

The first thing that comes to mind is to be sure you set the classpath correctly, but haven't looked into Toke to know if / how that should be done here.

URL: https://forum.audiogames.net/post/467987/#p467987




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-12 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector


  


Re: Java programming language and audiogames.

@10: through this message, java tries to  tel you that you should stop using him because he's verry old, ugly and so week that he can't even hold his exceptions in a properly equipped box and, because it is bouncing wildly on his sholders, they escape and get "thrown" in your face.In his last seconds, before program termination, the last few lines on the console could be translated, omiting the gasping, pained tone in which it's written, as " use c# because he was always better than me by design, his gui support doesn't need java access bridge to work properly with your screen reader, it is better equipped for game development and, with the invention of that mono crap, it becomes more cross platform day by day, so leave me alone, I'm not worthy." and he dies, painfully and convulsing, of forceful program termination because a rogue exception mortally wounded him in the eye.If you want me to translate any of your error messages into human understandable terms again, just post here.

URL: https://forum.audiogames.net/post/467880/#p467880




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-12 Thread AudioGames . net Forum — Developers room : NicklasMCHD via Audiogames-reflector


  


Re: Java programming language and audiogames.

Caused by: java.lang.ClassNotFoundException: com.davykager.tolk.TolkIt tells you, that it can't find the class "com.davykager.tolk.Tolk"

URL: https://forum.audiogames.net/post/467860/#p467860




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-12 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Hello guys. I would like to ask for your help because I tried to use Tolk with Java. I used the version Amerikranian told me. I have correctly compiled the example file but once I run it it gives me this error:Tolk -- Java Console App ExampleInitializing Tolk...Exception in thread "main" java.lang.NoClassDefFoundError: com/davykager/tolk/Tolkat ConsoleApp.main(ConsoleApp.java:25)Caused by: java.lang.ClassNotFoundException: com.davykager.tolk.Tolkat java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)... 1 more

URL: https://forum.audiogames.net/post/467835/#p467835




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-12 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

There are many, many ways to make a side-scroller. Those ways differ little between programming languages, for the most part (I wouldn't want to make one in Scheme, but you're free to try?). Before I'd really internalized object oriented programming, my strategy for everything was to make arrays for every property, assign an index to every entity, and go from there. OOP makes things much more manageable, IMO.If you aren't already familiar with Java.util.ArrayList, or whatever it is nowadays, I'd recommend looking into it. It's effectively an array with add / remove methods, which will come in handy for games where the number of objects can vary wildly during play.Java3D is an excellent example of why I am a sucky developer . "Hey, I've been making loads of progress over the first two years... let's look at 3D? ... wait, what happened to 7 o'clock? ... And why did I just spend several days reading this stuff and still have no idea how to do anything? Ugh, I'll try again next year." Repeat ad mortum.

URL: https://forum.audiogames.net/post/467725/#p467725




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Thanks everybody for your hints. I will try and hopefully I will update the topic. The last thing I would ask is, how to do with javax.swing an area where the character can go around, like a 2d sidescroller, with walls, doors, ecc. The thing I can thing is an array with 2 dimensions, and when I press the right arrow the array increment the first value index, with left arrow decrements it; with up arrow increment the second value index and with down arrow decrements. Thanks.

URL: https://forum.audiogames.net/post/467634/#p467634




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Thanks everybody for your hints. I will try and hopefully I will update the topic. The last thing I would ask is, how to do with javax.swing an area where the character can go around, like a 2d sidescroller, with walls, doors, ecc.Thanks.

URL: https://forum.audiogames.net/post/467634/#p467634




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: Java programming language and audiogames.

The Googles are telling me that there's apparently a [Java3D API] for 3D positional audio, though positioning seems abit... obtuse. There does seem to be a few OpenAL wrappers and libraries available for Java though, which depending on how fleshed out they are could give you some flexibility.The first is a library called the Light Wieght Java Game Library, or [LWJGL], with some video tutorials [here] and a wiki with example and tutorials [here]. Another ones Java OpenAL, or [JOAL], which also has various examples and tutorials on their website.As for TTS, its hard to say. There's some information using Google Text To Speech, others using MaryTTS, and others still using FreeTTS, such as [this] guide. But, as previously mentioned Tolk does also support Java, but is windows only, though how that works through the JVM i'm not sure.

URL: https://forum.audiogames.net/post/467633/#p467633




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

An example, going from memory and not compiling:import Java.awt.*;import java.awt.event.*;import Javax.swing.*;public class MyGame extends JComponent {int menuX = 0;
String[] menuText = new String [] {"Play", "Exit"};
public MyGame () {
this.addKeyListener (new KeyAdapter() {
public void keyPressed (KeyEvent ev) {
int k = ev.keyCode;
 if (k== KeyEvent.VK_UP) this.menuX--;
else if (k == KeyEvent.VK_DOWN) this.menuX++;
if (this.menuX < 0) this.menuX = this.menuText.length-1;
else if (this.menuX >= this.menuText.length) this.menuX = 0;
// speak, play a sound, whatever, to indicate what you're on. If all else fails, JOptionPane.showInputDialog works, but not very accessibly.
if (k == KeyEvent.VK_SPACE) System.exit(0);
}
});
}
public static void main (String[] args) {
JFrame frame = new JFrame ("test menu");
frame.setVisible(true);
MyGame game = new MyGame();
frame.addComponent (game);
game.setFocusable (true);
game.requestFocus();
}
}That's probably riddled with errors, but hopefully it gets the idea across.

URL: https://forum.audiogames.net/post/467597/#p467597




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

An example, going from memory and not compiling:import Java.awt.*;import java.awt.event.*;import Javax.swing.*;public class MyGame extends JComponent {int menuX = 0;
String[] menuText = new String [] {"Play", "Exit"};
public MyGame () {
this.addKeyListener (new KeyAdapter() {
public void keyPressed (KeyEvent ev) {
int k = ev.keyCode;
 if (k== KeyEvent.VK_UP) this.menuX--;
else if (k == KeyEvent.VK_DOWN) this.menuX++;
if (this.menuX < 0) this.menuX = this.menuText.length-1;
else if (this.menuX >= this.menuText.length) this.menuX = 0;
// speak, play a sound, whatever, to indicate what you're on. If all else fails, JOptionPane.showInputDialog works, but not very accessibly.
if (k == KeyEvent.VK_SPACE) System.exit(0);
}
});
}
public static void main (String[] args) {
JFrame frame = new JFrame ("test menu");
JFrame.setVisible(true);
MyGame game = new MyGame();
frame.addComponent (gamegg;
game.setFocusable (true);
game.requestFocus();
}
}That's probably riddled with errors, but hopefully it gets the idea across.

URL: https://forum.audiogames.net/post/467597/#p467597




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Java programming language and audiogames.

The last time I tried Javax.sound, it couldn't find a mixer that could support stereo panning. That and the royal pain that is redist on Windows are the main things that pushed me from Java to BGT in the first place.But that was years ago, and things might be better now.For windows and keyboard, Javax.swing and java.awt were the standard for a while. I think it has since moved on, to swt or something. But in the XP days, it was Javax.swing.JFrame for a window, JPanel for the actual window because of reasons, and I don't remember if KeyEvent is in java.awt or java.awt.event (I just imported both, because I was using things from both).Wait, no, not JPanel. You want your game to extend JComponent, then add it to a JFrame. Being a JComponent lets you add event listeners. You're mainly interested in addKeyListener(new KeyAdapter() {  } );.

URL: https://forum.audiogames.net/post/467592/#p467592




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector


  


Re: Java programming language and audiogames.

Playing audio can be done using javax.sound. Note that if you're still in the beginning stages of programming, you'll need to understand object-oriented design. You can then create your own classes that consume the javax.sound libraries to serve your needs. As far as a simple GUI, you would need the Java Access Bridge, but I honestly wouldn't worry about anything related to user-interaction until you have a solid idea and plan for the game itself.

URL: https://forum.audiogames.net/post/467564/#p467564




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector


  


Re: Java programming language and audiogames.

Playing audio can be done using javax.sound. Note that if you're still in the beginning stages of programming, you'll need to understand object-orineted design. You can then create your own classes that consume the javax.sound libraries to serve your needs. As far as a simple GUI, you would need the Java Access Bridge, but I honestly wouldn't worry about anything related to user-interaction until you have a solid idea and plan for the game itself.

URL: https://forum.audiogames.net/post/467564/#p467564




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector


  


Re: Java programming language and audiogames.

Thanks Amerikranian, I will give a look and tell you. If someone as a idea to build a menu non textual is welcome.

URL: https://forum.audiogames.net/post/467549/#p467549




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java programming language and audiogames.

2019-10-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: Java programming language and audiogames.

For communication with a screen reader, Tolk can be used to output the information, though that will force you to only compile for windows. You can find Tolk here though this build is slightly out of date. The latest builds are not working correctly.I am not too sure as to how to output sound and get keyboard input, however. I hope someone else can chime in here.

URL: https://forum.audiogames.net/post/467539/#p467539




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector