Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Updating "Python Pygame Introduction"#3918

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
illume merged 6 commits intopygame:mainfromRonoc21:main
Jun 19, 2023
Merged

Conversation

@Ronoc21
Copy link
Contributor

Updated the resolution size of the code snippet to 1920 x 1080. The previous resolution was extremely small and caused the ball to bounce too fast. Added some clarification about making sure the intro_ball.gif file can be found by the code snippet. The snippet itself was not displaying properly either. Added an image file to display it instead of formatting in github

Updated the resolution size of the code snippet to 1920 x 1080. The previous resolution was extremely small and caused the ball to bounce too fast. Added some clarification about making sure the intro_ball.gif file can be found by the code snippet. The snippet itself was not displaying properly either. Added an image file to display it instead of formatting
pygame modules.
The call to ``pygame.init()`` initializes each of these modules.

Make sure the gif file of the bouncing ball is in the same folder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is a nice change, thanks.

screen.fill(black)
screen.blit(ball, ballrect)
pygame.display.flip()
..image::introsnippet.PNG
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't think the code listing should be removed for an image. One reason is the code listing can be copy/pasted, but the image not.

Can you please remove this change?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

let me know if the new edit is ok, the reasoning is, the code block doesn't show up at all on the github page, but I don't want to negatively impacthttps://www.pygame.org/docs/tut/PygameIntro.html, i can remove the change altogether and go back to how it was if needed

Copy link
Member

@illumeillumeJun 15, 2023
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It seems removing the linenos fixed it so it displays in github again. Thanks.

Can you please remove the png file from the PR?

Copy link
Member

@illumeillume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks.

I left a request about adding the code listing back.

Took out image from rst file and using ..codeblock instead. The code block was not displaying at all on github, but you could see it herehttps://www.pygame.org/docs/tut/PygameIntro.htmlThe problem was there needs to be a blank space after.. code-block:: python line,BUT now the line numbers are not displaying
Copy link
Member

@illumeillume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

🎉 thanks :)

@illumeillume merged commit3b03a3b intopygame:mainJun 19, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@illumeillumeillume approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Ronoc21@illume

[8]ページ先頭

©2009-2025 Movatter.jp