Skip to content

Instantly share code, notes, and snippets.

View SpaceVoyager's full-sized avatar

Yuhang Wang SpaceVoyager

View GitHub Profile
@ssophwang
ssophwang / fibonacci.py
Created June 1, 2015 00:39
fibonacci.py
# makes Fibonacci numbers using python
def fib(s):
a = 0
b = 1
for i in range(s+1):
print a
old_a = a
a = b
b = old_a + b
@ssophwang
ssophwang / Fathers_Day_Gift.py
Created June 7, 2015 14:59
Fathers_Day_Gift.py
# Father's Day Gift
from scene import *
class MyScene (Scene):
def draw(self):
background(1, 1, 1)
fill(1, 0, 0)
w = self.size.w
h = self.size.h
for i in range(6):
@ssophwang
ssophwang / Super_Alien.py
Created August 6, 2016 19:28
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
@ssophwang
ssophwang / Super_Alien.py
Created September 3, 2016 18:04
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
@ssophwang
ssophwang / Super_Alien.py
Created September 10, 2016 19:21
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
@ssophwang
ssophwang / Super_Alien.py
Created September 24, 2016 18:51
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]