Skip to main content

PyEnvirons is a higher level API of pygame to easily design, devolop and debug environments for your unsupervised AI agent. It is under rapid development and features will be added almost every single day.

Project description

PyEnvirons

"PyEnvirons" is a higher level API of pygame to easily design, devolop and debug environments for your unsupervised AI agent. It is under rapid development and features will be added almost every single day.

Usage and examples

To show you how simple PyEnvirons is here is a example.

Creating a functional window

from Core import PyEnviron #Importing PyEnviron library

screen = PyEnviron.Window([800, 600], 'testwindow')
#Instantiating the window class to make a window, by specifying the size and name of the window

app = PyEnviron.App(screen) #Instantiating the app class by giving the app our window

app.run() #running our app

Using sprites, gameobjects and layers

from Core import PyEnviron #Importing the PyEnviron library
screen = PyEnviron.Window([800, 600], 'testwindow')
#Instantiating the window class to make a window, by specifying the size and name of the window

app = PyEnviron.App(screen) #Instantiating the app class by giving the app our window

image = PyEnviron.Sprite('PyEnviron/SpriteTests/2635d6c2b056dfb.png') #Loading a sprite for our use by specfying a file path

layer = PyEnviron.Layer() #Instantiating a layer for us to put sprites into

#The gameobject class, will have all the variables regarding the sprite, like the image, position, rotation, and script attached to it.
gm = PyEnviron.GameObject(image) #Instantiating a gameobject for us to use by giving it our sprite, position, rotation and scale are [0, 0], 0 degrees and [1, 1], respectivly, by defualt.

layer.add_gameobject(gm) #Adding our game object to the layer

app.add_layer(layer) #Adding the layer to our app

app.run()#Running the app

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

PyEnviron-0.0.2.macosx-10.7-x86_64.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyEnviron-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file PyEnviron-0.0.2.macosx-10.7-x86_64.tar.gz.

File metadata

File hashes

Hashes for PyEnviron-0.0.2.macosx-10.7-x86_64.tar.gz
Algorithm Hash digest
SHA256 de311db481e65bbad02376986aa7e79e770083d2a9b4e534a8c9deaa801db22d
MD5 f20886e70cec5d472b424bce9760c2e1
BLAKE2b-256 d5cd50c86a94cf01be0c745d2b0034a2436f2039b6f052c169ba63104dc4b633

See more details on using hashes here.

File details

Details for the file PyEnviron-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for PyEnviron-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 084c0d82e548ff058b4729981692e630f8f1f6aa239e622d7bc55a7ecb0c51fb
MD5 4f133b37ac1bac8a69ce0b46fc44eeb9
BLAKE2b-256 9f024c218ad28741e86a98aa1f98a02f7304233b9c7b91c15b39884d567576d3

See more details on using hashes here.

Supported by

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