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

Advanteges of math functions in pyxel #403

Closed
kommit opened this issue Aug 19, 2022 · 1 comment
Closed

Advanteges of math functions in pyxel #403

kommit opened this issue Aug 19, 2022 · 1 comment

Comments

@kommit
Copy link

kommit commented Aug 19, 2022

Compare with Python's math module, are there any advanteges of those math functions in pyxel module?
Is there a design principle like "no need to import modules other than pyxel"?

@kitao
Copy link
Owner

kitao commented Aug 19, 2022

You can choose depends on the situation.
The policy of Pyxel is that if Python provides some feature, Pyxel doesn't re-implement it.
As for math-related functions, Pyxel's function supports degree instead of radian and random by perlin noise.
In my experience they are sometimes very useful for game development.

@kommit kommit closed this as completed Aug 21, 2022
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