Treasure hunt
Blitz3D Forums/Blitz3D Programming/Treasure hunt
| ||
Hi blitz pro's! With a team of 5 people, we're going to make a multiplayer game for the Sterrekind Foundation, a foundation that helps sick children in hospitals by offering them new virtual oppertunities. The "Sterrewereld" site is a community the those children, and we are going to make a game that can be downloaded on that site. We are all 4th grade EMMA Gaming students. I'm not new to Blitz, but certainly not a pro. BlitzPlay will be used for multiplayer. Our group came up with a concept "treasure hunting". I hope somebody can help me with a question how to approach the following "problem": The treasure map will be an abstract version of the 3D space. Is it the best approach to use tiles to use to generate the 3D space, and use for the treasure map? How do I rotate a two-dimensional array? e.g: 10001 11011 00100 00000 00000 becomes: 00011 00010 00100 00010 00011 |
| ||
Are your rotations only in 90 deg intervals? ie. 0,90,180,270? |
| ||
If only in 90 deg. intervals then it would be something like:dim map(4, 4) dim temp(4, 4) ;rotate right for xiter = 0 to 4 for yiter = 0 to 4 temp(x, y) = map(4-y, x) next next ;transfer back for xiter = 0 to 4 for yiter = 0 to 4 map(x, y) = temp(x, y) next next |
| ||
Hi Jeroen, Give Rene van Bergem my best, I consulted him earlier about doing a 3D game (after the Lost Boys made the 3D 'Sterrewereld'). Glad he finally did :) Good luck, John-Robin Smith |
| ||
Hey Wolron, That sounds like a good idea! Compact code too. Yes, luckely it's only in 90 degree intervals :D John-Robin: I will pass it on ! |