slinger wrote:
Nice 16, that's great for a first game :3
As I said in my Tumblr, I see Pong as the "Hello World" of game developers. It's the simplest thing you can do, so it should be a good starting point.
Offline
veggieman001 wrote:
i can't score a point
If you want you can edit the AI speed if you want. It's in the /src folder and in the method logic(). Compile the class and replace the class in the jar and it'll be whatever you want!
Offline
The first game that I make that isn't Pong (not that there's anything wrong with that) will be based on this video.
Offline
wmays wrote:
The first game that I make that isn't Pong (not that there's anything wrong with that) will be based on this video.
Cool. But as a first game? I hope to make it SOMEDAY, but I don't think that I can do it as my first.
Offline
Harakou wrote:
ihaveamac wrote:
Anyone know what I could use to make a GUI in java?
Use the javax.swing toolkit. Obviously that's a lot of classes, so here're some guides to hopefully help you along:
Oracle's Swing GUI guide
Thenewboston's tutorial You'll have to watch several videos - he uses quite a few to go over the basics. However, he's very good at explaining things in the simplest way possible if that's what you need.
Actually, I found out Eclipse has a built-in window editor, using swing. Still, thanks.
Offline
ihaveamac wrote:
Harakou wrote:
ihaveamac wrote:
Anyone know what I could use to make a GUI in java?
Use the javax.swing toolkit. Obviously that's a lot of classes, so here're some guides to hopefully help you along:
Oracle's Swing GUI guide
Thenewboston's tutorial You'll have to watch several videos - he uses quite a few to go over the basics. However, he's very good at explaining things in the simplest way possible if that's what you need.Actually, I found out Eclipse has a built-in window editor, using swing. Still, thanks.
Uh, you're welcome! cheater :P
Offline
poopo wrote:
Anyone know how to write folders?
what? you mean like creating a folder?
Offline
poopo wrote:
Anyone know how to write folders?
Offline
I need some help I'm trying to make a WriteText class for my game (LWJGL with slick-util) but it's not working.
Code Removed
To explain a bit, I want to make it so that I can use in any other class WriteText.write(50,50,"Hello, World") to output "Hello, World" (or any other string). I HAVE tested this code and gotten it to work before. I believe I've found the problem as being the InputStream. This is what I get running it on console in eclipse:
code removed
This means that the try{} threw its catch{} and the font never initialized, which explains the error. I did some on-the-fly debugging by deleting portions of the code to see when it would still make the error. If all I have is the inputstream code, I get the "a wild error appeared" message, meaning that that is the source of the problem. The NEW problem is that when I delete just that,then the system loses responsiveness. Now that I think of it, it may be an issue with another class (that has another error that I didn't realize because of the full crash) that I'll keep looking for.
Edit: What's with the censor?
Edit: oh I see, it's AWT coming before Font that caused the censor to go off lol.
Edit 2: I fixed the problem and removed the code. (Top secret, lol )
Last edited by 16Skittles (2012-03-03 17:18:57)
Offline
Why isn't this collision code working?
public boolean Intersects(Rectangle rect) { if (x + width < rect.x || x > rect.x + rect.width || y + height < rect.y || y > rect.x + rect.height){ return false; } return true; }
Edit: brainfart. XD I forgot to update the rectangles to the new positions.
Last edited by poopo (2012-03-05 14:04:03)
Offline
ipodbiped wrote:
Anyone still use this topic? I am going to try and do some more Java coding soon.
Yep.
Offline
For some unknown reason I can't seem to get a certain render to work. Off to debugging!
Also, a leak, the game that I'm working on is codenamed Under the Smog. Any guesses to what it'll be?
Offline
the pong game gives me thing error 1
2/03/2012 20:02:20.702 [0x0-0x58058].com.apple.JarLauncher: Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
Offline
muppetds wrote:
the pong game gives me thing error 1
2/03/2012 20:02:20.702 [0x0-0x58058].com.apple.JarLauncher: Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
Did you have all of the LWJGL files and stuff? Or were you maybe on Mac or Linux? I think I only included the Windows DLLs for LWJGL.
Offline
16Skittles wrote:
muppetds wrote:
the pong game gives me thing error 1
2/03/2012 20:02:20.702 [0x0-0x58058].com.apple.JarLauncher: Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.pathDid you have all of the LWJGL files and stuff? Or were you maybe on Mac or Linux? I think I only included the Windows DLLs for LWJGL.
mac which renders the DLLS useless
Offline
muppetds wrote:
16Skittles wrote:
muppetds wrote:
the pong game gives me thing error 1
2/03/2012 20:02:20.702 [0x0-0x58058].com.apple.JarLauncher: Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.pathDid you have all of the LWJGL files and stuff? Or were you maybe on Mac or Linux? I think I only included the Windows DLLs for LWJGL.
mac which renders the DLLS useless
maybe try downloading LWJGL, extract, go to native\mac and copy those files into the same place where the DLLs are. lwjgl.org
Offline
Why can't other languages be made simple like scratch? Scratch is colorful and simply laid out nicely wih easy to learn scripts. I've looked at other languages an Im like, where's the scripts? It's all complex, so fr now I'm sticking wih scratch
Offline
turkey3 wrote:
Why can't other languages be made simple like scratch? Scratch is colorful and simply laid out nicely wih easy to learn scripts. I've looked at other languages an Im like, where's the scripts? It's all complex, so fr now I'm sticking wih scratch
Other languages are more complex because while Scratch is simple to get into and very useful for your first foray into programming, it's hardly suitable for more powerful coding.
A big reason for this is that other languages have far more extensive libraries than Scratch, and having to have a block for every single one would make using it effectively impossible. This, for example, is the Java 6 SE API. That's a huge library.
There are other issues too. Consider that programs can easily consist of thousands of lines of code and you can see just how difficult it would be to work with that in block form.
Let's not forget, also, that blocks are just an abstraction on top of text. Ultimately, every language does simplify things for the sake of usability, (believe it or not, languages like Java and C++ are made to make things easier for programmers) but these changes are intended to make coding more efficient by providing powerful ways of writing instructions - otherwise we would still be flipping switches to define memory addresses to access, and I don't think anyone wants that.
I understand that I'm sort of focusing on the block aspect here and not totally addressing your entire question, but the point is that simplicity and accessibility are good to start off with, but they're like training wheels on a bike: eventually you need to take them off because they become limiting rather than helpful.
And yes, other languages can be intimidating, but anything that you don't understand can be. You're not going to know everything at once, so it's important to slowly learn the basics and add onto that knowledge as you go. Once you start learning how to use it, it stops seeming so convoluted. Trust me, I remember being baffled by languages as simple as BASIC; I just didn't know where to start. You just need to take the time to learn it.
Offline
Harakou wrote:
*snip*
And yes, other languages can be intimidating, but anything that you don't understand can be. You're not going to know everything at once, so it's important to slowly learn the basics and add onto that knowledge as you go. Once you start learning how to use it, it stops seeming so convoluted. Trust me, I remember being baffled by languages as simple as BASIC; I just didn't know where to start. You just need to take the time to learn it.
This. The thing I was honestly most intimidated by was brackets. I never watched a tutorial and I was like "wow I've never used those, those look scary" until I watched Java tutorials and realized it was just like how when you open a <html> tag you must close it with a </html> tag.
Offline
16Skittles wrote:
Harakou wrote:
*snip*
And yes, other languages can be intimidating, but anything that you don't understand can be. You're not going to know everything at once, so it's important to slowly learn the basics and add onto that knowledge as you go. Once you start learning how to use it, it stops seeming so convoluted. Trust me, I remember being baffled by languages as simple as BASIC; I just didn't know where to start. You just need to take the time to learn it.This. The thing I was honestly most intimidated by was brackets. I never watched a tutorial and I was like "wow I've never used those, those look scary" until I watched Java tutorials and realized it was just like how when you open a <html> tag you must close it with a </html> tag.
The funny thing is that those always confused me too. In fact, here's an old post by me expressing my frustration at them.
(I'm now reading through that thread. Oh the memories...)
Offline
Harakou wrote:
16Skittles wrote:
Harakou wrote:
*snip*
And yes, other languages can be intimidating, but anything that you don't understand can be. You're not going to know everything at once, so it's important to slowly learn the basics and add onto that knowledge as you go. Once you start learning how to use it, it stops seeming so convoluted. Trust me, I remember being baffled by languages as simple as BASIC; I just didn't know where to start. You just need to take the time to learn it.This. The thing I was honestly most intimidated by was brackets. I never watched a tutorial and I was like "wow I've never used those, those look scary" until I watched Java tutorials and realized it was just like how when you open a <html> tag you must close it with a </html> tag.
The funny thing is that those always confused me too. In fact, here's an old post by me expressing my frustration at them.
(I'm now reading through that thread. Oh the memories...)
Lol, don't you just love looking back at the times when (as Wickimen put it) you were a young noob?
Offline