En general ezgame Trata de hacer mas simple el proceso de Creacion y manipulacion de graficos 2D.
Project description
EZSGAME
En general ezsgame Trata de hacer mas simple el proceso de Creacion y manipulacion de graficos 2D. Creando y simplificando el proceso lo mas posible. Tratando de hacerlo mas facil, divertudo y comodo para el usuario.
Instalacion
pip install ezsgame
Conceptos
-
pos - Posicion del objeto en el espacio. (x,y)
-
size - Tamaño del objeto en el espacio. (ancho,alto)
-
color - Color del objeto. (r,g,b) o "nombre_de_color"
-
Screen - Pantalla en la que se dibuja el objeto. Todo sucede en una pantalla.
-
IScreen - Interface Screen. Pantalla de interfaz. Permite usar otro tipo de caracteristicas en la pantalla.
Inicio
# declare a Screen object
screen = Screen(size=(640, 480), title="My Game")
# Declarar un objeto
mi_rect = Rect(pos=["center", "center"], size=(100, 100), color="red")
# Bucle principal
while True:
# Check de eventos
screen.check()
# llenar la pantalla de color
screen.fill((0, 0, 0))
# Dibujar el objeto
screen.draw(mi_rect)
# Actualizar la pantalla
screen.update()
Atajos Avanzados
# declaring and placing objects in screen in one line
# Note : this only works if you are using IScreen
screen = IScreen(size=(640, 480), title="My Game", objects=[Rect(size=[100,100], pos=["center", "center"])]).run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.