示例#1
0
文件: main.py 项目: kwarwp/sarah
def jogo():
    floresta =  Cena(img=FLORESTA)
    casa = Cena(img=CASA)
    floresta2 =  Cena(img=FLORESTA)
    floresta3 =  Cena(img=FLORESTA)
    pantano =  Cena(img=PANTANO)
    shopping =  Cena(img=SHOPPING)
    floresta.direita = casa
    casa.direita = floresta2
    floresta2.direita = floresta3
    floresta3.direita = pantano
    pantano.direita = shopping
    shopping.esquerda = pantano
    pantano.esquerda = floresta3
    floresta3.esquerda = floresta2
    floresta2.esquerda = casa
    casa.esquerda = floresta
    
    yoda = Elemento(img=YODA, tit="yoda", style=dict(left=50, 
    top=50, width=400, height="100px"))
    yoda.entra(floresta)
    cinderela = Elemento(img=CINDERELA, tit="cinderela", style=dict(left=400, 
    top=350, width=100, height="100px"))
    cinderela.entra(floresta)
    
    falacinderela = Texto(floresta, " Yoda, vamos tomar um chá?")
    cinderela.vai = falacinderela.vai
    
    falayoda = Texto(floresta, " Sim, muito obrigado pelo convite.")
    yoda.vai = falayoda.vai
    
    floresta.vai() 
示例#2
0
def game():
    cidade = Cena(img=CIDADE)
    cha = Cena(img=CHA)
    casa = Cena(img=CASA)
    cidade.direita = cha
    cha.direita = casa
    casa.esquerda = cha
    cha.esquerda = cidade
    
    yoda = Elemento(img=YODA, tit="Yoda", style=dict(left=50, top=50, width=200, height="200px"))
    yoda.entra(cidade)
        
    falayoda = Texto(cidade, "Mim, programa fazer, padawan! (Sotaque do Yoda)")
    yoda.vai = falayoda.vai
    
    alice = Elemento(img=ALICE, tit="Alice", style=dict(left=250, top=100, width=200, height="200px"))
    alice.entra(cha)
    yodasegundo = yoda
    yodasegundo.entra(cha)
    falaalice = Texto(cha, "Cadê seu sabre de luz, yoda?")
    alice.vai = falaalice.vai
    falayodasegundo = Texto(cha, "Yoda sabre de luz no tempo perder!")
    yoda.vai = falayodasegundo.vai

    yodaterceiro = yoda
    yodaterceiro.entra(casa)
    tarzan = Elemento(img=TARZAN, tit="Tarzan", style=dict(left=400, top=50, width=200, height="200px"))
    tarzan.entra(casa)
    
    falatarzan = Texto(casa, "Hoje vou ver a Jane na Tela quente!")
    tarzan.vai = falatarzan.vai
    falayodaterceiro = Texto(casa, "Mim filme, hoje verei :)")
    yoda.vai=falayodaterceiro.vai
    cidade.vai()
示例#3
0
文件: main.py 项目: kwarwp/ida
def criarcenas():
    floresta = Cena(img=FLORESTA)
    cidade = Cena(img=CIDADE)
    cidade2 = Cena(img=CIDADE)

    floresta.direita = cidade
    cidade.esquerda = floresta
    cidade.direita = cidade2
    cidade2.esquerda = cidade

    homem_aranha = Elemento(img=HOMEM_ARANHA,
                            tit="homem Aranha",
                            style=dict(left=150, top=150))
    homem_aranha.entra(floresta)
    falahomem_aranha = Texto(
        floresta,
        "Nossa! que isso? Estou numa floresta... como vim parar aqui?")
    homem_aranha.vai = falahomem_aranha.vai

    tarzan = Elemento(img=TARZAN, tit="tarzan", style=dict(left=150, top=150))
    tarzan.entra(cidade)
    falatarzan = Texto(
        cidade,
        "Poxa o homem-aranha disse que iria logo ali rapinho e estou aqui trancado no apartamento dele mais de 5h!"
    )
    tarzan.vai = falatarzan.vai

    barbie = Elemento(img=BARBIE, tit="barbie", style=dict(left=150, top=150))
    barbie.entra(cidade2)
    falabarbie = Texto(cidade2,
                       "Oi, homem-aranha!!! poderia ir numa festa comigo?")
    barbie.vai = falabarbie.vai

    floresta.vai()
