Skip to main content

A library for making simple 2D games

Project description

Project Description

Emeral is a Python package for creating small games, developed based on Pygame, with the aim of changing the loop-refresh method to a multithreaded approach. The Emeral library is suitable for making 2D games and currently has four modules: display, events, image, and entity, with more modules planned for development. Emeral is currently in the beta version.

Installation

Before downloading the Emeral library, you must ensure that Python is already installed on your computer, and the Python version should be above 3.7. Version 3.7 is only the minimum requirement, and some advanced functions may not be available when using it. Once you have installed Python, you can use the following command to install the Emeral library from the command line.

pip install emeral

After installing the Emeral library, you can use the following command to ensure that the library was installed successfully.

pip list

If the Python library ‘emeral’ appears in the list, it means you have successfully installed it.

Help

Our documentation is actively being written. To view the basic help documentation, please write the following code in your Python program.

import emeral
help(emeral)

Quick Start

Basic framework:

import emeral

window=emeral.display.Window() # Create a window object.

room=emeral.display.Room(window) # Create a room on the window.
room.set_caption("NewGame") # Set caption for the room, which will show on title bar.
room.switch() # Switch to the window.

window.listen() # Window Mainloop.

License

MIT License - Check the LICENSE file for details.

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

emeral-0.8.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

emeral-0.8.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file emeral-0.8.0.tar.gz.

File metadata

  • Download URL: emeral-0.8.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for emeral-0.8.0.tar.gz
Algorithm Hash digest
SHA256 c21f907d8d15cbb229aa85cb2b19b9f6fde8232c10ba736d6a1af60b11f00344
MD5 d40140c61495d39f8ef4ad00cf3d19ea
BLAKE2b-256 2a82956b288cdd38c6dc1f95c79e19bacf0c184c651fbacbef491ca0be050789

See more details on using hashes here.

File details

Details for the file emeral-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: emeral-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for emeral-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2eb2460ef57ff2fbaede31b497bb9f2fdc27493773e695bb43f14e78094848f7
MD5 06b52a0cd0e2aabf22971e225cd85c1c
BLAKE2b-256 a17f9f80839ff13e12bcb056dd5df55fe297a542a45375b1b670ac5380baae56

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