This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"gameTitle":"420","winText":"420","gameLink":"420","canvasIndex":0,"canvasses":[[758,"0",7,"2",3,"0",7,"2",3,"0",7,"2",90,"0",16,"2",1,"0",9,"2",1,"0",9,"2",89,"0",16,"2",1,"0",9,"2",1,"0",10,"2",88,"0",10,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",4,"0",3,"2",88,"0",2,"2",3,"0",5,"2",3,"0",3,"2",1,"0",9,"2",1,"0",3,"2",4,"0",3,"2",88,"0",10,"2",3,"0",3,"2",1,"0",9,"2",1,"0",3,"2",4,"0",4,"2",87,"0",10,"2",3,"0",3,"2",1,"0",9,"2",1,"0",3,"2",5,"0",3,"2",87,"0",10,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",4,"2",3,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",5,"2",2,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",2,"2",1,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",2,"2",1,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",4,"0",4,"2",87,"0",2,"2",2,"0",12,"2",1,"0",3,"2",4,"0",1,"2",2,"0",10,"2",88,"0",2,"2",3,"0",1,"2",1,"0",9,"2",1,"0",3,"2",7,"0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"gameTitle":"420","winText":"420","gameLink":"420","canvasIndex":0,"canvasses":[[758,"0",7,"2",3,"0",7,"2",3,"0",7,"2",90,"0",16,"2",1,"0",9,"2",1,"0",9,"2",89,"0",16,"2",1,"0",9,"2",1,"0",10,"2",88,"0",10,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",4,"0",3,"2",88,"0",2,"2",3,"0",5,"2",3,"0",3,"2",1,"0",9,"2",1,"0",3,"2",4,"0",3,"2",88,"0",10,"2",3,"0",3,"2",1,"0",9,"2",1,"0",3,"2",4,"0",4,"2",87,"0",10,"2",3,"0",3,"2",1,"0",9,"2",1,"0",3,"2",5,"0",3,"2",87,"0",10,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",4,"2",3,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",5,"2",2,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",2,"2",1,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",5,"0",3,"2",87,"0",2,"2",1,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",3,"0",3,"2",1,"0",3,"2",4,"0",4,"2",87,"0",2,"2",2,"0",12,"2",1,"0",3,"2",4,"0",1,"2",2,"0",10,"2",88,"0",2,"2",3,"0",1,"2",1,"0",9,"2",1,"0",3,"2",7,"0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"gameTitle":"420","winText":"420","gameLink":"420","canvasIndex":0,"canvasses":[[2995,"0",1,"6",3,"0",1,"6",121,"0",1,"6",1,"0",1,"6",123,"0",1,"6",123,"0",1,"6",1,"0",1,"6",121,"0",1,"6",3,"0",1,"6",109,"0",6,"a",118,"0",8,"a",117,"0",8,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",3,"a",2,"0",3,"a",117,"0",8,"a",117,"0",8,"a",118,"0",6,"a",111,"0",4,"a",116,"0",10,"a",114,"0",11,"a",115,"0",5,"a",2,"0",3,"a",122,"0",3,"a",122,"0",3,"a",117,"0",8,"a",116,"0",9,"a",116,"0",8,"a",117,"0",3,"a",122,"0",3,"a",122,"0",3,"a",122,"0",8,"a",117,"0",9,"a",117,"0",7,"a",996,"0",1,"a",123,"0",3,"a",113,"0",1,"a",8,"0",3,"a",112,"0",3,"a",7,"0",3,"a",19,"0",2,"e",91,"0",3,"a",7,"0",3,"a",18,"0",2,"e",2,"3",90,"0",3,"a",7,"0",3,"a",17,"0",2,"e",3,"3",90,"0",3,"a",7,"0",3,"a",16,"0",2,"e",4,"3",90,"0",3,"a",7,"0",3,"a",15,"0",2,"e",5,"3",90,"0",3,"a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a simple maze by drawing a grid of squares defined in a 2D list of | |
# booleans and an ASCII character to represent the player. The player can move | |
# along squares marked "1". | |
# | |
# Run with the following command: | |
# python3 pygame-ascii-maze.py | |
import pygame | |
from pygame.locals import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate a 440 Hz square waveform in Pygame by building an array of samples and play | |
# it for 5 seconds. Change the hard-coded 440 to another value to generate a different | |
# pitch. | |
# | |
# Run with the following command: | |
# python pygame-play-tone.py | |
from array import array | |
from time import sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print message when gamepad axis is pressed and repeat message after delay | |
# | |
# Run with the following command: | |
# python pygame-axis-motion-delay.py | |
import pygame | |
from pygame.locals import * | |
def main(): | |
pygame.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Display keyboard input using pygame. Only prints letters (no numbers | |
# or special chars). Backspace deletes one character. Return clears | |
# the entire input. | |
# | |
# Run with the following command: | |
# python pygame-display-input.py | |
import pygame | |
from pygame.locals import * | |