Hello GDevelop Team and Community,
I’m requesting an enhancement for the “Read pixels” extension to expand its capabilities for more robust procedural generation systems.
Describe the feature you’d like to see:
I would like the “Read pixels” extension to be able to:
- Read pixels directly from an image resource/asset (e.g., a
.png
file) that is not currently displayed on screen as an object. - Provide the pixel’s coordinates within that image.
Currently, the extension seems to only allow reading pixels from objects that are rendered on the screen. While useful for some cases, this limits its use for “blueprint” style procedural generation where an image acts purely as data.
Describe the problem this feature would solve:
This feature would significantly streamline the creation of map/level generation systems (like roguelikes or dungeon crawlers) where:
- Images serve as “blueprints”: A small pixel-art image (e.g., 10x10, 20x20 pixels) defines the layout of a room or section of a map using distinct colors (e.g., yellow for wall, blue for floor, green for player spawn).
- Invisible data parsing: We need to read these color-coded pixels without displaying the blueprint image to the player, and then dynamically create game objects (tiles, enemies, items) based on the colors at their respective (x,y) pixel coordinates.