示例#4
0
文件: main.py 项目: kwarwp/dame
def oi():
    jogo = Cena(img=CAMPO)
    terra = Cena(img=PLANETA)
    jogo.esquerda = PLANETA
    terra.direita = PLANETA
    tony = Elemento(img=HOMEM_DE_FERRO,
                    tit="TONY STARK",
                    style=dict(left=150, top=160, width=60, height=200))
    tony.entra(paisagem)
    falatony = Texto(paisagem, "Eu sou o homem de ferro")
    tony = falatony.vai
    jogo.vai()
    marte = Cena(img=PLANETA)
    verde = Cena(img=CAMPO)
    lazer = Cena(img=PRAIA)
    marte.esquerda = CAMPO
    lazer.direita = CAMPO
    marte.direita = PRAIA
    verde.esquerda = PRAIA
    steve = Elemento(img=CAPITAO_AMERICA,
                     tit="steve",
                     style=dict(left=150, top=160, width=60, height=200))
    steve.entra(marte)
    falastve = Texto(PLANETA, "Eu vim te salvar")
    steve = falasteve.vai
    marte.vai()
示例#5
0
def criarcenas():
    floresta = Cena(img=FLORESTA)
    mesa = Cena(img=MESA)
    casa = Cena(img=CASA)
    
    # passagem das páginas para o lado direito
    floresta.direita = mesa
    mesa.direita=casa
    
    # passagem das páginas o lado esquerdo. Voltando as páginas da história
    mesa.esquerda = floresta
    casa.esquerda = mesa
    
    # cria personagens
    tarzan=Elemento(img=TARZAN, tit="Tarzan" , style=dict(left=100, top=200, width=120, height="80px"))
    tarzan2 = Elemento(img=TARZAN, tit="Tarzan", style=dict(left=300, top=200, width=120, height="80px"))
    alice = Elemento(img=ALICE, tit="Alice", style=dict(left=600, top=200, width=160, height="80px"))
    
    # mensagens dos personagens
    falatarzan = Texto(floresta, "Que fome !!!")
    tarzan.vai=falatarzan.vai
    
    falaalice=Texto(mesa,"Você aceita um chá? ")
    alice.vai=falaalice.vai
    
    tarzan.entra(floresta)
    tarzan2.entra(mesa)
    alice.entra(mesa)
    
    floresta.vai()
示例#6
0
 def __init__(self):
     self.casa = casa = Cena(img=CASA)
     self.zezinho = Elemento(
         img=ZEZINHO,
         tit="bOA TARDE, SOU ZEZINHO E VIM PARA A ENTREVISTA",
         style=dict(
             left=200,
             top=350,
             width=200,
             height="200px",
         ))
     self.rosalinda = Elemento(
         img=ROSALINDA,
         tit="OLÁ, SOU ROSALINDA,vAMOS COMEÇAR A ENTREVISTA?",
         style=dict(
             left=400,
             top=350,
             width=300,
             height="200px",
         ))
     self.zezinho.entra(casa)
     self.rosalinda.entra(casa)
     self.quadros = quadros = Cena(img=QUADROS)
     # casa.direita=quadros
     casa.direita = Cena()
     casa.direita.vai = self.quadros_vai
     tour = Cena(img=TOUR)
     tour.esquerda = quadros
     quadros.direita = tour
     # quadros.esquerda=casa
     quadros.esquerda = Cena()
     quadros.esquerda.vai = self.casa_vai
     quadros1 = Cena(img=QUADROS1)
     tour.direita = quadros1
     cofre = Cena(
         img=COFRE)  # ESSE COFRE PRECISA TER UM HEREDPGRAMA PARA ABRIR
     cofre.esquerda = quadros
     heredo = Elemento(HEREDOGRAMA,
                       x=540,
                       y=370,
                       w=200,
                       tit="Esse heredograma é a pista!")
     heredo.entra(cofre)
     o_quadro = Elemento(QUADRADO,
                         x=340,
                         y=270,
                         tit="Esse quadro tem algo diferente",
                         style={"opacity": 0.05})
     o_quadro.vai = cofre.vai
     o_quadro.entra(quadros)
     pergaminho = Cena(img=PERGAMINHO)
     quadros1.direita = pergaminho
     pergaminho.esquerda = quadros
     biblioteca = Cena(img=BIBLIOTECA)
     pergaminho.direita = biblioteca
     livro = Elemento(img=LIVRO)
     livro.entra(biblioteca)
     casa.vai()
