Skip to content

Personal projects to generate vertices2 array to using with flame/flutter game development

Notifications You must be signed in to change notification settings

iagocavalcante/image_vertices_pixel_art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Generate vertices for images

This project emerge from a personal project built with flutter and a needed to create a polygon hitbox to improve collision for the players, the output is an image with highlighted version of the input image and a Vector2 array for flutter flame, then its just need to copy the array and put into the flame array list for vertices.

How to run

Download the project, with the python3 installed, all we need to do is install deps with:

pip install -r requirements.txt

After installation is done, run the follow command:

The first argument shoudl be a image path or image url:

python cli.py ./input1.png --output result.png

About

Personal projects to generate vertices2 array to using with flame/flutter game development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages