Monday, October 8, 2007

Thinking things through

Well, I just sat for a while on my bed, thinking about how things are going to be going down in the program. I don't think my old method will work. But, I have a new idea, one I know will work, although it may not give me quite the results I was looking for. I shall give it a try, however. It uses clips to clip a bit out of the overall image, and draw that to the screen. Then every time the player moves, the clip shifts to include the new portion of the image, and draw it to the screen.

I know for a fact that it was drawing the entire image area that was taxing the program. When I did something that caused the program to not draw the image, the character on the screen no longer flickered. It went back to flickering when the image was drawn on the screen once more. So now my objective is to make things work correctly.

I also have many other objectives with this recode. They all include making the game run and look better, of course.

Now I am trying to think of how I shall handle things with the different maps. to counter one issue, I think I might make the array three dimensional. The second Z layer would include the path values for the NPCs. I don't know if one 3d array is better than two 2d arrays, but I think it might be.

I plan on getting food soon, so programming later. I downloaded the beta of Netbeans 6. I'll do all of my work on there from now on. See ya later.