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.1.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file PyEnviron-0.0.1.tar.gz.

File metadata

  • Download URL: PyEnviron-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyEnviron-0.0.1.tar.gz
Algorithm Hash digest
SHA256 31cd352eb89abd901d37664fdadc70b51bca7a310320703d2f47a81181de16ce
MD5 f9251a380a5f0306f61175d8892e3936
BLAKE2b-256 240578dce9712618f82033f7960888618ff645d03ae0acd2ae719d500178bcc1

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