This site requires JavaScript, please enable it in your browser!
Greenfoot back
MakerOfGames
MakerOfGames wrote ...

2012/2/17

I need help on how to get code.

MakerOfGames MakerOfGames

2012/2/17

#
I've seen many great greenfoot games. The question that always comes up in my head is : Where do you get all these code? I've went to the Greenfoot Class Documentation, which doesn't have enough code. Only the basic, boring codes. I went to the Java Library Documentation, it was way too hard and confusing to look for code. So can you guys tell me where to find code? I'm guessing in the Java Library Documentation. But where exactly in it? There is like a bunch of complicated code that is hard to sort out. Thanks
Builderboy2005 Builderboy2005

2012/2/17

#
I am not sure I understand your question fully. The majority of code used in games is not code that the programmer found elsewhere and copied into their program. Most code is written by the programmer themselves, and is completely original. Additionally, the Greenfoot Class documentation, as well as the Java Library documentation does not contain code, but contains codumentation of Classes, which are different types of objects you can use in your program. With that in mind, you say you are looking for 'code', but what are you looking for specifically? A way to move an object? A way to rotate an object? Asking us where to find code is one of the most general questions that can be asked.
Duta Duta

2012/2/18

#
^What Builderboy2005 said. If there's something in particular that you're trying to code and are finding it hard to do, then just post the specific problem and we can help you out
darkmist255 darkmist255

2012/2/20

#
I think he might be wondering about how to create original methods? That would make sense, since he said he's tried looking in the API, which consists of methods. Sorry I can't tell you anything about it right now, I'm literally 10 seconds away from going to sleep.
danpost danpost

2012/2/20

#
The Greenfoot and Java APIs contain methods that can be used in your code. The code itself is the basic Java language; and how you put your java language statements together is the artform that creates the code. The methods found in the Greenfoot and Java APIs are there because those methods (or groups of methods) are commonly used and you do not have to re-write them to apply them in your code. Yes, the Java API documentation is quite extensive and can be very confusing, but there are also tutorials (trails) you can follow to acquire a better insight on how much of it can be used. Check out the java tutorials.
You need to login to post a reply.