Skip to content

Instantly share code, notes, and snippets.

from network import *
id = "rory1"
x = 570
y = 700
SpX = 0
SpY = 200
SpD = 10
"""
Sasha Godycki
CD Toolkit Python Fall 2021
Midterm 10.26.21
"""
level = 1
circleY = 300
circleX = 300
circleDirection = 1
position = 0
# global img
circleY = 300
circleDirection = 1
position = 0
startTime = 0
rectY = 200
rectDirection =1
def drawLevel1():
global img
def drawLevel1():
global circleY, circleDirection, startTime, position
image(img,0,0)
fill(50,150,200)
rect(position,200, 50,50)
# move for a little while, then stop
if millis() > startTime and millis() < startTime + 2000:
position = position + 1
@sgodycki
sgodycki / sketch.properties
Created October 1, 2021 15:36
Struggling with Sol Lewitt
mode=Python
mode.id=jycessing.mode.PythonMode
Hi I tried opening the reference for the optional challenge of part 3 of the hw for this week but i just get a
"this connection is not private" message and it won't let me open the link. @rors.
@sgodycki
sgodycki / map__.pyde
Created September 17, 2021 15:57
Homework map error message
def setup():
size(800,375)
global mountainsImage
global hillsImage
global foregroundImage
global princesspeachImage
global moonImage
mountainsImage = loadImage("week03-mountains.png")
hillsImage = loadImage("week03-hills.png")
foregroundImage = loadImage("week03-foreground.png")
@sgodycki
sgodycki / map__
Created September 17, 2021 15:54
map__
mode=Python
mode.id=jycessing.mode.PythonMode
def setup():
size(800,375)
global mountainsImage
global hillsImage
global foregroundImage
global princesspeachImage
global moonImage
i made a red alien for class