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

Addding ticks and tstamp like in tic80 #437

Closed
wants to merge 8 commits into from

Conversation

comick
Copy link

@comick comick commented Dec 24, 2022

Those new functions clearly have their python counterpart but I liked the idea of having all functionality offered through pyxel API, similar to time and tstamp from tic80.

@comick comick changed the title Addding time and tstamp like in tic80 Addding ticks and tstamp like in tic80 Dec 25, 2022
README.md Show resolved Hide resolved
@comick comick requested a review from merwok December 25, 2022 17:36
@comick
Copy link
Author

comick commented Dec 27, 2022

@kitao
Copy link
Owner

kitao commented Jan 5, 2023

Thank you for the proposal.

Pyxel's basic API design policy is to keep to a minimum so that users don't need to learn many things or read a lot of manuals.

As an exception, I've added some redundant APIs if the API makes it easier for beginners to create games than using the Python library directly. For example, there is a degree version of sin/cos that can be used even if users don't know about "PI".
And the criteria for whether or not games will be easy to make are not whether they may be used someday, but rather whether the current Pyxel examples will be simpler and easier for beginners to understand.

From that point of view, the API you proposed does not match the criteria, so when a situation that meets the conditions comes up, I would like to reconsider.

@comick comick closed this Jan 8, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants