Hello, I am working on a FPS game with papervision(LINK), currently I am working on the format for the levels, and I was hoping you could help with some things. First of all use the wasd keys to move and the arrow keys to rotate the camera. It will be like DOOM so you won't be rotating the camera up and down in the final game(my solution for not being able to use the mouse most first person shooters do).
Now, it would be nice if you could post your average frames per second, frames per second when the whole map is in view and your system specs.
Also if you know of any papervision optimizations I should know about please post, along with any techniques to get rid of the texture distorting without bringing the segment count of the planes up.
Last thing I want to ask is if my level format is efficient. I have 3 2-dimensional arrays for each level. The first holds a single int for each tile, which currently only defines the texture to use but will later define other properties. The second is for the walls, which holds a single int for each again. I coded the level builder to check surrounding tiles and build walls where there is nothing on the other side. The last array will hold different items but currently holds the player's(actually the camera's) starting position. The following two arrays creates the level in the attached picture.
/Level One
private var groundOne:Array = [
[0, 0, 1, 1, 1, 0, 0, 0],
[0, 0, 1, 1, 1, 0, 0, 0],
[0, 0, 0, 2, 0, 1, 1, 1],
[2, 2, 2, 2, 2, 1, 1, 1],
[0, 2, 0, 0, 0, 1, 1, 1],
[0, 2, 0, 0, 0, 1, 1, 1],
[1, 1, 1, 2, 2, 0, 0, 0],
[1, 1, 1, 0, 2, 0, 0, 0],
[1, 1, 1, 0, 2, 0, 0, 0],
[0, 0, 0, 0, 2, 0, 0, 0],
[0, 0, 1, 1, 1, 1, 0, 0],
[0, 0, 1, 1, 1, 1, 0, 0],
[0, 0, 1, 1, 1, 1, 0, 0]
]
private var wallsOne:Array = [
[0, 0, 1, 1, 1, 0, 0, 0],
[0, 0, 1, 0, 1, 0, 0, 0],
[0, 0, 0, 1, 0, 1, 1, 1],
[2, 1, 1, 1, 1, 0, 0, 1],
[0, 1, 0, 0, 0, 1, 0, 1],
[0, 1, 0, 0, 0, 1, 1, 1],
[1, 1, 1, 1, 1, 0, 0, 0],
[1, 0, 1, 0, 1, 0, 0, 0],
[1, 1, 1, 0, 1, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0],
[0, 0, 1, 1, 1, 1, 0, 0],
[0, 0, 1, 0, 0, 1, 0, 0],
[0, 0, 1, 1, 1, 1, 0, 0]
]
Also, I have read the bitmaps sizes 2^n(like 128x128, 256x256, 512x512) have better performance. Would it benefit me?
Thanks for any help you give me.