Oct-18-2022, 09:00 PM
Hello,
I need help please. I am trying to figure out how can I take any 2d image I got and pass it in a python program with outlines that would act as borders / collision area ? For example, I take a 2d maze picture made of squares, the red ones are borders and the rest is the “walk area” (sample picture bellow)
).
Or I take a .png of a level i designed and draw lines to delimitate stuff and each colors should lead to a different action (red = border, blue = enter / quit area, green = grass, I don’t know)
Do you know how can I do this and what’s the name of this technique ?
PS: I am new to programming and Python, be nice with me senpais
Thank you
I need help please. I am trying to figure out how can I take any 2d image I got and pass it in a python program with outlines that would act as borders / collision area ? For example, I take a 2d maze picture made of squares, the red ones are borders and the rest is the “walk area” (sample picture bellow)
).
Or I take a .png of a level i designed and draw lines to delimitate stuff and each colors should lead to a different action (red = border, blue = enter / quit area, green = grass, I don’t know)
Do you know how can I do this and what’s the name of this technique ?
PS: I am new to programming and Python, be nice with me senpais
Thank you