From: Zbigniew <ze...@in...> - 2004-05-14 10:04:37
|
Primarily, thank You all for patience. Even people watching me playing had problems to play snake3d themselves. Seems I made not playable game, therefore now I will ask more detailed questions which may point me to improve the game anyway: 1. I have question concerning Linux. The best scores of the game are kept in a text file (it's enough to eat one green box to check this). Is there any problem with creation/accessing the hi-score file? 2. The game do require to rotate objects. During making of the game I noticed that rotate method doesn't affect the pos field. Matrix module is used for hand written rotation routines for the snake and green box. Maybe there is better solution for this? 3. The collision detection is done with the pos field. The rotations of the playfield are 90 degree (split in phases to animate). Pos coordinates of the boxes are used to detect collisions and should be integer numbers (I assumed that 90 degree rotations transform integer into integer). I'm aware of the floats during roations therefore I do float->int conversion. I do it but sometimes the snake runs through the green box and collision is not detected. Code looks ok. Thats the major problem I cannot solve and I came here with. 4. The other problem is that sometimes after many rotations there is missing box inside snake body. Other questions: 1. Is there chance for sound module for python? 2. Is there chance for bitmap graphics support (I imagine it as a layer on the top of the 3d display). That would be also useful for teaching of the computer graphics (drawing lines, filtering images etc.) Zbigniew Trzcionkowski <ze...@in...> |