示例#7
0
文件: main.py 项目: kwarwp/sarah
def game():
    pantano = Cena(img=PANTANO)
    cidade = Cena(img=CIDADE)
    casa = Cena(img=CASA)
    castelo = Cena(img=CASTELO)

    pantano.direita = cidade
    cidade.direita = casa
    casa.direita = castelo

    #volta ao inicio
    castelo.direita = pantano

    castelo.esquerda = casa
    casa.esquerda = cidade
    cidade.esquerda = pantano

    yoda = Elemento(img=YODA,
                    tit="DJ Yoda",
                    style=dict(left=300, top=100, width=150, height="100px"))
    yoda.entra(pantano)
    NOME = input("Qual é o seu nome?")

    falayoda = Texto(
        pantano, "Olá,  " + NOME + " quer ir ao baile?"
    )  #"Sexta-feira... Vou chamar o Homem Aranha pra dar um rolé!")
    yoda.vai = falayoda.vai

    homemaranha = Elemento(img=HOMEMARANHA,
                           tit="Homem Aranha Boyzão",
                           style=dict(left=200,
                                      top=100,
                                      width=150,
                                      height="100px"))
    homemaranha.entra(cidade)
    falaaranha = Texto(
        cidade, "Ih, caraca, " + NOME + "! É nóis! Vou levar a Barbie também!")
    homemaranha.vai = falaaranha.vai

    barbie = Elemento(img=BARBIE,
                      tit="Barbie Boladona",
                      style=dict(left=400,
                                 bottom=100,
                                 width=100,
                                 height="100px"))
    barbie.entra(casa)
    falabarbie = Texto(casa,
                       "Mozão me ligou, aonde será que ele vai me levar?")
    barbie.vai = falabarbie.vai

    galera = Elemento(img=GALERA,
                      tit="Galera do baile",
                      style=dict(left=250, top=50, width=300, height="100px"))
    galera.entra(castelo)
    falagalera = Texto(castelo, "Esse é o baile dos PIEs")
    galera.vai = falagalera.vai

    pantano.vai()
示例#8
0
 def inicia(self):
     templo = Cena(TEMPLO)
     tesouro = Cena(TESOURO)
     templo.direita = tesouro
     tesouro.esquerda = templo
     mumia = Cena(PERIGOS["MUMIA"])
     tesouro.direita = mumia
     mumia.esquerda = tesouro
     templo.vai()
示例#9
0
def game():
    casa_floresta = Cena(img=CASA_FLORESTA)
    cha_de_desaniversario = Cena(img=CHA_DE_DESANIVERSARIO)
    castelo = Cena(img=CASTELO)
    casa_floresta.direita = cha_de_desaniversario
    cha_de_desaniversario.direita = castelo
    castelo.esquerda = cha_de_desaniversario
    cha_de_desaniversario.esquerda = casa_floresta

    casa_floresta.vai()
示例#10
0
文件: main.py 项目: kwarwp/sarah
def game():
    cha = Cena(img=CHA)
    yoda_acorda = Cena(img=YODA_ACORDA)
    pantano = Cena(img=PANTANO)
    tarzan_fogo = Cena(img=TARZAN_FOGO)
    cha.direita = yoda_acorda
    yoda_acorda.direita = tarzan_fogo
    tarzan_fogo.esquerda = yoda_acorda
    yoda_acorda.esquerda = cha

    game()
示例#11
0
def criarcenas():
    floresta = Cena(img=FLORESTA)
    cidade = Cena(img=CIDADE)
    cidade2 = Cena(img=CIDADE)
    cidade3 = Cena(img=CIDADE)
    apartamento = Cena(img=APARTAMENTO)

    floresta.direita = apartamento
    apartamento.esquerda = floresta
    apartamento.direita = cidade
    cidade.esquerda = apartamento
    cidade.direita = cidade2
    cidade2.esquerda = cidade
    cidade2.direita = cidade3
    cidade3.esquerda = cidade2

    homem_aranha = Elemento(img=HOMEM_ARANHA,
                            tit="homem_aranha",
                            style=dict(left=150, top=150))
    homem_aranha.entra(floresta)
    falahomem_aranha = Texto(
        floresta, "Eu sabia que não devia ter bebido outra taça de vinho")
    homem_aranha.vai = falahomem_aranha.vai

    tarzan = Elemento(img=TARZAN, tit="tarzan", style=dict(left=150, top=150))
    tarzan.entra(apartamento)
    falatarzan = Texto(
        apartamento,
        "É minha primeira festa na cidade e acordo no apartamento de um desconhecido!"
    )
    tarzan.vai = falatarzan.vai

    homem_aranha = Elemento(img=HOMEM_ARANHA,
                            tit="homem_aranha",
                            style=dict(left=150, top=150))
    homem_aranha.entra(cidade)
    falahomem_aranha = Texto(
        cidade, "Ainda bem que havia um tunel da floresta para a cidade")
    homem_aranha.vai = falahomem_aranha.vai

    homem_aranha = Elemento(img=HOMEM_ARANHA,
                            tit="homem_aranha",
                            style=dict(left=150, top=150))
    homem_aranha.entra(cidade2)
    falahomem_aranha = Texto(cidade2, "Nossa! Que boneca!")
    homem_aranha.vai = falahomem_aranha.vai

    barbie = Elemento(img=BARBIE, tit="barbie", style=dict(left=150, top=150))
    barbie.entra(cidade3)
    falabarbie = Texto(cidade3, "Sai fora aracnedeo, eca!")
    barbie.vai = falabarbie.vai

    floresta.vai()
