Creating dank.game with open source engine SPACE🪐BOX
Pinned Loading
-
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:
-
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:
-
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#
-
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:
-
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
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.