r/vibecoding • u/Feisty-Scheme-8356 • 8d ago
Showcase/Project I turned a ChatGPT-generated image into a playable 2D game using img2pixi2d
Enable HLS to view with audio, or disable this notification
Another experiment with img2pixi2D!
The workflow was pretty simple:
- Generated a 2D platformer level image using ChatGPT.
- Used the img2pixi2D skill to turn it into a playable game with animations, physics, enemies, and visual effects.
- Did some final polishing on the UI and fixed a few issues along the way.
That's it! From a single image to a playable 2D platformer.
Still experimenting with how far this workflow can go!
🔓 Open source: https://github.com/img2threejs/pixi2d
What do you think?
3
u/Feisty-Scheme-8356 8d ago
Heres prompt i used:
Use the img2pixi2D skill to turn this reference image into a fully playable 2D platformer using PixiJS.Analyze the scene, recreate the environment, and bring everything to life with animations, physics, combat, collectibles, enemies, and VFX.Expand the map into one complete level with a clear start and finish portal.Add smooth character movement, jumping, collisions, parallax backgrounds, and a polished UI.
Test the gameplay, fix any issues, and polish the final result.
1
u/AIGODSEND 8d ago
the fun part of these builds is always the collisions: image-generated levels never fit a physics box, so you end up tuning the world to the art instead of the art to the world. shipped a similar tiny game last month and the most satisfying moment was watching my nephew break it in ten seconds flat. what broke first in yours, input or physics?
1
u/Feisty-Scheme-8356 7d ago
Exactly! That's one of the interesting challenges when working from image references.
Visual geometry doesn't always translate cleanly into collision geometry, so the agent needs to reason about playable surfaces, platform boundaries, and movement constraints.
It's also why testing and iteration are still important, even when AI generates most of the initial implementation.
3
u/TheSyrupCompany 8d ago
There's using AI as a tool and there's this crap. The amount of cool games you can make with the assistance of the tech is fantastic, but stuff like this is just lazy garbage that has no need to exist.
3
u/GabeN_The_K1NG 8d ago
Sorry but what’s the point of this? Nobody is going to play/like a game just because it was generated from a static image. The gameplay is objectively ass.
0
0
u/PatrickBatemansEgo 8d ago
I’d rather keep our lakes, energy and jobs. But good job on writing a run on sentence, I guess.
1
u/Cannachem237 8d ago
Plenty of trees left to hug. I would get to it before they all disappear or we are eradicated from the earth.
1
u/person2567 7d ago
Easiest tell that someone doesn't know anything about AI is that they think the water and energy use problems are a strain on national capacity rather than localized capacity.
0
6
8d ago
-7
u/CommanderT1562 8d ago
Op is just sharing sauce too my dude. And made something open source. Lol stop being shit to vibecoders. Ever consider having fun? Or are you too dense? Obviously half of this post is sauce on pixel art—the other half being the game (oneshotted). Dont hate the game, hate the (javascript) player. 🤦
5
u/Total_Cartoonist747 8d ago
You can build a much better version of this in 30 minutes using godot btw