示例#12
0
文件: main.py 项目: kwarwp/sarah
def game():
    floresta = Cena(img=FLORESTA)
    floresta2 = Cena(img=FLORESTA)
    castelo = Cena(img=CASTELO)
    floresta3 = Cena(img=FLORESTA)
    cidade = Cena(img=CIDADE)
    pantano = Cena(img=PANTANO)
    floresta.direita = floresta2
    floresta2.direita = castelo
    castelo.direita = floresta3
    floresta3.direita = cidade
    cidade.direita = pantano
    pantano.esquerda = cidade
    cidade.esquerda = floresta3
    floresta3.esquerda = castelo
    castelo.esquerda = floresta2
    floresta2.esquerda = floresta

    barbie = Elemento(img=BARBIE,
                      tit="Barbie",
                      style=dict(left=300, top=200, width=100, height="200px"))
    barbie.entra(floresta)

    falabarbie = Texto(floresta, "quero encontrar o Homem Aranha")
    barbie.vai = falabarbie.vai

    cinderela = Elemento(img=CINDERELA,
                         tit="Cinderela",
                         style=dict(left=300,
                                    top=200,
                                    width=100,
                                    height="200px"))
    cinderela.entra(floresta2)

    falacinderela = Texto(floresta2, "não sei onde está o Homem Aranha")
    cinderela.vai = falacinderela.vai

    floresta.vai()

    homemaranha = Elemento(img=HOMEMARANHA,
                           tit="Homemaranha",
                           style=dict(left=400,
                                      top=50,
                                      width=100,
                                      height="200px"))
    homemaranha.entra(castelo)

    falahomemaranha = Texto(castelo, "onde estão essas mulheres?")
    homemaranha.vai = falahomemaranha.vai

    Musica("http://audiosoundclips.com/wp-content/uploads/2012/01/Bird.mp3")
    floresta.vai
示例#13
0
def game():
    tarzan = Cena(img=TARZAN)
    tarzan_casa = Elemento(img=TARZAN,style=dict(top=220, left=420, width="120px", height="120px"))
    tarzan_encontro = Elemento(img=TARZAN_ENCONTRO,style=dict(top=230, left=470, width="62px", height="128px"))
    casa = Cena(img=CASA)
    homemaranha = Cena(img=HOMEMARANHA)
    homemaranha_castelo = Elemento(img=HOMEMARANHA,style=dict(top=192, left=315, width="90px", height="90px"))
    homemaranha_susto_castelo = Elemento(img=HOMEMARANHA_SUSTO,style=dict(top=145, left=400, width="211px", height="180px"))
    castelo = Cena(img=CASTELO)
    castelo_interior = Cena(img=CASTELO_INTERIOR)
    cinderela = Cena(img=CINDERELA)
    cinderela_susto_castelo = Elemento(img=CINDERELA_SUSTO,style=dict(top=100, left=150, width="153px", height="275px"))
    cinderela_correndo = Elemento(img=CINDERELA,style=dict(top=160, left=180, width="386px", height="424px"))
    cinderela_encontro = Elemento(img=CINDERELA_ENCONTRO,style=dict(top=240, left=350, width="100px", height="123px"))
    pantano = Cena(img=PANTANO)
    casa_2 = Cena(img=CASA_2)
    
    tarzan_casa.entra(casa)
    casa.direita = castelo
    homemaranha.direita = castelo
    homemaranha_castelo.entra(castelo)
    castelo.direita = castelo_interior
    castelo.esquerda = casa
    homemaranha_susto_castelo.entra(castelo_interior)
    cinderela_susto_castelo.entra(castelo_interior)
    castelo_interior.direita = pantano
    castelo_interior.esquerda = castelo
    cinderela_correndo.entra(pantano)
    pantano.direita = casa_2
    pantano.esquerda = castelo_interior
    cinderela_encontro.entra(casa_2)
    tarzan_encontro.entra(casa_2)
    
    fala_tarzan = Texto(casa, "Algo estranho na selva... Preciso investigar!!!")
    tarzan_casa.vai = fala_tarzan.vai
    
    susto_cinderela = Texto(castelo_interior, "Ai, meu Deus!!! Quem é você???")
    cinderela_susto_castelo.vai = susto_cinderela.vai
    
    fuga_cinderela = Texto(pantano, "Preciso me esconder... Já sei! Na casa do pântano!!!")
    cinderela_correndo.vai = fuga_cinderela.vai
    
    encontro_cinderela = Texto(casa_2, "Ohhh... Tarzan!!??")
    cinderela_encontro.vai = encontro_cinderela.vai
    
    fala_aranha = Texto(castelo, "Cadê o Venom???")
    homemaranha_castelo.vai = fala_aranha.vai
    
    casa.vai()
