Pygame : Camera introduction - Using Camera Class

Publicado em: 01 Janeiro 1970
no canal de: game102
515
18

This Python written codes contain some classes for applying Camera to your game.

from Camera import Camera

create instance by specifying ...
self.all_sprites = Camera ( )

Different types of Camera :
1) move Camera with player always at the center ;
2) When player near boundary , Camera starts to follow ;
3) Keyboard driven, by assigning keys and can move camera around ;
4) Adventure game type, when moving to the edge of screen, update the player position to the center ;
.....

How to Use ? import and create an instance ;
from camera_class import CameraZSort

camera = CameraZSort();

https://github.com/ckcheung102/Camera...


Nesta página do site você pode assistir ao vídeo on-line Pygame : Camera introduction - Using Camera Class duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário game102 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 515 vezes e gostou 18 espectadores. Boa visualização!