help me with my collisions tests !
BlitzMax Forums/BlitzMax Beginners Area/help me with my collisions tests !
| ||
Hi ! my game is a vertical shooter. a 32x32 tiled map vertically scroll, enemies follow precalculated spline movements. i use a lot of 'collidesimages' tests in my game. Now, i've a lot of items into the screen and the framerate begin to decrease dramatically when the player ship shoot ! Imagine. while ImagesCollides Tests (perfect pixel collision): Player ship shoots and ennemies Player ship shoots and bricks Player ship and ennemies Player ship and ennemies shoot Player ship and bonus Player ship shoots and walls Player ship and walls (map composed by 32x32 tiles, i test each drawimage tile displayed on the screen with the player ship image !) Ennemies shoots and wall Ennemies shoots and player Canons shoots and player Canons shoots and wall... flip ;-) wend i know that bmax have another system collision with layers, but i don't know how to use it (CollideImage) ! There are no example code into the docs ! Please help me to improve my game collisions tests with some ideas and easy example code to understand ! Many many thanks for your help !!! is the system with layer (collide image) is better and faster than just 'collidesimages tests ? ![]() you can download my game to see the pb : http://www.bayre.com/zigwigwis/telech.php presse f during game to show the fps ! |
| ||
ok, i use now a layer for the map. it seems work fine. |