示例#14
0
def criarsalag():
    b_norte = Cena(img=B_NORTE)
    b_sul = Cena(img=B_SUL)
    b_leste = Cena(img=B_LESTE)
    b_oeste = Cena(img=B_OESTE)

    b_norte.direita = b_leste
    b_norte.esquerda = b_oeste
    b_leste.esquerda = b_norte
    b_leste.direita = b_sul
    b_oeste.direita = b_norte
    b_oeste.esquerda = b_sul
    b_sul.direita = b_oeste
    b_sul.esquerda = b_leste
    b_norte.vai()
示例#15
0
文件: main.py 项目: kwarwp/ida
def criarcenas():
    pantano = Cena(img=PANTANO)
    avenida = Cena(img=AVENIDA)
    pantano.direita = avenida
    avenida.esquerda = pantano

    alice = Elemento(img=ALICE,
                     tit="Alice",
                     style=dict(left=150, top=150, width=60, height=200))
    alice.entra(pantano)
    falaalice = Texto(
        pantano,
        " Em uma noite enluarada, Dona ALICE saiu para dar uma volta. Porém, durante o passeio, se perdeu no caminho e não enxergava nada a sua frente além de um pantamo assutador.Pensando em como sair daquela enrrascada, a pequena Alice não teve outra opção do que rezar, quando de repente..."
    )
    alice.vai = falaalice.vai

    tarzan = Elemento(img=TARZAN,
                      tit="Tarzan",
                      style=dict(left=150, top=150, width=60, height=200))
    tarzan.entra(pantano)
    falatarzan = Texto(
        pantano,
        "-Oooo oooo  ooooo ooooo!!!!- Eis que surge o Tarzan, que indignou-se pela hora que a menina andava pela rua. -Que cê tá fazendo aqui? Tá tarde!"
    )
    tarzan.vai = falatarzan.vai
    pantano.vai()
示例#16
0
def game():
    mesa_de_cha = Cena(img=MESA_DE_CHA)
    floresta = Cena(img=FLORESTA)
    cidade = Cena(img=CIDADE)
    casinha = Cena(img=CASINHA)
    mesa_de_cha.direita = floresta
    floresta.direita = cidade
    cidade.direita = casinha
    casinha.esquerda = cidade
    cidade.esquerda = floresta
    floresta.esquerda = mesa_de_cha

    tarzan = Elemento(img=TARZAN,
                      tit="Tarzan",
                      style=dict(left=15, top=180, width=100, height="200px"))
    tarzan.entra(mesa_de_cha)
    mesa_de_cha.vai()
示例#17
0
def criarcenas():
    cha =Cena(img=CHA)
    floresta =Cena(img=FLORESTA)
    casa =Cena(img=CASA)
    castelo =Cena(img=CASTELO)
    cha.direita =floresta
    floresta.direita =casa
    casa.direita =castelo
    casa.esquerda =floresta
    floresta.esquerda =cha

    cinderela =Elemento(img= CINDERELA, tit="Cinderela", style=dict(left=150, top=150, width=60,height=200)) 
    cinderela.entra(cha)
    
    alicee =Elemento(img= ALICEE, tit="Alice", style=dict(left=200, top=150, width=60,height=200))
    alicee.entra(cha)
    
    tarzan =Elemento(img= TARZAN, tit="Tarzan", style=dict(left=80, top=150, width=60,height=200))
    tarzan.entra(cha)
    ealicee = Texto(cha, ".")
    alicee.vai=ealicee.vai
    
    ecinderela = Texto(cha, " boa tarde!")
    cinderela.vai=ecinderela.vai
    
    etarzan = Texto(cha, " Ola!")
    tarzan.vai=etarzan.vai
    
    alice =Elemento(img= ALICE, tit="Alice", style=dict(left=200, top=150, width=60,height=200))
    alice.entra(floresta)
    ealice = Texto(floresta, " vamos para casa!")
    alice.vai=ealice.vai
    
    homem_aranha =Elemento(img= HOMEM_ARANHA, tit="homem_aranha", style=dict(left=150, top=150, width=60,height=200))
    homem_aranha.entra(casa)
    ehomem_aranha = Texto(casa, " me acordaram!")
    homem_aranha.vai=ehomem_aranha.vai
    
    alice =Elemento(img= ALICE, tit="Alice", style=dict(left=150, top=150, width=60,height=200))
    alice.entra(casa)
    ealice = Texto(casa, " vamos conhecer o castelo?")
    alice.vai=ealice.vai
    
    casa.vai()
