2 Qs
Hello,
I've got 2 Qs here:
1. I know this isn't related to game development, but is there a downloadable version of the Java API? I have a computer that I do a lot of programming on, but it doesn't have Internet access.
2. What would you recommend for complicated graphics? eg I'd like to draw a person in an Applet, but I'm finding it quite hard using the basic drawing commands. I guess the simplest way of putting it is: is there a way to insert an ImageIcon or other JPEG/GIF into an Applet?
Thanks,
- Smiley
BTW if anyone wanted to see my start:
http://jesse.gunschbunsch.com/java/game.html
I've only been working on it for 2 days, but I've got it set up to handle a "map", where it will draw a nice ground for the person to walk across, but then all I've got for a person is the dot you can see.
And for anyone who's wondering, the square in the corner is the start of a menu, but I'm looking for my image-inserting Q to be answered first.
Thanks,
- Smiley
1: Yes. The APIs can be downloaded. Click on "J2SE" on the left and then "J2SE Documentation", that page has downloadable SDK docs.
2: Yes. Load an image and paint it with Graphics.drawImage. An image used in this way is called a "sprite". When you download the SDK docs, look for a link called "Resources"; it should say how to load images.