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.2.tar.gz (15.2 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.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emeral-0.8.2.tar.gz
  • Upload date:
  • Size: 15.2 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.2.tar.gz
Algorithm Hash digest
SHA256 a19e8db63fc22b5b73e53aeb466fbe5c4edc663ba5ee28fabd7d8c9f7b356cc0
MD5 6111381998b22268d9c6ad270adc82a8
BLAKE2b-256 c6da139a439598ffb9575c1983f7c5e9d4c152cd8dba3b62c636af21d4bb135b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: emeral-0.8.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a0aec1cb6aa598fb5f3a1cd739ef757e1c86909bcfa46aac3b11475037d94c
MD5 37d78f0dc71892bf0214763e2d3f2842
BLAKE2b-256 f3a26e1337e410d22abf3a26f2071232dc3206de536a44852607c700ba7ef46b

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