This file contains hidden or 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
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')] |
This file contains hidden or 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
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')] |
This file contains hidden or 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
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')] |
This file contains hidden or 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
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')] |
This file contains hidden or 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
# 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): |
This file contains hidden or 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
# 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 |