Pygame : Camera introduction - Using Camera Class

Publicado el: 01 enero 1970
en el 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...


En esta página del sitio puede ver el video en línea Pygame : Camera introduction - Using Camera Class de Duración hora minuto segunda en buena calidad , que subió el usuario game102 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 515 veces y le gustó 18 a los espectadores. Disfruta viendo!