Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(4)  |  Derive(7)  |  Import(7)

src/f/l/Flappy-0.3.7/samples/parasprites.py   Flappy(Download)
#! /usr/bin/env python
# encoding: utf-8
 
import flappy
from flappy.display import Sprite, Bitmap, BitmapData, Tilesheet
class ParaspritesExample(Sprite):
 
    def __init__(self):
        super(ParaspritesExample, self).__init__()
 
        self.addChild(background)
 
        self.tile_layer = Sprite()
        self.addChild(self.tile_layer)
 

src/f/l/Flappy-0.3.7/samples/mouse.py   Flappy(Download)
#! /usr/bin/env python
# encoding: utf-8
 
import flappy
from flappy.display import Sprite
class MouseExample(Sprite):
 
    def __init__(self):
        super(MouseExample, self).__init__()
 
        spr = Sprite()
        spr.addEventListener(MouseEvent.MOUSE_UP, self.on_spr_mouse_up)
 
        self.cursor = Sprite()
        self.cursor.mouseEnabled = False
        self.addChild(self.cursor)

src/f/l/Flappy-0.3.7/samples/keyboard.py   Flappy(Download)
#! /usr/bin/env python
# encoding: utf-8
 
import flappy
from flappy.display import Sprite
class KeyboardExample(Sprite):
 
    def __init__(self):
        super(KeyboardExample, self).__init__()
 
        self.ball = Sprite()

src/f/l/Flappy-0.3.7/samples/text.py   Flappy(Download)
#! /usr/bin/env python
# encoding: utf-8
 
import flappy
from flappy.display import Sprite
class TextExample(Sprite):
    def __init__(self):
        super(TextExample, self).__init__()
 
        def_format = TextFormat(size=24, font='_serif')

src/f/l/Flappy-0.3.7/samples/heroku_shaders.py   Flappy(Download)
from flappy.display3d import Scene3D, VertexBuffer3D, VertexBuffer3DFormat
from flappy.display3d import IndexBuffer3D, Program3D, Texture
from flappy.display import Sprite
 
from time import time
class HerokuShaders(Sprite):
 
    def __init__(self):
        super(HerokuShaders, self).__init__()
 

src/f/l/Flappy-0.3.7/samples/hello_world.py   Flappy(Download)
#! /usr/bin/env python
# encoding: utf-8
 
import flappy
from flappy.display import Sprite
from flappy.text import TextField
 
 
class HelloWorld(Sprite):

src/f/l/Flappy-0.3.7/samples/cube_3d.py   Flappy(Download)
from flappy.display3d import Scene3D, VertexBuffer3D, VertexBuffer3DFormat
from flappy.display3d import IndexBuffer3D, Program3D
from flappy.display import Sprite
 
import math
class Cube3DExample(Sprite):
 
    def __init__(self):
        super(Cube3DExample, self).__init__()