Skip to content

Instantly share code, notes, and snippets.

View ohsqueezy's full-sized avatar

Frank DeMarco ohsqueezy

View GitHub Profile
@ohsqueezy
ohsqueezy / readme.txt
Created June 23, 2019 22:07
12,001 the Cadence of Spaghetti Pikachu (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@ohsqueezy
ohsqueezy / readme.txt
Created June 23, 2019 20:20
12,001 the Cadence of Spaghetti Pikachu (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@ohsqueezy
ohsqueezy / game.txt
Created March 16, 2019 22:39
flickgame
{"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",
@ohsqueezy
ohsqueezy / game.txt
Created March 16, 2019 22:33
flickgame
{"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",
@ohsqueezy
ohsqueezy / game.txt
Created March 16, 2019 22:28
flickgame
{"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"
# 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 *
@ohsqueezy
ohsqueezy / pygame-play-tone.py
Last active March 14, 2022 09:46
Play a 440 Hz tone in Pygame
# 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
@ohsqueezy
ohsqueezy / pygame-axis-motion-delay.py
Last active December 15, 2015 08:29
print message when gamepad axis is pressed and repeat after delay
# 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()
@ohsqueezy
ohsqueezy / pygame-display-input.py
Created January 1, 2013 16:46
display keyboard input using pygame
# 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 *
@ohsqueezy
ohsqueezy / pygame-menu-mouseover.py
Created May 27, 2012 04:30
Pygame text menu, mouse-over triggers highlight effect on menu option
# Highlight-able menu in Pygame
#
# To run, use:
# python pygame-menu-mouseover.py
#
# You should see a window with three grey menu options on it. Place the mouse
# cursor over a menu option and it will become white.
import pygame