示例#18
0
文件: main.py 项目: kwarwp/margaret
 def inicia(self):
     templo = Cena(TEMPLO)
     tesouro = Cena(TESOURO)
     templo.direita = tesouro
     tesouro.esquerda = templo
     obstaculos = Cartas()
     umobstaculo = obstaculos.primeira_carta()
     tesouro.direita = umobstaculo
     umobstaculo.esquerda = tesouro
     templo.vai()
示例#19
0
 def inicia(self):
     templo = Cena(TEMPLO)
     tesouro = Cena(TESOURO)
     templo.direita = tesouro
     tesouro.esquerda = templo
     perigos = Cartas()
     umperigo = perigos.primeira_carta()
     tesouro.direita = umperigo
     umperigo.esquerda = tesouro
     templo.vai()
示例#20
0
文件: main.py 项目: kwarwp/ida
def criarcenas():
    floresta = Cena(img=FLORESTA)
    mesa = Cena(img=MESA)
    pantano = Cena(img=PANTANO)
    castelo = Cena(img=CASTELO)
    floresta.direita = mesa
    mesa.direita = pantano
    pantano.direita = castelo
    castelo.esquerda = pantano
    pantano.esquerda = mesa
    mesa.esquerda = floresta

    tarzan = Elemento(img=TARZAN1, tit="Tarzan", style=dict(left=150, top=150))
    tarzan.entra(floresta)
    tarzan.vai
    homem_aranha = Elemento(img=HOMEM_ARANHA,
                            tit="Homem_Aranha",
                            style=dict(left=150, top=150, width=60,
                                       heigth=200))
    homem_aranha.entra(mesa)
    barbie = Elemento(img=BARBIE1,
                      tit="Barbie",
                      style=dict(left=150, top=150, width=60, heigth=200))
    barbie.entra(pantano)
    falabarbie = Texto(pantano, "Socorro!Socorro!Estou na areia movediça!!")
    barbie.vai = falabarbie.vai
    tarzan = Elemento(img=TARZAN2,
                      tit="Tarzan",
                      style=dict(left=100, top=100, width=190, height=100))
    tarzan.entra(castelo)
    tarzan.vai
    barbie = Elemento(img=BARBIE2,
                      tit="Barbie",
                      style=dict(left=150, top=150, width=60, heigth=200))
    barbie.entra(castelo)
    falabarbie = Texto(castelo, "Vamos para uma refeição!!")
    barbie.vai = falabarbie.vai

    def andatarzan(evento):
        tarzan.elt.style.left = 50

    floresta.vai()
示例#21
0
def game():
    castelo = Cena(img=CASTELO)
    floresta = Cena(img=FLORESTA)
    cidade = Cena(img=CIDADE)
    castelo.direita = floresta
    floresta.direita = cidade
    cidade.esquerda = floresta
    floresta.esquerda = castelo

    barbie = Elemento(img=BARBIE,
                      tit="Barbie",
                      style=dict(left=150, top=250, width=50, height="200px"))
    barbie.entra(castelo)

    falabarbie = Texto(castelo, "meu castelo é lindo")
    barbie.vai = falabarbie.vai

    Musica("http://audiosoundclips.com/wp-content/uploads/2012/01/Bird.mp3")

    castelo.vai()
示例#22
0
文件: main.py 项目: kwarwp/dame
def oi():
    galaxia = Cena(img=ESPACO)
    paris = Cena(img=CIDADE)
    galaxia.esquerda = paris
    paris.direita = galaxia
    danvers = Elemento(img=CAPITA_MARVEL,
                       tit="CAROL DANVERS",
                       style=dict(left=10, top=40, widht=40, height=10))
    danvers.entra(galaxia)
    faladanvers = Texto(galaxia, "Eu sou a Capita Marvel")
    faladanvers.vai()
    galaxia.vai()
