Make it possible to inject additional image into image loader cache
Open
Nobody has claimed this yet.
enhancement
good first issue
- Dominant language
- Python
- Stars
- 611
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
Originally created by @jhutar in #232
I have images dirt.png and bush.png and with this I can create temporary image on the fly when starting the game (so my actor do not need to draw two overlapping images when running the game):
import pygame.image
img_dirt = pygame.image.load('images/dirt.png').convert_alpha()
img_bush = pygame.image.load('images/bush_small.png').convert_alpha()
img_dirt.blit(img_bush, (0,0))
images.add('tmp_dirt_with_bush', img_dirt)
my_actor.image = 'tmp_dirt_with_bush'
Please let me know if it makes sense.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides no file or test names. Start by locating the image loader/cache and the existing images API, then verify the example’s injected surface can be retrieved through my_actor.image. Done means an image created at runtime can be added and resolved by its name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100