First of all, I want to have my keylistener in a separate class. ???
And, I want to make a multiplayer game. How could I implement that ???
Finally, if I get the multiplayer working, how can I make it so each player spawns in a different location? ???
- Keylistener - make a separate class and let it extend Keylistener, or whatever the key listener is for java. Then, in your main class, call the function
addKeyListener(new InputHandler or whatever your class is called);
.
2. That’s way to broad of a question for someone to answer. You can’t just make a multiplayer game in a few lines of code, it takes hundreds of lines of code, even thousands sometimes. And, I believe you are the person that just said they only have a month of Java experience. So I’m just going to say it again, learn Java don’t worry about games yet.
3. You give each player a x and y coordinate and then create a new instance of that player, and set the coordinates to be different. But, just as I said in answer two, you aren’t ready for multiplayer yet if you don’t even know how to do this yet.
Okay!
I thought you weren’t going to start making games until you learned java fully? What’s this multiplayer? (you should only try multiplayer if you have experience with making games already)
Instead of asking how to make a multiplayer game you should first start on something simple like writing a little chat or something. And i agree, first learn java then try to make a game and after that, try to make it multiplayer
I think I learned some important GUI, thread, sound, etc… Factors, so I want to test my skill. I know how long it takes, trust me, my uncle was a really good programmer, and he said it took him 3 years to make a game. He hasn’t released it yet, and sadly he died.
You’re in over your head. At the very least, start with a simple game. That’ll be challenging enough for someone at your skill level. Make a pong clone. That’s about as easy as it gets.
OK.
Sorry for your loss! Yeah, start with something simple, but choose something you want to do. I started off with text based games because pong didnt sound that fun to me. You could make a card game, just choose something you like. However, it took me 2 years to finally learn enough that where I could just sit down and make a game without having to lookup stuff every fie minutes. So just learn a lot, and dont give up an eventually you’ll be making your own awesome games!
Ya, it was really sad for me, especially since he was the one who picked me up from school. And, thanks! I’ll try to make a text game first.
I started off learning about a month ago, Java and LibGDX/Scene2D/Box2D.
I would not even touch 3d, multiplayer or anything to complex myself. I have however, made a working and bug free clone of Pong, I am now remaking it from scratch with the new skills I have learned, this time it has graphics and not just debug lines.
You will have a hella lot more fun if you just create something basic, anything too complex will just annoy the shit out of you before you get anywhere.
If you got questions about something you don’t understand or why something isn’t working, feel free to text me, i’ll look at that