Sprigen (Sprite Generator): AI 2D game asset generator
We're looking for programmers and artist in indie game industries to use and give feedback to our tools. Create an issue or PR for new features and ideas.
Dev branch added for experimental features at https://github.com/hafiidz/sprigen/tree/dev
- ComfyUI installed
- GPU with 8GB VRAM recommended
- This project is a custom workflow and should be installed within path/to/ComfyUI/custom_nodes folder
- Navigate to ComfyUI/custom_nodes folder via terminal
- Run
git clone https://github.com/hafiidz/sprigen.git sprigen
to clone this repository to the local folder - Navigate to sprigen folder via
cd sprigen
- Run
install.bat
- Alternatively, you can manually Install
rembg[gpu]
library as per details below - Open ComfyUI via
run_nvidia_gpu.bat
- Load
rembg
workflow by clicking Load button and navigate topath/to/ComfyUI/custom_nodes/sprigen/workflow/remb.json
- Run
"path\to\ComfUI\python_embeded\python.exe" -s -m pip install rembg[gpu]
. See details for rembg version and installation guide at https://github.com/danielgatis/rembg#installation. Note to include double quote"
on the path if there is spaces in one of the folders along the path and the typo (embeded instead of embedded as per ComfyUI current path naming, as of July 2023)
SpriGen aims to address 2D game asset generation with the following features:
- Transparent asset background using rembg library.
- (Ongoing) infinite loop tiled texture assets.
- (Ongoing) Autogenerate text file map.
- (Ongoing) Animated sprite.
Example assets as follows (note: that this example will be replaced with actual AI Generated image, placeholder example game assets from https://github.com/fishfolk/jumpy)
Some of the code snippets and functions are copied over from custom_nodes repo by WASasquatch at https://github.com/WASasquatch/was-node-suite-comfyui/blob/main/WAS_Node_Suite.py [MIT License]