Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename angle_get_subimg to angle_get_portion #9

Open
Manukineko opened this issue Dec 2, 2024 · 1 comment
Open

Rename angle_get_subimg to angle_get_portion #9

Manukineko opened this issue Dec 2, 2024 · 1 comment

Comments

@Manukineko
Copy link

Hello,
Just a random reflexion.
I think the angle_get_subimg function's name is quite specific. The function doesn't refer to anything sprite or image related stuff in itself.
It returns the portion's index of a "pie" that contains the input angle, right ?
I could use that to get the index of a circular area around an object, with the mouse cursor, for example XD

@FoxyOfJungle
Copy link
Owner

Hello Manukineko,

Oh, now that you mention it, you're absolutely right! I had given it the "subimg" suffix because I initially used it to point the sprite's direction based on the angle haha ​​(like in the Club Penguin game). I'll consider changing it.

Thanks! ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants