Computer Science Canada

Bluej Tiling Engine

Author:  Harblkipz [ Fri May 09, 2008 7:55 am ]
Post subject:  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!

Author:  jernst [ Fri May 09, 2008 8:40 am ]
Post subject:  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

Author:  Aziz [ Fri May 09, 2008 11:58 am ]
Post subject:  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

Author:  Harblkipz [ Mon May 12, 2008 8:34 am ]
Post subject:  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.

Author:  Aziz [ Mon May 12, 2008 8:41 am ]
Post subject:  RE:Bluej Tiling Engine

No, you have to code collision detection yourself.

Author:  jernst [ Mon May 12, 2008 12:44 pm ]
Post subject:  Re: RE:Bluej Tiling Engine

Aziz @ Fri May 09, 2008 11:58 am wrote:
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


Ah my bad, didn't even realize there was a new version out Razz Shows how often I code anymore I suppose Smile


: