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
# -*- coding: UTF-8 -*- | |
# Written by Sebastian Jarsve | |
from scene import * | |
from sound import * | |
from random import randint, uniform | |
from math import sin | |
GAME_PLAYING = 1 | |
GAME_DEAD = 0 |
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 * | |
class MyScene (Scene): | |
def setup(self): | |
self.xybegin = Point(0,0) | |
self.lines = [] | |
def draw(self): | |
background(0, 0, 0) | |
fill(0, 0, 1) |
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 * | |
class MyScene (Scene): | |
def setup(self): | |
self.lines = [] | |
def touch_began(self, touch): | |
x = touch.location.x | |
y = touch.location.y | |
self.xybegin = Point(x,y) |
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 * | |
from random import randint, choice | |
from math import cos, sin | |
screen_size = Size(768, 1024) | |
score = 0 | |
def update_score(n=1): | |
global score | |
if n == 'reset': |
NewerOlder