Skip to content

Sprigen (Sprite Generator): AI 2D game character generator

License

Notifications You must be signed in to change notification settings

hafiidz/sprigen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpriGen

Sprigen (Sprite Generator): AI 2D game asset generator

Status

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

Requirements

  1. ComfyUI installed
  2. GPU with 8GB VRAM recommended

Installation steps

  1. This project is a custom workflow and should be installed within path/to/ComfyUI/custom_nodes folder
  2. Navigate to ComfyUI/custom_nodes folder via terminal
  3. Run git clone https://github.com/hafiidz/sprigen.git sprigen to clone this repository to the local folder
  4. Navigate to sprigen folder via cd sprigen
  5. Run install.bat
  6. Alternatively, you can manually Install rembg[gpu] library as per details below
  7. Open ComfyUI via run_nvidia_gpu.bat
  8. Load rembg workflow by clicking Load button and navigate to path/to/ComfyUI/custom_nodes/sprigen/workflow/remb.json

Alternative steps

  1. 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)

Features

SpriGen aims to address 2D game asset generation with the following features:

  1. Transparent asset background using rembg library.
  2. (Ongoing) infinite loop tiled texture assets.
  3. (Ongoing) Autogenerate text file map.
  4. (Ongoing) Animated sprite.

Example assets

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)

Example Assets

Acknowledgements

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]

About

Sprigen (Sprite Generator): AI 2D game character generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published