Skip to main content

Just Enough Assets

Just Enough Assets (JEA) is a library based around simplifying Adam Fox's Pygame Tkinter GUI Tools Fox's PTGT is aimed at making game development easier by giving pre-built tools for developers to use. I didn't really like how he vibe coded the whole thing so I made the library Just Enough Assets. JEA simplifies Fox's vibe coded library and makes implementation a lot quicker and easier.


Initialisation:

  1. Install JEA: pip install git+https://github.com/ShortBoiAidz/JustEnoughAssets

  2. Import JEF using the following syntax in your Python file: import justEnoughAssets.py as jea

  3. Initialise the module in your process_logic() function using the following syntax: jea.init()

  • You do NOT need to initalise in each module. As long as this runs through your while loop, everything should work fine.
  • You DO need to import the module in each of your files though (obviously).

How To Use:

Labels

  1. Use createLabel(a, b, c, d, e) with the following params: a. scene i. For example: menu or startScreen b. text i. Self explanatory. If I need to tell you what "text" is, die. c. font size i. Same goes here. If you don't know what "font size" is, die. d. row i. The row on the Y axis. This sets it in place so other labels don't overlap. ii. For example: one label could be on row 1, meaning a label below it would be on row 2. e. padding on the Y axis i. The amount of space above and below the label

  2. Putting .draw() at the end of initialising the label automatically draws it on screen. a. Handy, because it doesn't make you do thisAwesomeCoolLabel.draw() after initalising it.

Suggestion: createLabel(menu, "Horse Tale", 48, 0).draw()


Characters

  1. The syntax goes as follows: a. Character( character:str, x:int, y:int, pathToImg:str, animation:bool, pathToAnimation:str, width:int, height:int, rows:int, cols:int, allowJSON:bool, pathToJSON:str, speakingSound:str, themeMusic:str, themeMusicVolume:float )

  2. character is a string parameter. This is the name of both the file of the character's idle image, as well as the object name in the JSON dialog file.

  3. x and y are both integers. These are the coordinates of the character.

  4. pathToImg is a string parameter, being the path to the character's idle image. This should NOT include the actual image; just the path.

  5. animation and pathToAnimation are pretty self-explanatory. They follow the same structure as pathToImage but you must include the file, with the file being a spritesheet (mandatory).

  6. width and height are the sizes of the individual sprites in the spritesheet.

  7. rows and cols are the rows and columns in the spritesheet.

  8. allowJSON and pathToJSON determine whether there is dialog. If so, pathToJSON is the path to the JSON file containing all of the dialog.

  9. speakingSound is the sound that plays on each individual letter in the character's dialog.

  10. themeMusic and themeMusicVolume hold the path and volume of any theme music that plays when the character is speaking.

Suggestion: Character( character="danielPrank", x=100, y=500, pathToImage="assets/textures/characters/danielPrank", animation=True, pathToAnimation="assets/textures/characters/danielPrank/danielPrank_sheet.png", width=21, height=48, rows=1, cols=3, allowJSON=True, pathToJSON="data/jsonFiles/danielPrank.json", speakingSound="assets/sounds/danielPrankSpeak.wav", themeMusic="assets/sounds/danielPrankTheme.wav", themeMusicVolume=0.7 )


Map creation

Map creation description coming soon

Metadata

Release files for just-enough-assets 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for just-enough-assets 1.0
File Size Uploaded Provenance Actions
just_enough_assets-1.0.tar.gz 144.2 kB Without provenance Details for just_enough_assets-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for just-enough-assets 1.0
File Interpreter ABI Platform Actions
just_enough_assets-1.0-py3-none-any.whl Python 3 none any Details for just_enough_assets-1.0-py3-none-any.whl

Total release size: 290.3 kB

Release files / just_enough_assets-1.0.tar.gz

Download URL just_enough_assets-1.0.tar.gz
Size 144.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0fca0e2eb1f9431a5362e40d630d59b63d9a7deb0bcda05c00f737191368e43c
BLAKE2b-256 checksum
How to use checksums
a5b30088acee3adf24436f1609058ca80adedb2ccb075621d0e984111700acda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / just_enough_assets-1.0-py3-none-any.whl

Download URL just_enough_assets-1.0-py3-none-any.whl
Size 146.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dec635b5feb1ff668e8e693e4472f90683f6ddd9d67419a398bdd595862c638
BLAKE2b-256 checksum
How to use checksums
676ea8faf0e6e9cbb2a31e11b74bc2133d26f71a5bf92f13608348c1d8ff2de7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for just-enough-assets 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page