Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezsgame-0.0.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distributions

ezsgame-0.0-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

ezsgame-0-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page