
-----------------------------------
Harblkipz
Fri May 09, 2008 7:55 am

Bluej Tiling Engine
-----------------------------------
Last year in my computer info science class, we were using Turing, and our final project was a video game. My group made a side scroller and had a tiling engine in a text file. Where each number [ Like 1, 2, 3] corresponded to an image file so create a map layout. What I was wondering was, is there a Tiling engine for Bluej that does the same thing?

Thanks!

-----------------------------------
jernst
Fri May 09, 2008 8:40 am

Re: Bluej Tiling Engine
-----------------------------------
If by Bluej you mean java, then you can probably make a method yourself to do this. There is a whole set of classes and methods that Java has prebuilt for working with images:
http://java.sun.com/j2se/1.4.2/docs/guide/2d/spec.html

But specifically for what you want to do you might find this useful:
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html

And heres an example of how to actually load the images:
http://schmidt.devlib.org/java/save-jpeg-thumbnail.html

-----------------------------------
Aziz
Fri May 09, 2008 11:58 am

RE:Bluej Tiling Engine
-----------------------------------
If you're linking to old documentation please mention "This is for Java version 1.4.2". The latest is 6 (1.6), and there's quiet a bit of difference, not in the 2D apis much, but in the language overall (generics, etc).

I know 1.4.2 is common in the searches, but I normally do my searches like: "java 6 Point2D".

The correct link for api is:

http://java.sun.com/javase/6/docs/api/java/awt/image/BufferedImage.html

And for the 2D tutorials:

http://java.sun.com/docs/books/tutorial/2d/index.html

-----------------------------------
Harblkipz
Mon May 12, 2008 8:34 am

RE:Bluej Tiling Engine
-----------------------------------
Is there something for Collision detection, that i can implement into the engine, so that like, if a tile is labeled 1, or x for example, it will automatically make like a block that the character can't walk thorugh.

-----------------------------------
Aziz
Mon May 12, 2008 8:41 am

RE:Bluej Tiling Engine
-----------------------------------
No, you have to code collision detection yourself.

-----------------------------------
jernst
Mon May 12, 2008 12:44 pm

Re: RE:Bluej Tiling Engine
-----------------------------------
If you're linking to old documentation please mention "This is for Java version 1.4.2". The latest is 6 (1.6), and there's quiet a bit of difference, not in the 2D apis much, but in the language overall (generics, etc).

I know 1.4.2 is common in the searches, but I normally do my searches like: "java 6 Point2D".

The correct link for api is:



Ah my bad, didn't even realize there was a new version out :P Shows how often I code anymore I suppose :)
