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 ui import * | |
import speech | |
def is_point_inside_rect(point, rect): | |
x = rect[0] | |
y = rect[1] | |
w = rect[2] | |
h = rect[3] |
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 ui import * | |
import speech | |
class MyScene (Scene): | |
def setup(self): | |
self.background_color = 'white' | |
keyboard_font = ('Futura', 40) | |
self.button_shape = ShapeNode(path=Path.rounded_rect(200, 250, 100, 80, 5), fill_color='blue', stroke_color='clear', parent=self) |
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
import canvas, console | |
def newgame(): | |
word = console.input_alert('Please enter a phrase you have in mind:') | |
return word | |
canvas.clear() | |
word = newgame() | |
font = 'Arial Rounded MT Bold' |
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 | |
from scene import * | |
import json | |
import sound | |
import random | |
import math | |
A = Action | |
standing_texture = Texture('plf:AlienBlue_front') |
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 | |
from scene import * | |
import json | |
import sound | |
import random | |
import math | |
A = Action | |
standing_texture = Texture('plf:AlienBlue_front') |
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 | |
from scene import * | |
import json | |
import sound | |
import random | |
import math | |
A = Action | |
standing_texture = Texture('plf:AlienBlue_front') |
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 | |
from scene import * | |
import json | |
import sound | |
import random | |
import math | |
A = Action | |
standing_texture = Texture('plf:AlienBlue_front') |
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 | |
from scene import * | |
import json | |
import sound | |
import random | |
import math | |
A = Action | |
standing_texture = Texture('plf:AlienBlue_front') |
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 | |
from scene import * | |
import json | |
import sound | |
import random | |
import math | |
A = Action | |
standing_texture = Texture('plf:AlienBlue_front') |
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 | |
from scene import * | |
import json | |
import sound | |
import random | |
import math | |
A = Action | |
standing_texture = Texture('plf:AlienBlue_front') |