示例#23
0
文件: main.py 项目: kwarwp/evelyn
def criarcenas():
    castelo = Cena(img=CASTELO)
    casinha = Cena(img=CASINHA)
    pantano = Cena(img=PANTANO)
    castelo.direita = casinha
    casinha.direita = pantano
    casinha.esquerda = castelo
    pantano.esquerda = casinha

    tarzan = Elemento(img=TARZAN,
                      tit="Tarzan",
                      style=dict(left="400px",
                                 top="325px",
                                 width="300px",
                                 height="300px"))
    tarzan.entra(castelo)
    etarzan = Texto(castelo, "Eu sou o tarzan!")
    tarzan.vai = etarzan.vai

    cinderela = Elemento(img=CINDERELA,
                         tit="Cinderela",
                         style=dict(left="800px",
                                    top="225px",
                                    width="300px",
                                    height="400px"))
    cinderela.entra(casinha)
    ecinderela = Texto(casinha, "Bom dia!")
    cinderela.vai = ecinderela.vai

    alice = Elemento(img=ALICE,
                     tit="Tarzan",
                     style=dict(left="800px",
                                top="320px",
                                width="300px",
                                height="300px"))
    alice.entra(pantano)
    ealice = Texto(pantano, "Eu sou o tarzan!")
    alice.vai = ealice.vai

    castelo.vai()
示例#24
0
文件: main.py 项目: kwarwp/sarah
def game():
    mesa_de_cha = Cena(img=MESA_DE_CHA)
    floresta = Cena(img=FLORESTA)
    cidade = Cena(img=CIDADE)
    casinha = Cena(img=CASINHA)
    mesa_de_cha.direita = floresta
    floresta.direita = cidade
    cidade.direita = casinha
    casinha.esquerda = cidade
    cidade.esquerda = floresta
    floresta.esquerda = mesa_de_cha

    tarzan = Elemento(img=TARZAN,
                      tit="Tarzan",
                      style=dict(left=15, top=180, width=100, height="200px"))
    tarzan.entra(mesa_de_cha)
    tarzanfala = Texto(mesa_de_cha, "Oi, vamos tomar chá juntos?")
    tarzan.vai = tarzanfala.vai

    alice = Elemento(img=ALICE,
                     tit="Alice",
                     style=dict(left=600, top=400, width=50, height="100px"))
    alice.entra(cidade)
    alicefala = Texto(
        cidade,
        "Claro que sim. Estou indo! Vou convidar o Homem aranha pra ir comigo")
    alice.vai = alicefala.vai

    homem_aranha = Elemento(img=HOMEM_ARANHA,
                            tit="Homem_aranha",
                            style=dict(left=600,
                                       top=180,
                                       width=100,
                                       height="200px"))
    homem_aranha.entra(casinha)
    homem_aranhafala = Texto(
        casinha, "Será um prazer acompanhar vcs nesse chá delícia!")
    homem_aranha.vai = homem_aranhafala.vai

    mesa_de_cha.vai()
示例#25
0
文件: main.py 项目: kwarwp/ida
def criarcenas():
    guloseimas =Cena(img=GULOSEIMAS)
    pantano =Cena(img=PANTANO)
    castelo =Cena(img=CASTELO)
    floresta =Cena(img=FLORESTA)
    floresta.direita = guloseimas
    guloseimas.esquerda= floresta
    floresta.direita = guloseimas
    guloseimas.direita= pantano
    pantano.esquerda= guloseimas
    guloseimas.direita= pantano
    pantano.direita= castelo
    

    
    tarzan1 =Elemento(img= TARZAN1, tit="Tarzan1", style=dict(left=150, top=150, width=60, height=200))
    tarzan2 =Elemento(img= TARZAN2, tit="Tarzan2", style=dict(left=150, top=150, width=60, height=200))
    tarzan3 =Elemento(img= TARZAN3, tit="Tarzan3", style=dict(left=150, top=150, width=60, height=200))
    aranha =Elemento(img= ARANHA, tit="Aranha", style=dict(left=50, top=140, width=55, height=190))
    barbie1 =Elemento(img= BARBIE1, tit="Barbie1", style=dict(left=135, top=135, width=40, height=180))
    
    tarzan1.entra (floresta)
    tarzan2.entra (guloseimas)
    aranha.entra (guloseimas)
    etarzan1 = Texto (guloseimas, "Olha, o Homem Aranha")
    tarzan1.vai=etarzan1.vai
    earanha = Texto (guloseimas, "Sim, sou eu mesmo!")
    aranha.vai=earanha.vai
    barbie1.entra (pantano)
    ebarbie1 = Texto (pantano, "Socorro, alguém me ajude")
    barbie1.vai=ebarbie1.vai
    tarzan3.entra (pantano)
    
    
    
    
    floresta.vai()
