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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

PyEnviron-0.0.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for PyEnviron-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 308ee8c28f13cfdc22e2799e3220de31bcd430354dbc5c81253a414ace97c000
MD5 41b520cf4249664d2e0d4c427860f497
BLAKE2b-256 132f79cac1bee39d8119b3bfa9ab836cc11a7c0919c8f6da237900acd3be8ff6

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