Skip to content
View ohsqueezy's full-sized avatar

Block or report ohsqueezy

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Play a 440 Hz tone in Pygame Play a 440 Hz tone in Pygame
    1
    # Generate a 440 Hz square waveform in Pygame by building an array of samples and play
    2
    # it for 5 seconds.  Change the hard-coded 440 to another value to generate a different
    3
    # pitch.
    4
    #
    5
    # Run with the following command:
  2. display keyboard input using pygame display keyboard input using pygame
    1
    # Display keyboard input using pygame.  Only prints letters (no numbers
    2
    # or special chars).  Backspace deletes one character.  Return clears
    3
    # the entire input.
    4
    #
    5
    # Run with the following command:
  3. Pygame text menu, mouse-over trigger... Pygame text menu, mouse-over triggers highlight effect on menu option
    1
    # Highlight-able menu in Pygame
    2
    #
    3
    # To run, use:
    4
    #     python pygame-menu-mouseover.py
    5
    #
  4. pygame-ascii-maze.py pygame-ascii-maze.py
    1
    # Create a simple maze by drawing a grid of squares defined in a 2D list of
    2
    # booleans and an ASCII character to represent the player.  The player can move
    3
    # along squares marked "1".
    4
    #
    5
    # Run with the following command:
  5. print message when gamepad axis is p... print message when gamepad axis is pressed and repeat after delay
    1
    # Print message when gamepad axis is pressed and repeat message after delay
    2
    #
    3
    # Run with the following command:
    4
    #     python pygame-axis-motion-delay.py
    5