示例#26
0
文件: main.py 项目: kwarwp/grete
def trigonometria():
    n_trig = Cena(trig_n)
    e_trig = Cena(trig_e, esquerda=n_trig)
    s_trig = Cena(trig_s, esquerda=e_trig)
    o_trig = Cena(trig_o, esquerda=s_trig, direita=n_trig)
    n_trig.esquerda, n_trig.direita = o_trig, e_trig
    s_trig.direita, e_trig.direita = o_trig, s_trig
    chistyle = dict(left = 610, top = 90, width = 80, maxHeight = "80px")
    #chistyle.update({"max-height" = 200})
    vdgball = Elemento(ball,tit = "earth globe",
    style=chistyle)
    txtchildren = Texto(n_trig,"please, help me")
    vdgball.entra(e_trig)
    vdgball.vai = txtchildren.vai
    e_trig.vai()
示例#27
0
文件: main.py 项目: kwarwp/eva
 def __init__(self):
     cidade = Cena(CIDADE)
     outra = Cena(OUTRA)
     cidade.direita = outra
     outra.esquerda = cidade
     #texto.vai()
     #cidade.vai()
     sala = Sala(CIDADE, OUTRA, EOUTRA, MSOUTRA)
     cara = Elemento(CARA,
                     cena=sala.norte,
                     style=dict(width=40, height="40px", left=100, top=100))
     cara.vai = self.vai_cara
     self.texto = Texto(sala.norte, "olá mundo")
     self.texto.foi = self.foi_texto
     self.texto_foi = Texto(sala.norte, "Tudo bem?")
     sala.norte.vai()
示例#28
0
文件: main.py 项目: kwarwp/adele
def Historia():
    cenaPraia = Cena(PRAIA)
    elementoEstrela = Elemento(img=ESTRELA,
                               tit="Estrela do mar",
                               style=dict(left=12, width=60, height=48))
    elementoConcha = Elemento(img=CONCHA,
                              tit="Concha",
                              style=dict(left=65,
                                         top=210,
                                         bottom=50,
                                         width=35,
                                         height=10))
    elementoEstrela.entra(cenaPraia)
    elementoConcha.entra(cenaPraia)
    cenaMar = Cena(MAR, direita=cenaPraia)
    cenaPraia.esquerda = cenaMar
    cenaPraia.vai()
示例#29
0
def teorias():
    inicio = Cena(img=NEWTON)
    inicio_t = Texto(inicio, "A gravidade da situação está em tornar tudo um material de consumo")
    iluminatti = Texto (inicio, "Ahhh mas disso você já sabia!")
    inicio_e = Elemento (img = MACA, tit="Gravidade", style = dict(left= 70,top=170, width=50, height=200,bottom=100))
    #personagem = Elemento (img = linkpersonagem, tit="garotinho", style = dict(left= 150, top=100, width=60, height=200))
    lado1 = Cena(img=GALILEU, direita =inicio)
    lado1_e = Elemento(img=ILUMINATTI, tit='O universo não gira em torno de você não,bb', style = dict(left= 150, top=240, width=40, height=200, bottom=100))
    iluminatti = Texto (inicio, "Ahhh mas disso você já sabia!")
    
    inicio_e.entra(inicio)
    inicio_e.vai = inicio_t.vai
    #inicio.vai = inicio_tt.vai
    inicio.esquerda = lado1
    lado1_e.vai = iluminatti.vai
    lado1_e.entra(lado1)
    
    inicio.vai()
示例#30
0
def juntarimagem():
    verde = Cena(img=FLORESTA)
    agua = Cena(img=RIO)
    verde.direita = agua
    agua.esquerda = verde
    morcego = Elemento(img=BATMAN,
                       tit="BATMAN",
                       style=dict(left=150, top=160, width=60, height=200))
    morcego.entra(verde)
    falamorcego = Texto(verde, "eu vou te pegar pinguim")
    falamorcego.vai()
    feio = Elemento(img=PINGUIM,
                    tit="PINGUIM",
                    style=dict(left=150, top=160, width=60, height=200))
    feio.entra(agua)
    falafeio = Texto(agua, "impossivel")
    falafeio.vai()
    verde.vai()
    agua.vai()