Download presentation
Presentation is loading. Please wait.
Published byCornelia Hood Modified over 9 years ago
1
TURBO TANKS PYGAME
2
GAME FEATURES Two or more players handled by client/server design. Angular motion for tank movement Threadpool server design (to optimize python threads). Threaded client design (to handle pygame server connection)
3
TANK MOVEMENT
4
MAIN EVENT LOOP The event queue is processed. The update() method of each sprite is called. Each sprite is cleared from its previous position. Each sprite is redrawn at its new position.
5
CLIENT SERVER SPECIFICATION Client-server model is based upon multi- threaded design. Server code is created following a thread- pool design that minimizes python’s expensive threading overhead and so maximizes server efficiency. Client is designed around two threads, one handling socket I/O and the other handling the Pygame UI.
6
CLIENT MODEL
7
Picture
8
FUTURE CONSIDERATION Tank dictionary may be dropped from the client side in favour of updating tank information as soon as said information is received from the server. Dual threads in the client model remain uncertain. Threads are necessary for server-side architecture, but the client may respond faster without threaded design.
9
FUTURE CONSIDERATION Obstacles. Collision detection. Shooting weapons. Mines. Sound for weapons, tanks and explosion. Multiple weapons. Score board.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.