Original Post
I have the engine working, and right now, the walls are solid colors. How would I go about slicing 64x64 textures to render onto the walls?
This is the code for rendering walls, it should be all you need to get the gist of drawing one kind of texture on all walls:
g.fillRect(sliceColumn, wallTop, 5(SliceWidth), wallHeight);
I need help on splitting 64x64 images into strips that fit onto the strips of wall I render in raycasting. I just can't do this, because I don't know how to efficiently go about splitting the images. I need a command that can use doubles, but most of buffered image commands use ints. Rendering them virtually useless to my cause.
Basically, I need to make rectangles with images. The finished product will be essentially the same as above with image drawing instead. I'm bordering on a 2d array, but the actual image slicing is the hard part.
This is the code for rendering walls, it should be all you need to get the gist of drawing one kind of texture on all walls:
g.fillRect(sliceColumn, wallTop, 5(SliceWidth), wallHeight);
I need help on splitting 64x64 images into strips that fit onto the strips of wall I render in raycasting. I just can't do this, because I don't know how to efficiently go about splitting the images. I need a command that can use doubles, but most of buffered image commands use ints. Rendering them virtually useless to my cause.
Basically, I need to make rectangles with images. The finished product will be essentially the same as above with image drawing instead. I'm bordering on a 2d array, but the actual image slicing is the hard part.