Skip to content

Instantly share code, notes, and snippets.

View CloudJump.py
from scene import *
import random
IMAGE_WIDTH = 101
IMAGE_HEIGHT = 171
IMAGE_Y_OFFSET = -30
BLOCK_HEIGHT = 40
BLOCK_DEPTH = 80
DEAD_ZONE_MIN = -0.02
DEAD_ZONE_MAX = 0.02
View TimesTablesTorture.py
from scene import *
from random import randint
import sound
BUTTONS = [['', '0', 'Delete'],
['7', '8', '9'],
['4', '5', '6'],
['1', '2', '3']]
BLOCKS = ['PC_Brown_Block', 'PC_Dirt_Block', 'PC_Grass_Block', 'PC_Plain_Block', 'PC_Stone_Block', 'PC_Wood_Block']
View JumpyOctopus.py
from scene import *
from PIL import Image
import sound
import random
GAME_READY = 0
GAME_PLAY = 1
GAME_DYING = 2
GAME_DEAD = 3
View HydrogenLayouts.py
#
# Hydrogen is a lightweight GUI framework for Pythonista
#
# Hydrogen - https://gist.github.com/BashedCrab/5924965
#
# HydrogenLayouts - https://gist.github.com/BashedCrab/6103019
#
# HydrogenDemo - https://gist.github.com/BashedCrab/5953776
#
View Hydrogen-Dirty_Regions.py
#
# Hydrogen experiment to use "dirty region rendering" and improve rendering large GUIs
#
# Will not work with Pythonista in it's current form as scene drawing clears the frame buffer
#
# Lightweight GUI framework for Pythonista
#
# Get the the Demo scene here:
#
# https://gist.github.com/BashedCrab/5953776
@BashedCrab
BashedCrab / HydrogenDemo.py
Last active Aug 10, 2020
Demo of the Hydrogen GUI framework for Pythonista
View HydrogenDemo.py
#
# Hydrogen is a lightweight GUI framework for Pythonista
#
# Hydrogen - https://gist.github.com/BashedCrab/5924965
#
# HydrogenLayouts - https://gist.github.com/BashedCrab/6103019
#
# HydrogenDemo - https://gist.github.com/BashedCrab/5953776
#
@BashedCrab
BashedCrab / Hydrogen.py
Last active Mar 19, 2022
Hydrogen - A lightweight GUI framework for Pythonista
View Hydrogen.py
#
# Hydrogen is a lightweight GUI framework for Pythonista
#
# Hydrogen - https://gist.github.com/BashedCrab/5924965
#
# HydrogenLayouts - https://gist.github.com/BashedCrab/6103019
#
# HydrogenDemo - https://gist.github.com/BashedCrab/5953776
#