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.3.tar.gz (2.7 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.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for PyEnviron-0.0.3.tar.gz
Algorithm Hash digest
SHA256 27769f1eff6576c6333e33a563dc7c3b62defd6d79a2e927a1cc8ef1cfea37d6
MD5 861b5ed249e98384c4d8c8f756189060
BLAKE2b-256 7a7bc42e5fd6b51ddba9493e6abee6f3176611b8e651dedb6f869b7388c43630

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyEnviron-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a34677762392dd6649d5da9c8ea3c527e2e0dc0d4334f7bc7b090c306336dc97
MD5 4595ec5911ecaf29365366347a628186
BLAKE2b-256 1b48339adfdaf3322e5b03bcd990fb63369ea7ee2f0c41f4acd113b7318e1452

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