Este um post com a arte de um "Puzzle" pra arrombar o cofre.
terça-feira, 15 de junho de 2010
segunda-feira, 14 de junho de 2010
Considerações Finais - Yubel
Aqui deixo minhas últimas palavras em relação ao projeto desenvolvido por este grupo.
Muitas foram as desventuras pelas quais passamos, ora falta de cooperação, ora falta de conhecimento necessário para que as partes do produto fossem feitas nos devidos prazos previamente determinados.
Para quem possa interessar este blog, lhes desejo um bom aproveitamento do pouco de informações que aqui este grupo de estudantes conseguiu reunir. Aos demais, uma boa leitura.
Novamente, em caso de qualquer necessidade, podem me contatar em: faquinisnr@hotmail.com.
Muitas foram as desventuras pelas quais passamos, ora falta de cooperação, ora falta de conhecimento necessário para que as partes do produto fossem feitas nos devidos prazos previamente determinados.
Para quem possa interessar este blog, lhes desejo um bom aproveitamento do pouco de informações que aqui este grupo de estudantes conseguiu reunir. Aos demais, uma boa leitura.
Novamente, em caso de qualquer necessidade, podem me contatar em: faquinisnr@hotmail.com.
O Artigo
Abaixo se encontra o Artigo entregue à banca.
Artigo do desenvolvimento do jogo “Jimmy Valentine”
“Jimmy Valentine” game development article
São Paulo Universidade Anhembi Morumbi Curso: Design de Games
Período Letivo: 1º Semestre de 2010 Semestre: 3º Turma: DES-GA-NA3
Alunos: Contato:
Danilo Dellape Gonçalves R.A.: 07272856 acciel.wings@gmail.com
Eduardo Masteguim Lemos R.A.: 09101593 eddybtu@hotmail.com
Fábio Picolo Crivelaro R.A.: 08102624 fabio.pcrivelaro@gmail.com
Filipe Figueiredo R.A.: 09103462 filipesilva444@hotmail.com
Rafael Faquini R.A.: 09102995 faquinisnr@hotmail.com
Resumo
Por meio de discussões e tentativas para unir uma forma de programação e arte visual de acordo com o tema extraído em sua íntegra de um conto, foram incorporados elementos que poderiam se adequar ao mesmo tempo para as duas mídias por meio de adaptação dos mesmos. Estabelecendo assim relações diretas entre um e outro, transmitindo o teor da narrativa explorada, transitando da mídia bibliográfica para a digital, em forma de um objeto interativo, jogo. O objetivo essencial do projeto é o de confeccionar um produto de lazer visado para indivíduos que joguem casualmente. O resultado obtido foi uma peça que possui os mínimos requisitos para ser divulgada ao público em questão, de forma compreensível e clara.
Palavras-Chaves: Adaptação. Jogo. Objetivo. Resultado. Transição de Mídia.
Abstract
By arguments and attempts to unite a way of programming and visual art related to the theme extracted as a whole from a tale, elements which could be adequate to both media by adaption were incorporated. Establishing direct relations with one another, consecutively transmitting the essence of the explored story, transiting from the bibliographical media to the digital one, in the form of an interactive object, game. The essential objective of this project is of making a leisure product aimed to those who play casually. The result reached was a piece of art that possesses the minimum requirements to be revealed to the public mentioned, in a comprehensive and clear way.
Keywords: Adaptation. Game. Objective. Result. Media Transition.
Introdução
Este documento tem por finalidade discutir e abordar os aspectos que levaram à confecção do jogo “Jimmy Valentine”, constando a abordagem dada a cada aspecto desenvolvido no mesmo. Estão relacionados os itens de maior importância para a realização do projeto. Também abordando os resultados das experiências ao desenvolver tal produto. Sem deixar de explicar quais as referências utilizadas para que o projeto fosse possível. Sendo os itens abordados em seções e subseções organizadas no Sumário.
Sumário
1. Conceitos Iniciais 3
1.1 Conceitos Básicos 3
1.2 Conceitos Elaborados 3
2. Mudanças Necessárias 4
2.1 Transcriação 4
2.2 Mecânica e Funcionamento 5
3. Interface e Jogabilidade 5
3.1 Apresentação ao Usuário 5
3.2 Animações 5
3.3 Motivação ao Jogador 6
4. Estética e Sonorização 7
4.1 Arte Digital 7
4.2 Áudio e Trilha Sonora 7
1. Conceitos Iniciais
1.1 Conceitos Básicos
Inicialmente nos foi proposto fazer um jogo a partir de uma seleção específica de contos. Optamos pelo conto O Arrombador Aposentado, O.Henry. Feito isso, pesquisamos as situações em que o conto escolhido se encontrava, tanto quanto à história retratada nele quanto na própria vida do autor do mesmo. Em seguida começamos a desenvolver idéias de como o jogo e seus elementos se comportariam.
1.2 Conceitos Elaborados
Decidido o rumo do que seria feito para o jogo, foram então elaborados os aspectos específicos de cada peça, de forma que houvesse unidade visual, uma condizendo com a outra. Para tanto foram exploradas características que diferenciassem os personagens e ambientes, tanto entre si quanto um com o outro, mas ainda assim não fugissem à proposta de representar à época do contexto bibliográfico original. A história se passaria previamente ao conto lido, apresentando uma possível versão da história do protagonista, Jimmy Valentine, e seu perseguidor, o detetive Ben Price.
Figura 1 – Screenshot de parte do jogo Jimmy Valentine.
2. Mudanças Necessárias
2.1 Transcriação
Devido à mudança extrema de mídia de comunicação entre a fonte atual, um conto, uma fonte bibliográfica, e um jogo, uma fonte digital de informações, as adaptações necessárias para a integração e implementação de elementos físicos, visuais e mecânicos ao jogo foi meticulosa a ponto de considerar como os elementos reais poderiam se parecer. Consecutivamente nos possibilitando realizar tais mudanças de forma que os elementos fossem unidos no contexto. Exploramos as possibilidades diversas para uma adequação efetiva de ambiente e personagens, na qual decidimos por um projeto de visual simplificado e mais simbólico. “Design é um processo em que um designer cria um contexto a ser encontrado por um participante, no qual significado surge.” (SALEN; ZIMMERMAN, 2004, p.41).
2.2 Mecânica e Funcionamento
Seguindo o estilo do período abordado, decidimos por recriar um método de perseguição mais discreta, sem a utilização de veículos, uma vez que o criminoso no conto se prezava mais pelo trabalho bem feito do que pela fuga propriamente dita, preservando seu orgulho como o melhor no ofício. Também foi utilizada a mesma linha de raciocínio para os eventos de assalto presentes no jogo, representando como um ladrão da época faria, bem como a tecnologia utilizada por ele.
3. Interface e Jogabilidade
3.1 Apresentação ao Usuário
A interface tem por objetivo auxiliar o jogador, sendo que foi constatado o alto grau de dificuldade caso não houvesse o mínimo de parâmetros necessários para que o mesmo pudesse apoiar suas decisões durante o jogo. Dito isto, optamos por implementar uma ferramentas que facilita a interação entre homem e máquina, uma barra que representa a resistência enquanto realizando esforço para fugir dos seus perseguidores, Polícia e Detetive. “[...] Algo é interativo quando existe alguma espécie de relacionamento recíproco entre dois elementos em um sistema. [...]” (SALEN; ZIMMERMAN, 2004, p.58).
3.2 Animações
Animações foram criadas para as sequências nas quais o jogador não poderia interagir, mostrando parte da história que se passa por trás do jogo em algumas partes, e em outras dando continuidade e talvez até propósito ao objetivo do jogador, encorajando-o à fuga.
“[...] Personagens são agentes pelos quais histórias dramáticas são contadas, e eles também funcionam deste modo em jogos, provendo um modo para nós enfatizarmos a situação e vivermos de forma indireta pelos seus esforços. [...]” (FULLERTON L L., 2008, p.40).
3.3 Motivação ao Jogador
Os desafios propostos no jogo foram baseados na tecnologia disponível da época e baseados no conto original, fuga das autoridades e violação de cofres, sendo que a segunda espécie de desafio foi inspirada em modelos de depósitos existentes no período em que a narrativa se desenvolve. “[...] É um lugar no qual as emoções e o senso de desejo do jogador submetem-se a manipulação e impulso, provocação e sedução, frustração e recompensa. [...]” (SALEN; ZIMMERMAN, 2004, p.330).
Figura 2 – Visualização de cofre para o jogo Jimmy Valentine.
4. Estética e Sonorização
4.1 Arte Digital
O visual do jogo tenta refletir os padrões estéticos da época, ressaltando as características mais marcantes de cada item, seja quanto à vestimenta dos personagens, quanto na decoração de edifícios e objetos do mesmo período. O projeto não se preza por tentar se aproximar do realismo quanto aos elementos, este se dá como único pelas características escolhidas enquanto projetados os elementos a serem visualizados pelo jogador, levando o mesmo a uma dimensão que reinterpreta os conceitos de um período que já foi real, com o acréscimo de uma história ficcional, ainda que inspirada em fatos reais.
4.2 Áudio e Trilha Sonora
Os sons inseridos na peça têm participação na imersão desejada para o jogador, sendo que estes foram escolhidos de forma que o usuário sinta-se como parte do jogo, ambientando o cenário à época e tornando o jogo mais real para o usuário, sem que o mesmo represente como realmente era o período no qual a trama se desenvolve.
Conclusões, Considerações Finais e Agradecimentos
Em suma, podemos afirmar que qualquer projeto para a realização de um produto para a mídia digital requer planejamento e objetividade quando se tratando de algo divulgado ao público. Assim como a competência dos indivíduos envolvidos no projeto como um todo, mesmo que sejam especialistas em apenas uma das diversas áreas que envolvem a peça como um todo, manifestando suas idéias e contribuindo com o grupo afim de que se torne uma equipe e assim o produto final seja qualificado como aceitável e tenha possibilidades quanto ao quesito comércio. Devemos esta possibilidade de realizar tal projeto a cada professora ou professor que nos instruiu desde o início do curso vigente, pois por menor que pareça a lição ou aprendizado transmitido, este é sempre útil de uma forma ou outra, mesmo que os estudantes não o percebam como tal, sempre contribuindo para o projeto. Somente deste modo formando e desenvolvendo um produto adequado para uso de um público-alvo.
Bibliografia
HENRY, O. O Arrombador Aposentado, 1900.
SALEN, Katie; ZIMMERMAN, Eric. Rules of Play. Game Design Fundamentals. Massachusetts: The MIT Press, 2004.
FULLERTON, T. et al. Game Design Workshop. A Playcentric Approach to Creating Innovative Games. 2.ed. Morgan Kaufmann Publishers, 2008.
Artigo do desenvolvimento do jogo “Jimmy Valentine”
“Jimmy Valentine” game development article
São Paulo Universidade Anhembi Morumbi Curso: Design de Games
Período Letivo: 1º Semestre de 2010 Semestre: 3º Turma: DES-GA-NA3
Alunos: Contato:
Danilo Dellape Gonçalves R.A.: 07272856 acciel.wings@gmail.com
Eduardo Masteguim Lemos R.A.: 09101593 eddybtu@hotmail.com
Fábio Picolo Crivelaro R.A.: 08102624 fabio.pcrivelaro@gmail.com
Filipe Figueiredo R.A.: 09103462 filipesilva444@hotmail.com
Rafael Faquini R.A.: 09102995 faquinisnr@hotmail.com
Resumo
Por meio de discussões e tentativas para unir uma forma de programação e arte visual de acordo com o tema extraído em sua íntegra de um conto, foram incorporados elementos que poderiam se adequar ao mesmo tempo para as duas mídias por meio de adaptação dos mesmos. Estabelecendo assim relações diretas entre um e outro, transmitindo o teor da narrativa explorada, transitando da mídia bibliográfica para a digital, em forma de um objeto interativo, jogo. O objetivo essencial do projeto é o de confeccionar um produto de lazer visado para indivíduos que joguem casualmente. O resultado obtido foi uma peça que possui os mínimos requisitos para ser divulgada ao público em questão, de forma compreensível e clara.
Palavras-Chaves: Adaptação. Jogo. Objetivo. Resultado. Transição de Mídia.
Abstract
By arguments and attempts to unite a way of programming and visual art related to the theme extracted as a whole from a tale, elements which could be adequate to both media by adaption were incorporated. Establishing direct relations with one another, consecutively transmitting the essence of the explored story, transiting from the bibliographical media to the digital one, in the form of an interactive object, game. The essential objective of this project is of making a leisure product aimed to those who play casually. The result reached was a piece of art that possesses the minimum requirements to be revealed to the public mentioned, in a comprehensive and clear way.
Keywords: Adaptation. Game. Objective. Result. Media Transition.
Introdução
Este documento tem por finalidade discutir e abordar os aspectos que levaram à confecção do jogo “Jimmy Valentine”, constando a abordagem dada a cada aspecto desenvolvido no mesmo. Estão relacionados os itens de maior importância para a realização do projeto. Também abordando os resultados das experiências ao desenvolver tal produto. Sem deixar de explicar quais as referências utilizadas para que o projeto fosse possível. Sendo os itens abordados em seções e subseções organizadas no Sumário.
Sumário
1. Conceitos Iniciais 3
1.1 Conceitos Básicos 3
1.2 Conceitos Elaborados 3
2. Mudanças Necessárias 4
2.1 Transcriação 4
2.2 Mecânica e Funcionamento 5
3. Interface e Jogabilidade 5
3.1 Apresentação ao Usuário 5
3.2 Animações 5
3.3 Motivação ao Jogador 6
4. Estética e Sonorização 7
4.1 Arte Digital 7
4.2 Áudio e Trilha Sonora 7
1. Conceitos Iniciais
1.1 Conceitos Básicos
Inicialmente nos foi proposto fazer um jogo a partir de uma seleção específica de contos. Optamos pelo conto O Arrombador Aposentado, O.Henry. Feito isso, pesquisamos as situações em que o conto escolhido se encontrava, tanto quanto à história retratada nele quanto na própria vida do autor do mesmo. Em seguida começamos a desenvolver idéias de como o jogo e seus elementos se comportariam.
1.2 Conceitos Elaborados
Decidido o rumo do que seria feito para o jogo, foram então elaborados os aspectos específicos de cada peça, de forma que houvesse unidade visual, uma condizendo com a outra. Para tanto foram exploradas características que diferenciassem os personagens e ambientes, tanto entre si quanto um com o outro, mas ainda assim não fugissem à proposta de representar à época do contexto bibliográfico original. A história se passaria previamente ao conto lido, apresentando uma possível versão da história do protagonista, Jimmy Valentine, e seu perseguidor, o detetive Ben Price.
Figura 1 – Screenshot de parte do jogo Jimmy Valentine.
2. Mudanças Necessárias
2.1 Transcriação
Devido à mudança extrema de mídia de comunicação entre a fonte atual, um conto, uma fonte bibliográfica, e um jogo, uma fonte digital de informações, as adaptações necessárias para a integração e implementação de elementos físicos, visuais e mecânicos ao jogo foi meticulosa a ponto de considerar como os elementos reais poderiam se parecer. Consecutivamente nos possibilitando realizar tais mudanças de forma que os elementos fossem unidos no contexto. Exploramos as possibilidades diversas para uma adequação efetiva de ambiente e personagens, na qual decidimos por um projeto de visual simplificado e mais simbólico. “Design é um processo em que um designer cria um contexto a ser encontrado por um participante, no qual significado surge.” (SALEN; ZIMMERMAN, 2004, p.41).
2.2 Mecânica e Funcionamento
Seguindo o estilo do período abordado, decidimos por recriar um método de perseguição mais discreta, sem a utilização de veículos, uma vez que o criminoso no conto se prezava mais pelo trabalho bem feito do que pela fuga propriamente dita, preservando seu orgulho como o melhor no ofício. Também foi utilizada a mesma linha de raciocínio para os eventos de assalto presentes no jogo, representando como um ladrão da época faria, bem como a tecnologia utilizada por ele.
3. Interface e Jogabilidade
3.1 Apresentação ao Usuário
A interface tem por objetivo auxiliar o jogador, sendo que foi constatado o alto grau de dificuldade caso não houvesse o mínimo de parâmetros necessários para que o mesmo pudesse apoiar suas decisões durante o jogo. Dito isto, optamos por implementar uma ferramentas que facilita a interação entre homem e máquina, uma barra que representa a resistência enquanto realizando esforço para fugir dos seus perseguidores, Polícia e Detetive. “[...] Algo é interativo quando existe alguma espécie de relacionamento recíproco entre dois elementos em um sistema. [...]” (SALEN; ZIMMERMAN, 2004, p.58).
3.2 Animações
Animações foram criadas para as sequências nas quais o jogador não poderia interagir, mostrando parte da história que se passa por trás do jogo em algumas partes, e em outras dando continuidade e talvez até propósito ao objetivo do jogador, encorajando-o à fuga.
“[...] Personagens são agentes pelos quais histórias dramáticas são contadas, e eles também funcionam deste modo em jogos, provendo um modo para nós enfatizarmos a situação e vivermos de forma indireta pelos seus esforços. [...]” (FULLERTON L L., 2008, p.40).
3.3 Motivação ao Jogador
Os desafios propostos no jogo foram baseados na tecnologia disponível da época e baseados no conto original, fuga das autoridades e violação de cofres, sendo que a segunda espécie de desafio foi inspirada em modelos de depósitos existentes no período em que a narrativa se desenvolve. “[...] É um lugar no qual as emoções e o senso de desejo do jogador submetem-se a manipulação e impulso, provocação e sedução, frustração e recompensa. [...]” (SALEN; ZIMMERMAN, 2004, p.330).
Figura 2 – Visualização de cofre para o jogo Jimmy Valentine.
4. Estética e Sonorização
4.1 Arte Digital
O visual do jogo tenta refletir os padrões estéticos da época, ressaltando as características mais marcantes de cada item, seja quanto à vestimenta dos personagens, quanto na decoração de edifícios e objetos do mesmo período. O projeto não se preza por tentar se aproximar do realismo quanto aos elementos, este se dá como único pelas características escolhidas enquanto projetados os elementos a serem visualizados pelo jogador, levando o mesmo a uma dimensão que reinterpreta os conceitos de um período que já foi real, com o acréscimo de uma história ficcional, ainda que inspirada em fatos reais.
4.2 Áudio e Trilha Sonora
Os sons inseridos na peça têm participação na imersão desejada para o jogador, sendo que estes foram escolhidos de forma que o usuário sinta-se como parte do jogo, ambientando o cenário à época e tornando o jogo mais real para o usuário, sem que o mesmo represente como realmente era o período no qual a trama se desenvolve.
Conclusões, Considerações Finais e Agradecimentos
Em suma, podemos afirmar que qualquer projeto para a realização de um produto para a mídia digital requer planejamento e objetividade quando se tratando de algo divulgado ao público. Assim como a competência dos indivíduos envolvidos no projeto como um todo, mesmo que sejam especialistas em apenas uma das diversas áreas que envolvem a peça como um todo, manifestando suas idéias e contribuindo com o grupo afim de que se torne uma equipe e assim o produto final seja qualificado como aceitável e tenha possibilidades quanto ao quesito comércio. Devemos esta possibilidade de realizar tal projeto a cada professora ou professor que nos instruiu desde o início do curso vigente, pois por menor que pareça a lição ou aprendizado transmitido, este é sempre útil de uma forma ou outra, mesmo que os estudantes não o percebam como tal, sempre contribuindo para o projeto. Somente deste modo formando e desenvolvendo um produto adequado para uso de um público-alvo.
Bibliografia
HENRY, O. O Arrombador Aposentado, 1900.
SALEN, Katie; ZIMMERMAN, Eric. Rules of Play. Game Design Fundamentals. Massachusetts: The MIT Press, 2004.
FULLERTON, T. et al. Game Design Workshop. A Playcentric Approach to Creating Innovative Games. 2.ed. Morgan Kaufmann Publishers, 2008.
O conto usado na íntegra está abaixo.
"O.HENRY
(1862-1910 Estados Unidos)
Um guarda veio até a sapataria da prisão, onde Jimmy Valentine, como sempre assíduo ao trabalho, costurava sapatos, e o escoltou até a administração. Ali, o diretor entregou-lhe o indulto que o governador assinara naquela manha. Ele cumprira quase dez meses de uma sentença de quatro anos. Não pensara em ficar ali mais três meses. Quando um homem, que tem do lado de fora tantos amigos como Jimmy Valentine, “entra em cana”, quase não cale a pena cortar-lhe os cabelos.
- Bem, Valentine – disse o diretor -, você vai sair amanha. Tome jeito e faça alguma coisa da sua vida. No fundo, você não é uma má pessoa. Pare de arrombar cofres e viva dentro da lei.
- Eu? – disse Jimmy surpreso. – Mas nunca arrombei um cofre em toda a minha vida
- Ah, não! – o diretor riu. – Claro que não. Mas deixe ver, como é mesmo que você foi condenado por aquele trabalho em Springfield? Foi por que não conseguiu provar um álibi para não comprometer uma amiga da mais alta sociedade? Ou foi só o caso de um júri preconceituoso que não foi com a sua cara? É sempre uma coisa ou outra que acontece com vocês “inocentes”.
- Eu, diretor? – disse Jimmy, no seu candor exemplar. – Como? Se nunca estive em Springfield?
- Escolte-o de volta, Cronin – sorriu o diretor -, e arranje roupas de rua para ele. Pode abrir a sua cela ás sete da manhã e leve-o até o registro. Pense bem no meu conselho, Valentine.
Ás sete e um quarto da manhã seguinte, Jimmy estava de volta ao escritório do diretor. Vestia um terno malfeito, roupas prontas e uns sapatos que rangiam, fornecidos pelo Estado a seus hóspedes compulsórios na hora da dispensa.
Um funcionário entregou a ele um bilhete de trem e uma nota de cinco dólares, com o que a sociedade esperava que ele se reabilitasse, tornando-se um cidadão próspero e honesto. O diretor lhe deu um charuto e apertou sua mão. No livro de saídas foi anotado: “Valentine, 9762- Indultado pelo governador.” E Jimmy Valentine saiu para o sol.
Sem dar atenção aos pássaros que cantavam, ás árvores verdes balançando seus ramos ao vento, nem ao perfume das flores, Jimmy foi direto para um restaurante. Ali provou a primeira das doces alegrias da liberdade na forma de uma galinha ensopada e uma garrafa de vinho branco, seguida por um charuto, um pouco melhor do que aquele que lhe dera o diretor. Dali andou com calma até a estação. Jogou uma moeda no chapéu de um cego que estava na porta e tomou seu trem. Três horas de viagem o levaram a uma cidadezinha perto dos limites do estado. Foi ao café de um certo Mike Dolan e apertou a mão de Mike, que estava sozinho atrás de um balcão.
- Desculpe se não pôde ser antes, Jimmy, meu garoto – Disse Mike – Mas tivemos o contratempo daquele protesto de Springfield, e o governador quase volta atrás. Tudo bem?
- Tudo – Disse Jimmy. – Você está com minha chave?
Pegou a chave e subiu para o andar de cima, onde abriu a porta do quarto dos fundos. Tudo permanecia como deixara. No chão ainda estava um botão de Bem Price, que fora arrancado do colarinho do eminente detetive, quando subjugaram Jimmy para prendê-lo. Puxando uma cama de armar, Jimmy fez escorregar um painel da parede e tirou dali uma mala coberta de poeira. Abriu-a e contemplou com amor o mais perfeito jogo de ferramentas de arrombador de todo o leste. Um jogo completo, feito de um aço especialmente temperado, o que havia de mais moderno em brocas, gazuas, tenazes, braçadeiras, pés-de-cabra e puas, mais duas ou três novidades inventadas pelo próprio Jimmy, e que eram o seu orgulho. Gastara mais de novecentos dólares para mandar fazê-las em... Bem, onde fazem estas coisas para a profissão.
Meia hora mais tarde, Jimmy desceu e passou pelo café. Vestia agora roupas elegantes e bem cortadas e levava na mão sua mala limpa e sem poeira.
- Alguma coisa em mira? – Perguntou Mike Dolan, bem humorado.
- Eu? – perguntou Jimmy com espanto. Não estou entendendo. Sou o representante comercial das “Indústrias Reunidas de Fechaduras & Dobradiças S.A.”, de Nova York.
A declaração deliciou de tal modo a Mike, que Jimmy foi obrigado a tomar um milk-shake com ele. Nunca bebia “destilados”.
Uma semana depois que “Valentine, 9762” fora posto em liberdade, arrombaram um cofre, com elegância e maestria, em Richmond, Indiana, sem nenhuma pista que indicasse o autor do trabalho. Míseros oitocentos dólares foi tudo o que levaram. Duas semanas depois disso, em Logansport, um cofre com um patenteado e avançado sistema antifurto fora aberto como se fosse um queijo, ao som de mil e quinhentos dólares em espécie; títulos e metais não foram tocados. Aquilo começou a despertar o interesse dos “pega-ladrões”. Então, foi a vez de um velho cofre de banco, em Jefferson City, entrar em atividade e lançar pela cratera uma erupção de papel moeda no valor de cinco mil dólares.
As perdas agora eram grandes o bastante para levar o problema a um profissional do nível de Ben Price. Comparando dados, encontrou-se uma extraordinária semelhança nos métodos. Ben Price investigou os locais e foi ouvido dizendo:
- Têm a assinatura de “Dandy” Jimmy Valentine. Ela já voltou ao trabalho. Olhem para este cilindro de combinações, arrancando como se fosse um rabanete em terra fofa. Só ele tem ferramentas capazes de fazer isto. E vejam com que limpeza o trabalho foi feito. Jimmy nunca precisa de mais de um furo. Sim, acho que quero ter uma conversa com o Mr.Valentine. Da próxima vez, ele completara sua sentença, sem nenhuma historia de indulto, nem liberdade condicional.
Bem Price conhecia os hábitos de Jimmy. Estudara-os quando trabalhara no caso de Springfield: distância entre os trabalhos, rapidez na fuga, nenhum cúmplice e um fraco pela boa sociedade – hábitos que o fizeram escapar com sucesso da retribuição devida. Espalhou-se que Bem Price estava no rastro do arrombador, e outros proprietários de cofres sentiram-se mais tranqüilos.
Uma tarde, Jimmy Valentine e sua mala desceram da conexão postal, em Elmore, uma cidadezinha a oito quilômetros da estrada de ferro, no interior de Arkansas. Jimmy, parecendo um atlético universitário do último ano de volta ao lar, caminhou pela calçada até o hotel.
Uma jovem atravessou a rua e passou por ele na esquina, entrando por uma porta sobre a qual estava escrito “Banco de Elmore”. Jimmy olhou em seus olhos, esqueceu quem era, e transformou-se em outro homem. Ela baixou os olhos e corou de leve. Jovens com a aparência e o estilo de Jimmy eram escassos em Elmore.
Jimmy encontrou um menino bem á vontade nos degraus do banco, como se fosse um dos acionistas, e começou a indagar sobre a cidade, alimentando a conversa com algumas moedas de dez centavos. Daí a pouco, a garota saiu do banco, ignorando com um ar de superioridade o rapaz com a mala, e seguiu seu caminho.
- Aquela moça não é a Srta. Polly Simson? - perguntou Jimmy, manipulando a resposta.
- Não! – disse o menino. – É Annabel Adams, o pai dela é o dono do banco. Que é que você veio fazer em Elmore? A corrente do seu relógio é de ouro? Quero comprar um buldogue. Vai me dar mais uma moeda?
Jimmy foi para o Hotel Planters e alugou um quarto como Ralph D.Spencer. Encostado no balcão da portaria, deu ao atendente alguns dados biográficos. Disse que estava em Elmore procurando um local para estabelecer um negócio. Quantas sapatarias havia na cidade? Pensava em abrir uma sapataria. Será que havia espaço para mais uma?
O rapaz estava impressionado com as roupas e com os modos de Jimmy. Considerava-se, ele mesmo, um modelo de elegância para a juventude local, mas agora, vendo Jimmy, percebia as próprias limitações. Enquanto tentava se instruir na forma em que Jimmy administrava suas cartas, concedia cordialmente as informações.
Sim, havia muito espaço no negócio de sapatos. Na verdade, não havia uma sapataria na cidade, o armazém local vendia alguns calçados. Esperava que o Sr.Spencer decidisse se estabelecer em Elmore. O comercio, em qualquer ramo, era bom, as pessoas em Elmore eram sociáveis, e a cidade, agradável de se viver.
O Sr.Spencer pensava em passar alguns dias ali e estudar a situação. Não, não era necessário chamar o menino, levara ele mesmo a mala até seu quarto, era muito pesada.
Ralph Spencer – fênix surgido das cinzas de Jimmy Valentine, cinzas resultantes de um súbito ataque de paixão – se fixou em Elmore. Abriu sua sapataria, conseguiu uma boa clientela, e prosperou.
Socialmente era também um sucesso. Fez vários amigos e realizou o que desejava seu coração. Conheceu Annabel Adams, cativado cada vez mais por seu charme.
Depois de um ano, a situação do Sr. Ralph Spencer era a seguinte: Conseguira o respeito de toda a comunidade, sua sapataria florescia, e ele e Annabel estavam noivos e se casariam em duas semanas. Adams, o típico banqueiro do interior, trabalhador e desconfiado, aprovara o casamento. O orgulho que inspirava em Annabel era quase tão grande quanto o amor que a moça sentia por ele. Era já como um membro da família, tanto na casa do Sr.Adams, quanto na casa da irmã casada de Annabel.
Um dia Jimmy sentou-se para escrever esta carta, que enviou ao endereço de confiança de um de seus velhos amigos em St. Louis:
Meu velho,
Queria encontrá-lo no local do Sullivan, em Little Rock, na próxima quarta-feira, ás nove horas da noite. Preciso que você resolva algumas pequenas coisas para mim, e também quero dar-lhe de presente meu jogo de ferramentas. Sei que você as apreciará – não poderia fazer outras iguais nem com mil dólares. Billy, eu me aposentei do velho negocio, há um ano. Tenho uma boa loja, uma vida honesta, e vou me casar daqui a duas semanas com a melhor garota do mundo. Esta é a única vida, Billy – a vida Honesta. Não tocaria no dinheiro de outra pessoa agora, nem por um milhão de dólares. Depois do casamento, penso em vender meu negocio e ir para o Oeste, onde serão menores de ver meu passado se levantar contra mim. Billy, ela acredita em mim e não a decepcionaria por nada no mundo. Não deixe de estar no Sully, quarta-feira, porque preciso vê-lo. Levarei as ferramentas.
Seu velho amigo,
Jimmy
Na segunda-feira á noite, depois que Jimmy escrevera esta carta, Bem Price entrou sem chamar atenção em Elmore num carro alugado. Girou pela cidade e, na sua maneira discreta, descobriu o que queria saber. Da drogaria, em frente á Sapataria Spencer, Price pôde ver bem o rosto de Ralph D.Spencer.
- Vai se casar com a filha do banqueiro, não é mesmo, Jimmy? – disse Price a si mesmo. - Não sei não.
Na manhã seguinte, Jimmy tomou o café da manha na casa dos Adams. Ia a Little Rock, naquela manhã, para encomendar seu terno de casamento e comprar um presente para Annabel. Seria a primeira vez que deixara a cidade desde que viera para Elmore. Um ano já se passara desde seu ultimo “trabalho”, e achava que já podia se aventurar no mundo lá fora.
Depois do café, foram para o centro juntos, num grande grupo familiar – o Sr.Adams, Annabel, Jimmy e a irmã casada de Annabel com suas duas filhas pequenas, de cinco e nove anos. Foram até o hotel, onde Jimmy ainda vivia, e ele subiu a seu quarto para pegar sua mala. Depois foram para o banco. Lá estava a charrete com o cavalo de Jimmy e Dolph Gibson, que ia levá-lo até a estação de trem.
Entraram todos na sala do banco, de teto alto e sustentado por vidas de carvalho – Jimmy inclusive, o futuro genro de Adams era bem-vindo em toda parte. Os funcionários se mostraram felizes em ver e cumprimentar o elegante e simpático jovem que ia se casar com a senhorita Annabel. Jimmy pousou sua mala no chão, e Annabel, transbordante de felicidade e alegria, brincando, colocou na cabeça o chapéu do noivo e pegou sua mala.
- Não fico bem de vendedor? – disse Annabel. – Meu deus, Ralph, como isto pesa! Parece cheia de barras de ouro.
- Uma quantidade de ferros para sola, que vieram por engano – disse Jimmy com presença de espírito. – Vou devolvê-los, e levando comigo não gasto com o frete. Estou ficando econômico.
O Banco de Elmore havia colocado um cofre novo, e o Sr.Adams, que estava muito orgulhoso, quis mostrá-lo a todos. Não era grande, mas era a ultima palavra em segurança, com uma porta que se fechava com três trancas, acionadas simultaneamente por uma única maçaneta, e funcionava com um mecanismo de tempo. O Sr. Adams explicou seu funcionamento ao Sr.Spencer, que, embora não parecesse entender muito bem da coisa, mostrava um gentil interesse. As duas meninas, May e Agatha, estavam encantadas com o metal polido, o relógio e os mecanismos engraçados.
Enquanto estavam nisto, Bem Price, que entrara no banco pouco depois deles, apoiara os cotovelos no balcão, e olhava a cena por entre as barras. Dissera ao caixa que não desejava nada, estava apenas esperando por um conhecido.
De repente as mulheres gritaram. Sem que os adultos percebessem, May, a menina de nove anos, de brincadeira, trancara Agatha no cofre. Depois disso, fechara a maçaneta e girara o cilindro de combinações, como vira seu avô fazer.
O velho banqueiro correu para a maçaneta e tentou mexê-la.
- A porta não pode ser aberta – gemeu. – O relógio ainda não foi ajustado, nem a combinação foi registrada.
A mãe de Agatha começou a gritar de novo, histérica.
- Quietos! – disse o Sr. Adams, levantando a mão tremula. – Fiquem todos quietos. Agatha!- gritou o mais alto que pôde. – Ouça o vovô – durante o silencio que se seguiu, ouviram a menina se debatendo em pânico no escuro interior do cofre.
- Minha querida!- gritou a mãe. – Ela vai morrer de medo. Abram esta porta! Vocês homens não podem fazer nada?
- A pessoa capaz de abri-lo, mais próxima daqui, está em Little Rock – disse o Sr. Adams em voz trêmula. – Meu deus, Spencer, que é que nós vamos fazer? A menina não pode esperar muito tempo, não existe ar suficiente lá dentro; além do mais, terá convulsões de medo.
A mãe de Agatha, desesperada, começou a esmurrar a porta: alguém sem pensar sugeriu dinamite. Annabel olhou para Jimmy com seus olhos grandes e cheios de angustia, mas aonde ainda não havia desespero. Uma mulher sempre acha que nada é impossível para o homem que adora.
- Você não pode fazer alguma coisa, Ralph? Por favor, tente.
Ele a olhou com um estranho sorriso nos lábios, um sorriso suave que estava também em seus olhos.
- Annabel, dê para mim a rosa que está usando.
Mal acreditando no que ouvira, Annabel soltou do alfinete o botão que levava no peito do vestido. Jimmy colocou a flor no bolso do colete, tirou o paletó e arregaçou as mangas. Naquele momento, morria Ralph D. Spencer, e Jimmy Valentine tomava seu lugar.
- Afastem-se da porta, todos vocês – ordenou curto.
Colocou sua mala na mesa e a abriu. Daquele momento em diante, parecia inconsciente da presença de qualquer outra pessoa. Alinhou com rapidez e ordem seus instrumentos, estranhos e brilhantes, enquanto assoviava para si mesmo como fazia sempre que trabalhava. Num profundo silencio, os outros o observavam como enfeitiçados.
Em um minuto, sua broca comia o metal da porta. Em dez minutos – quebrando seu próprio recorde -, a porta estava aberta.
Agatha, quase desmaiando, mas salva, foi recolhida pelos braços da mãe.
Jimmy Valentine vestiu seu paletó e caminhou para a porta. Enquanto ia embora, pensou ouvir de longe uma voz que um dia conhecera chamar “Ralph!”. Mas não hesitou.
Na porta, um homem grande apareceu em seu caminho.
- Olá, Bem! – disse Jimmy, ainda com seu estranho sorriso. – Finalmente me encontrou. Vamos embora, não acho que faça mais nenhuma diferença agora.
Mas aí, Bem Price teve uma atitude muito inesperada.
- Desculpe, mas acho que esta enganado, senhor Spencer – disse ele.- Não creio que já nos conheçamos. Aquele parece que é seu carro que este lhe esperando.
E Bem Price deu-lhe as costas e caminhou devagar pela rua."
"O.HENRY
(1862-1910 Estados Unidos)
Um guarda veio até a sapataria da prisão, onde Jimmy Valentine, como sempre assíduo ao trabalho, costurava sapatos, e o escoltou até a administração. Ali, o diretor entregou-lhe o indulto que o governador assinara naquela manha. Ele cumprira quase dez meses de uma sentença de quatro anos. Não pensara em ficar ali mais três meses. Quando um homem, que tem do lado de fora tantos amigos como Jimmy Valentine, “entra em cana”, quase não cale a pena cortar-lhe os cabelos.
- Bem, Valentine – disse o diretor -, você vai sair amanha. Tome jeito e faça alguma coisa da sua vida. No fundo, você não é uma má pessoa. Pare de arrombar cofres e viva dentro da lei.
- Eu? – disse Jimmy surpreso. – Mas nunca arrombei um cofre em toda a minha vida
- Ah, não! – o diretor riu. – Claro que não. Mas deixe ver, como é mesmo que você foi condenado por aquele trabalho em Springfield? Foi por que não conseguiu provar um álibi para não comprometer uma amiga da mais alta sociedade? Ou foi só o caso de um júri preconceituoso que não foi com a sua cara? É sempre uma coisa ou outra que acontece com vocês “inocentes”.
- Eu, diretor? – disse Jimmy, no seu candor exemplar. – Como? Se nunca estive em Springfield?
- Escolte-o de volta, Cronin – sorriu o diretor -, e arranje roupas de rua para ele. Pode abrir a sua cela ás sete da manhã e leve-o até o registro. Pense bem no meu conselho, Valentine.
Ás sete e um quarto da manhã seguinte, Jimmy estava de volta ao escritório do diretor. Vestia um terno malfeito, roupas prontas e uns sapatos que rangiam, fornecidos pelo Estado a seus hóspedes compulsórios na hora da dispensa.
Um funcionário entregou a ele um bilhete de trem e uma nota de cinco dólares, com o que a sociedade esperava que ele se reabilitasse, tornando-se um cidadão próspero e honesto. O diretor lhe deu um charuto e apertou sua mão. No livro de saídas foi anotado: “Valentine, 9762- Indultado pelo governador.” E Jimmy Valentine saiu para o sol.
Sem dar atenção aos pássaros que cantavam, ás árvores verdes balançando seus ramos ao vento, nem ao perfume das flores, Jimmy foi direto para um restaurante. Ali provou a primeira das doces alegrias da liberdade na forma de uma galinha ensopada e uma garrafa de vinho branco, seguida por um charuto, um pouco melhor do que aquele que lhe dera o diretor. Dali andou com calma até a estação. Jogou uma moeda no chapéu de um cego que estava na porta e tomou seu trem. Três horas de viagem o levaram a uma cidadezinha perto dos limites do estado. Foi ao café de um certo Mike Dolan e apertou a mão de Mike, que estava sozinho atrás de um balcão.
- Desculpe se não pôde ser antes, Jimmy, meu garoto – Disse Mike – Mas tivemos o contratempo daquele protesto de Springfield, e o governador quase volta atrás. Tudo bem?
- Tudo – Disse Jimmy. – Você está com minha chave?
Pegou a chave e subiu para o andar de cima, onde abriu a porta do quarto dos fundos. Tudo permanecia como deixara. No chão ainda estava um botão de Bem Price, que fora arrancado do colarinho do eminente detetive, quando subjugaram Jimmy para prendê-lo. Puxando uma cama de armar, Jimmy fez escorregar um painel da parede e tirou dali uma mala coberta de poeira. Abriu-a e contemplou com amor o mais perfeito jogo de ferramentas de arrombador de todo o leste. Um jogo completo, feito de um aço especialmente temperado, o que havia de mais moderno em brocas, gazuas, tenazes, braçadeiras, pés-de-cabra e puas, mais duas ou três novidades inventadas pelo próprio Jimmy, e que eram o seu orgulho. Gastara mais de novecentos dólares para mandar fazê-las em... Bem, onde fazem estas coisas para a profissão.
Meia hora mais tarde, Jimmy desceu e passou pelo café. Vestia agora roupas elegantes e bem cortadas e levava na mão sua mala limpa e sem poeira.
- Alguma coisa em mira? – Perguntou Mike Dolan, bem humorado.
- Eu? – perguntou Jimmy com espanto. Não estou entendendo. Sou o representante comercial das “Indústrias Reunidas de Fechaduras & Dobradiças S.A.”, de Nova York.
A declaração deliciou de tal modo a Mike, que Jimmy foi obrigado a tomar um milk-shake com ele. Nunca bebia “destilados”.
Uma semana depois que “Valentine, 9762” fora posto em liberdade, arrombaram um cofre, com elegância e maestria, em Richmond, Indiana, sem nenhuma pista que indicasse o autor do trabalho. Míseros oitocentos dólares foi tudo o que levaram. Duas semanas depois disso, em Logansport, um cofre com um patenteado e avançado sistema antifurto fora aberto como se fosse um queijo, ao som de mil e quinhentos dólares em espécie; títulos e metais não foram tocados. Aquilo começou a despertar o interesse dos “pega-ladrões”. Então, foi a vez de um velho cofre de banco, em Jefferson City, entrar em atividade e lançar pela cratera uma erupção de papel moeda no valor de cinco mil dólares.
As perdas agora eram grandes o bastante para levar o problema a um profissional do nível de Ben Price. Comparando dados, encontrou-se uma extraordinária semelhança nos métodos. Ben Price investigou os locais e foi ouvido dizendo:
- Têm a assinatura de “Dandy” Jimmy Valentine. Ela já voltou ao trabalho. Olhem para este cilindro de combinações, arrancando como se fosse um rabanete em terra fofa. Só ele tem ferramentas capazes de fazer isto. E vejam com que limpeza o trabalho foi feito. Jimmy nunca precisa de mais de um furo. Sim, acho que quero ter uma conversa com o Mr.Valentine. Da próxima vez, ele completara sua sentença, sem nenhuma historia de indulto, nem liberdade condicional.
Bem Price conhecia os hábitos de Jimmy. Estudara-os quando trabalhara no caso de Springfield: distância entre os trabalhos, rapidez na fuga, nenhum cúmplice e um fraco pela boa sociedade – hábitos que o fizeram escapar com sucesso da retribuição devida. Espalhou-se que Bem Price estava no rastro do arrombador, e outros proprietários de cofres sentiram-se mais tranqüilos.
Uma tarde, Jimmy Valentine e sua mala desceram da conexão postal, em Elmore, uma cidadezinha a oito quilômetros da estrada de ferro, no interior de Arkansas. Jimmy, parecendo um atlético universitário do último ano de volta ao lar, caminhou pela calçada até o hotel.
Uma jovem atravessou a rua e passou por ele na esquina, entrando por uma porta sobre a qual estava escrito “Banco de Elmore”. Jimmy olhou em seus olhos, esqueceu quem era, e transformou-se em outro homem. Ela baixou os olhos e corou de leve. Jovens com a aparência e o estilo de Jimmy eram escassos em Elmore.
Jimmy encontrou um menino bem á vontade nos degraus do banco, como se fosse um dos acionistas, e começou a indagar sobre a cidade, alimentando a conversa com algumas moedas de dez centavos. Daí a pouco, a garota saiu do banco, ignorando com um ar de superioridade o rapaz com a mala, e seguiu seu caminho.
- Aquela moça não é a Srta. Polly Simson? - perguntou Jimmy, manipulando a resposta.
- Não! – disse o menino. – É Annabel Adams, o pai dela é o dono do banco. Que é que você veio fazer em Elmore? A corrente do seu relógio é de ouro? Quero comprar um buldogue. Vai me dar mais uma moeda?
Jimmy foi para o Hotel Planters e alugou um quarto como Ralph D.Spencer. Encostado no balcão da portaria, deu ao atendente alguns dados biográficos. Disse que estava em Elmore procurando um local para estabelecer um negócio. Quantas sapatarias havia na cidade? Pensava em abrir uma sapataria. Será que havia espaço para mais uma?
O rapaz estava impressionado com as roupas e com os modos de Jimmy. Considerava-se, ele mesmo, um modelo de elegância para a juventude local, mas agora, vendo Jimmy, percebia as próprias limitações. Enquanto tentava se instruir na forma em que Jimmy administrava suas cartas, concedia cordialmente as informações.
Sim, havia muito espaço no negócio de sapatos. Na verdade, não havia uma sapataria na cidade, o armazém local vendia alguns calçados. Esperava que o Sr.Spencer decidisse se estabelecer em Elmore. O comercio, em qualquer ramo, era bom, as pessoas em Elmore eram sociáveis, e a cidade, agradável de se viver.
O Sr.Spencer pensava em passar alguns dias ali e estudar a situação. Não, não era necessário chamar o menino, levara ele mesmo a mala até seu quarto, era muito pesada.
Ralph Spencer – fênix surgido das cinzas de Jimmy Valentine, cinzas resultantes de um súbito ataque de paixão – se fixou em Elmore. Abriu sua sapataria, conseguiu uma boa clientela, e prosperou.
Socialmente era também um sucesso. Fez vários amigos e realizou o que desejava seu coração. Conheceu Annabel Adams, cativado cada vez mais por seu charme.
Depois de um ano, a situação do Sr. Ralph Spencer era a seguinte: Conseguira o respeito de toda a comunidade, sua sapataria florescia, e ele e Annabel estavam noivos e se casariam em duas semanas. Adams, o típico banqueiro do interior, trabalhador e desconfiado, aprovara o casamento. O orgulho que inspirava em Annabel era quase tão grande quanto o amor que a moça sentia por ele. Era já como um membro da família, tanto na casa do Sr.Adams, quanto na casa da irmã casada de Annabel.
Um dia Jimmy sentou-se para escrever esta carta, que enviou ao endereço de confiança de um de seus velhos amigos em St. Louis:
Meu velho,
Queria encontrá-lo no local do Sullivan, em Little Rock, na próxima quarta-feira, ás nove horas da noite. Preciso que você resolva algumas pequenas coisas para mim, e também quero dar-lhe de presente meu jogo de ferramentas. Sei que você as apreciará – não poderia fazer outras iguais nem com mil dólares. Billy, eu me aposentei do velho negocio, há um ano. Tenho uma boa loja, uma vida honesta, e vou me casar daqui a duas semanas com a melhor garota do mundo. Esta é a única vida, Billy – a vida Honesta. Não tocaria no dinheiro de outra pessoa agora, nem por um milhão de dólares. Depois do casamento, penso em vender meu negocio e ir para o Oeste, onde serão menores de ver meu passado se levantar contra mim. Billy, ela acredita em mim e não a decepcionaria por nada no mundo. Não deixe de estar no Sully, quarta-feira, porque preciso vê-lo. Levarei as ferramentas.
Seu velho amigo,
Jimmy
Na segunda-feira á noite, depois que Jimmy escrevera esta carta, Bem Price entrou sem chamar atenção em Elmore num carro alugado. Girou pela cidade e, na sua maneira discreta, descobriu o que queria saber. Da drogaria, em frente á Sapataria Spencer, Price pôde ver bem o rosto de Ralph D.Spencer.
- Vai se casar com a filha do banqueiro, não é mesmo, Jimmy? – disse Price a si mesmo. - Não sei não.
Na manhã seguinte, Jimmy tomou o café da manha na casa dos Adams. Ia a Little Rock, naquela manhã, para encomendar seu terno de casamento e comprar um presente para Annabel. Seria a primeira vez que deixara a cidade desde que viera para Elmore. Um ano já se passara desde seu ultimo “trabalho”, e achava que já podia se aventurar no mundo lá fora.
Depois do café, foram para o centro juntos, num grande grupo familiar – o Sr.Adams, Annabel, Jimmy e a irmã casada de Annabel com suas duas filhas pequenas, de cinco e nove anos. Foram até o hotel, onde Jimmy ainda vivia, e ele subiu a seu quarto para pegar sua mala. Depois foram para o banco. Lá estava a charrete com o cavalo de Jimmy e Dolph Gibson, que ia levá-lo até a estação de trem.
Entraram todos na sala do banco, de teto alto e sustentado por vidas de carvalho – Jimmy inclusive, o futuro genro de Adams era bem-vindo em toda parte. Os funcionários se mostraram felizes em ver e cumprimentar o elegante e simpático jovem que ia se casar com a senhorita Annabel. Jimmy pousou sua mala no chão, e Annabel, transbordante de felicidade e alegria, brincando, colocou na cabeça o chapéu do noivo e pegou sua mala.
- Não fico bem de vendedor? – disse Annabel. – Meu deus, Ralph, como isto pesa! Parece cheia de barras de ouro.
- Uma quantidade de ferros para sola, que vieram por engano – disse Jimmy com presença de espírito. – Vou devolvê-los, e levando comigo não gasto com o frete. Estou ficando econômico.
O Banco de Elmore havia colocado um cofre novo, e o Sr.Adams, que estava muito orgulhoso, quis mostrá-lo a todos. Não era grande, mas era a ultima palavra em segurança, com uma porta que se fechava com três trancas, acionadas simultaneamente por uma única maçaneta, e funcionava com um mecanismo de tempo. O Sr. Adams explicou seu funcionamento ao Sr.Spencer, que, embora não parecesse entender muito bem da coisa, mostrava um gentil interesse. As duas meninas, May e Agatha, estavam encantadas com o metal polido, o relógio e os mecanismos engraçados.
Enquanto estavam nisto, Bem Price, que entrara no banco pouco depois deles, apoiara os cotovelos no balcão, e olhava a cena por entre as barras. Dissera ao caixa que não desejava nada, estava apenas esperando por um conhecido.
De repente as mulheres gritaram. Sem que os adultos percebessem, May, a menina de nove anos, de brincadeira, trancara Agatha no cofre. Depois disso, fechara a maçaneta e girara o cilindro de combinações, como vira seu avô fazer.
O velho banqueiro correu para a maçaneta e tentou mexê-la.
- A porta não pode ser aberta – gemeu. – O relógio ainda não foi ajustado, nem a combinação foi registrada.
A mãe de Agatha começou a gritar de novo, histérica.
- Quietos! – disse o Sr. Adams, levantando a mão tremula. – Fiquem todos quietos. Agatha!- gritou o mais alto que pôde. – Ouça o vovô – durante o silencio que se seguiu, ouviram a menina se debatendo em pânico no escuro interior do cofre.
- Minha querida!- gritou a mãe. – Ela vai morrer de medo. Abram esta porta! Vocês homens não podem fazer nada?
- A pessoa capaz de abri-lo, mais próxima daqui, está em Little Rock – disse o Sr. Adams em voz trêmula. – Meu deus, Spencer, que é que nós vamos fazer? A menina não pode esperar muito tempo, não existe ar suficiente lá dentro; além do mais, terá convulsões de medo.
A mãe de Agatha, desesperada, começou a esmurrar a porta: alguém sem pensar sugeriu dinamite. Annabel olhou para Jimmy com seus olhos grandes e cheios de angustia, mas aonde ainda não havia desespero. Uma mulher sempre acha que nada é impossível para o homem que adora.
- Você não pode fazer alguma coisa, Ralph? Por favor, tente.
Ele a olhou com um estranho sorriso nos lábios, um sorriso suave que estava também em seus olhos.
- Annabel, dê para mim a rosa que está usando.
Mal acreditando no que ouvira, Annabel soltou do alfinete o botão que levava no peito do vestido. Jimmy colocou a flor no bolso do colete, tirou o paletó e arregaçou as mangas. Naquele momento, morria Ralph D. Spencer, e Jimmy Valentine tomava seu lugar.
- Afastem-se da porta, todos vocês – ordenou curto.
Colocou sua mala na mesa e a abriu. Daquele momento em diante, parecia inconsciente da presença de qualquer outra pessoa. Alinhou com rapidez e ordem seus instrumentos, estranhos e brilhantes, enquanto assoviava para si mesmo como fazia sempre que trabalhava. Num profundo silencio, os outros o observavam como enfeitiçados.
Em um minuto, sua broca comia o metal da porta. Em dez minutos – quebrando seu próprio recorde -, a porta estava aberta.
Agatha, quase desmaiando, mas salva, foi recolhida pelos braços da mãe.
Jimmy Valentine vestiu seu paletó e caminhou para a porta. Enquanto ia embora, pensou ouvir de longe uma voz que um dia conhecera chamar “Ralph!”. Mas não hesitou.
Na porta, um homem grande apareceu em seu caminho.
- Olá, Bem! – disse Jimmy, ainda com seu estranho sorriso. – Finalmente me encontrou. Vamos embora, não acho que faça mais nenhuma diferença agora.
Mas aí, Bem Price teve uma atitude muito inesperada.
- Desculpe, mas acho que esta enganado, senhor Spencer – disse ele.- Não creio que já nos conheçamos. Aquele parece que é seu carro que este lhe esperando.
E Bem Price deu-lhe as costas e caminhou devagar pela rua."
Créditos Atribuídos do Jogo Incompleto
Universidade Anhembi-Morumbi
Design de Games – NA3
Créditos:
Danilo Dellape Gonçalves – Programação
Eduardo Masteguim Lemos – Arte
Fabio Picolo Crivelaro – Arte
Filipe Figueiredo – Counter-Strike Tester
Rafael Faquini – Programação
Programas Utilizados:
Adobe Creative Suite CS4 – Flash, Illustrator e Photoshop
Suíte de Aplicativos Gráficos CorelDRAW - CorelDRAW X4
Música e efeitos sonoros:
www.sounddogs.com
Agradecimentos Especiais:
Prof. Igor R. Hosse
Design de Games – NA3
Créditos:
Danilo Dellape Gonçalves – Programação
Eduardo Masteguim Lemos – Arte
Fabio Picolo Crivelaro – Arte
Filipe Figueiredo – Counter-Strike Tester
Rafael Faquini – Programação
Programas Utilizados:
Adobe Creative Suite CS4 – Flash, Illustrator e Photoshop
Suíte de Aplicativos Gráficos CorelDRAW - CorelDRAW X4
Música e efeitos sonoros:
www.sounddogs.com
Agradecimentos Especiais:
Prof. Igor R. Hosse
Sprites dos Personagens
Programação do Jogo
Aqui está disponível a programação de até onde conseguimos chegar com nosso jogo.
stop();
/////////////////////////////////////////////////////
//BACKG GAME!!!
////////////////////////////////
var backgroundblk:Backgroundblk = new Backgroundblk;
addChild(backgroundblk);
backgroundblk.visible=true;
/*backgroundblk.width=stage.stageWidth;
backgroundblk.height=stage.stageHeight;
*/
backgroundblk.x=stage.stageWidth/2;
backgroundblk.y=stage.stageHeight/2;
////////////////////////////////////////////
//MAP SIZE!!!!!!!
///////////////////////////////
//55W x 31H
////////////////////////////////////////////////////
//MAPS MATRIX!!!
////////////////////////////////
var tileMap1:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,17,17,17,18, 6, 6,28,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,10,11,11,11,20,21, 0, 0,22,23,31,23,24, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,30, 1, 1, 1, 1, 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 0, 0,38,39,39,39,39,40, 0,32,33,34,32,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27, 0,32,33,41,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27, 0, 0, 0, 0,38,40, 0, 0,28,29,29,29,29,29,30, 0, 0,35,36,36,36,36,37,16,17,17,18, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27,29,30, 0, 0,32,34, 0, 0,25,26,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,15, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,26,26,27, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,27, 0, 0,32,41,33,41,41,34,10,11,11,12, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,22,31,31,31,31,24, 6, 6, 0, 0, 0, 0,22,31,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
var tileMap303:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,28,29,29,29,29,29,30, 0, 0,38,39,39,39,40,38,39,39,39,40,52,52,38,39,39,39,40,38,40,38,39,40,38,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,22,31,31,23,31,31,24, 0, 0,32,33,41,41,34,32,41,41,41,34, 0, 0,32,41,41,41,34,32,34,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,28,29,29,30, 0,38,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40, 0,32,33,34,32,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27, 0,32,33,41,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0,38,39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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
///////
var tileMap5:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,49,49,50,38,39,39,39,39,40,28,29,29,29,29,29,29,30,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30,28,29,30,28,29,30,28,29,29,29,30, 1],
[1,42,43,43,43,43,43,44,32,33,33,33,33,34,22,23,23,23,23,23,23,24,45,46,46,46,47, 0, 0,38,39,39,39,39,39,40, 0, 0,25,26,26,26,27,25,26,27,25,26,27,25,26,26,26,27, 1],
[1,45,46,46,46,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,36,36,36,36,37, 0, 0,22,23,23,23,24,22,23,24,22,23,24,22,23,23,23,24, 1],
[1,38,39,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30, 0, 0,32,41,41,33,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1],
[1,35,36,36,36,36,36,37, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0,25,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1],
[1,35,36,36,36,36,36,37, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0,22,23,23,23,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,48,49,50,48,49,50,16,17,17,18, 0, 0,28,29,29,30, 1],
[1,32,41,41,41,41,41,34, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,45,46,47,45,46,47,13,14,14,15, 0, 0,22,23,31,24, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40,13,14,14,15, 0, 0, 0, 0, 0, 0, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0,28,29,29,29,29,30, 0, 0,38,39,39,39,39,40,13,14,14,15,17,17,17,18, 0, 0, 1],
[1,28,29,29,29,29,29,30, 0, 0,22,31,31,31,31,31,31,31,31,24, 0, 0,35,36,36,36,36,37, 0, 0,25,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,14,14,14,14,15, 0, 0, 1],
[1,25,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,36,37, 0, 0,22,31,31,31,31,24, 0, 0,32,41,41,41,41,34,10,11,11,12,20,20,20,21, 0, 0, 1],
[1,22,31,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,41,41,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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29,30,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30,28,29,30,28,29,30,28,29,29,29,30, 1],
[1,42,43,43,43,43,43,44,32,33,33,33,33,34,22,23,23,23,23,23,23,24,45,46,46,46,47, 0, 0,38,39,39,39,39,39,40, 0, 0,25,26,26,26,27,25,26,27,25,26,27,25,26,26,26,27, 1],
[1,45,46,46,46,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,36,36,36,36,37, 0, 0,22,23,23,23,24,22,23,24,22,23,24,22,23,23,23,24, 1],
[1,38,39,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30, 0, 0,32,41,41,33,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,52, 1],
[1,35,36,36,36,36,36,37, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0,25,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,52, 1],
[1,35,36,36,36,36,36,37, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0,22,23,23,23,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,48,49,50,48,49,50,16,17,17,18, 0, 0,28,29,29,30, 1],
[1,32,41,41,41,41,41,34, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,45,46,47,45,46,47,13,14,14,15, 0, 0,22,23,31,24, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40,13,14,14,15, 0, 0, 0, 0, 0, 0, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0,28,29,29,29,29,30, 0, 0,38,39,39,39,39,40,13,14,14,15,17,17,17,18, 0, 0, 1],
[1,28,29,29,29,29,29,30, 0, 0,22,31,31,31,31,31,31,31,31,24, 0, 0,35,36,36,36,36,37, 0, 0,25,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,14,14,14,14,15, 0, 0, 1],
[1,25,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,36,37, 0, 0,22,31,31,31,31,24, 0, 0,32,41,41,41,41,34, 7, 8, 8, 9,20,20,20,21, 0, 0, 1],
[1,22,31,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,41,41,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,45,46,47,45,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,22,23,24,32,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,10,11,11,12, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,45,46,46,47, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,38,39,40, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,35,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,32,33,34, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,22,23,23,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,39,39,40, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,22,23,23,31,31,23,23,31,31,24, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,32,33,41,33,41,33,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,22,23,31,31,23,24, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
var tileMap707:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,50,48,50,28,29,29,29,29,29,29,29,29,30,38,39,39,39,39,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,46,46,46,47,45,47,23,23,23,31,23,31,31,31,31,24,32,33,33,41,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,50,28,30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,46,46,46,47,25,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0,52, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,40,25,27, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0,52, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,37,25,27, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,32,41,41,33,34,22,24, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,16,17,17,18, 0, 0,48,49,50,48,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,45,46,47,45,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,22,23,24,32,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0, 7, 8, 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,45,46,46,47, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,38,39,40, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,35,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,32,33,34, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,22,23,23,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,39,39,40, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,47, 0, 0,42,43,43,44, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0,28,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,28,29,29,30, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0,28,29,29,30, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0,25,26,26,27, 0, 0,22,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,16,17,17,18, 0, 0,22,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,28,29,29,30, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0,28,29,29,30, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0,25,26,26,27, 0, 0,22,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,16,17,17,18, 0, 0,22,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0, 0, 1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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
///////
var tileMap11:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,39,39,39,39,39,39,39,38,39,39,39,40, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,33,41,33,41,33,41,33,41,33,41,33,38,39,39,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 0, 0,25,26,26,26,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 0, 0,22,31,31,23,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,45,46,46,46,47, 0, 0,38,40,48,50, 0, 0, 5, 5, 5, 5, 0, 0,35,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,42,43,43,43,44, 0, 0,38,40,42,44, 0, 0, 5, 5, 5, 5, 0, 0,32,33,33,33,34, 0, 0,38,39,40, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,28,29,29,29,30, 0, 0,38,40,38,40, 0, 0, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,40, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,25,26,26,26,27, 0, 0,35,37,41,34, 0, 0, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,40, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,25,26,26,26,27, 0, 0,35,37, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,38,39,40, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,22,23,23,23,24, 0, 0,35,37, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,37, 0, 0,28,30, 0, 0, 5, 5, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,34, 0, 0,28,30, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,35,36,37, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0,38,40, 0, 0, 0, 0, 0, 0,25,27, 0, 0, 5, 5, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0,32,34, 0, 0, 0, 0, 0, 0,25,27, 0, 0, 5, 5, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0, 0, 0, 0, 0,28,29,29,30,22,24, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,35,36,37, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0, 0, 0, 0, 0,28,29,29,30, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,17,17,17,17,18, 0, 0,28,29,29,30, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,38,39,39,40, 0, 0,28,29,29,29,30, 0, 0,35,36,37, 0, 0,38,39,39,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,38,39,39,40, 0, 0,25,26,26,26,27, 0, 0,35,36,37, 0, 0,35,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0,22,31,31,31,24, 0, 0,32,33,34, 0, 0,32,33,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,10,11,11,12,20,20,21, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0,28,29,29,29,29,30, 0, 0,28,29,29,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,39,39,40, 0, 0,22,31,31,24, 0, 0,32,33,33,34, 0, 0,28,29,29,29,29,30, 0, 0,25,26,26,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,27, 0, 0,22,23,31,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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0,0,0,0,0,0,1,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1],
[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
);
//city 6
var tileMap11:Array = new Array(
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],
[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
);*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//SPEEDS!!!
var playerspeed:int=5;
var boosterspeed:int=10;
var detectivespeed:int=0;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////
var collisionMap:Array; //array que guarda as paredes do mapa
var doorMap:Array; //array que guarda as portas do mapa
var allMap:Array; //array que guarda todas as peças do mapa
var allMapOldX:Array; //array que guarda as posicoes antigas X do mapa
var allMapOldY:Array; //array que guarda as posicoes antigas Y do mapa
var actualMap:int; //guarda o mapa em que o usuário est[a jogando
initializeMap(1,stage.stageWidth/2,stage.stageHeight/2,100,100);
//looping para criar o cenario
function createMap(m:Array)
{
collisionMap = new Array(); //array que guarda as paredes do mapa
doorMap = new Array(); //array que guarda as portas do mapa
allMap = new Array(); //array que guarda todas as peças do mapa
allMapOldX = new Array(); //array que guarda as posicoes antigas X do mapa
allMapOldY = new Array(); //array que guarda as posicoes antigas Y do mapa
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//create map
for(var j:int = 0; j<55;j++){
for(var i:int = 0; i<31;i++){
var tile:Tile = new Tile();
tile.x = tile.width/2 + tile.width*j;
tile.y = tile.height/2 + tile.height*i;
addChild(tile);
tile.gotoAndStop(m[i][j]+1);
allMap.push(tile); //guarda o objeto dentro da array allMap
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//TILE FUNCTIONS!!!!
/////////////////////////////////////////////////////////////////////
//chão cidade
if(m[i][j]==0)
{
velX=velX;
velY=velY;
}
//obstáculo(offscreen)
if(m[i][j]==1)
{
collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//porta cenario
if(m[i][j]==2)
{
//doorMap.push(tile);
}
//milho
if(m[i][j]==3)
{
}
//grama
if(m[i][j]==4)
{
}
//bloqueio campo(concreto)
if(m[i][j]==5)
{
/*collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);*/
}
//bloqueio cidade(grama)
if(m[i][j]==6)
{
}
//////////////////////////////////////////
//banco
/////////////////////////////////////////////
//portas nulas banco
if(m[i][j]==7)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==8)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==9)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//portas uteis banco
if(m[i][j]==10)
{
doorMap.push(tile);
}
if(m[i][j]==11)
{
doorMap.push(tile);
}
if(m[i][j]==12)
{
doorMap.push(tile);
}
//banco cima
if(m[i][j]==13)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==14)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==15)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//banco teto
if(m[i][j]==16)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==17)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==18)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//parede sem porta
if(m[i][j]==19)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==20)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==21)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//predio verde
/////////////////////////////////////////////
//portas predio
if(m[i][j]==22)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==23)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==24)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//janela predio
if(m[i][j]==25)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==26)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==27)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//predio teto
if(m[i][j]==28)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==29)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==30)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//parede predio
if(m[i][j]==31)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//predio amarelo
/////////////////////////////////////////////
//portas predio
if(m[i][j]==32)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==33)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==34)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//janela predio
if(m[i][j]==35)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==36)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==37)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//predio teto
if(m[i][j]==38)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==39)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==40)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//parede predio
if(m[i][j]==41)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//predio topo
/////////////////////////////////////////////
//parede predio
if(m[i][j]==42)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==43)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==44)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//janela predio
if(m[i][j]==45)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==46)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==47)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//predio teto
if(m[i][j]==48)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==49)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==50)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//PORTAS!!!!!!
//////////////////////////////////////
//porta cenario(cimento)
if(m[i][j]==51)
{
doorMap.push(tile);
}
//porta cenario(terra)
if(m[i][j]==52)
{
doorMap.push(tile);
}
}
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHARS!!!
///////////////////////////////////////////
//cria o personagem
var player:Player;
function createPlayer(posx:Number,posy:Number)
{
player = new Player();
player.x = posx;
player.y = posy;
addChild(player);
}
//cria o detetive
/*var detective:Detective;
function createDetective(posdx:Number,posdy:Number)
{
detective = new Detective();
detective.x=posdx;
detective.y=posdy;
addChild(detective);
}*/
//stage,addEventListener(Event.ENTER_FRAME,playdetective);
/////////////////////////////////////
//NEW MAP!!!
////////////////////////////////////
function initializeMap(n:int,posx:int,posy:int,posdx:int,posdy:int)
{
if(n==1)
{
//gotoAndStop(2);
createMap(tileMap1);
createPlayer(posx,posy);
//createDetective(posdx,posdy);
actualMap = 1;
for(var a=0;a
{
allMap[a].x += 140;
allMap[a].y += -110;
}
}
if(n==2)
{
////////////////////////////////////////////////////////////////////////////
//PUZZLE 1 !!!
////////////////////////////////////////////////////////////////////
/*var fundopuzzle1:Fundopuzzle1 = new Fundopuzzle1;
addChild(fundopuzzle1);
//fundopuzzle1.visible=true;
fundopuzzle1.x=stage.stageWidth/2;
fundopuzzle1.y=stage.stageHeight/2;
var lHit:Boolean;
var rHit:Boolean;
var barra:Barra = new Barra();
var hit1:Hit1 = new Hit1();
var hit2:Hit2 = new Hit2();
var hit3:Hit3 = new Hit3();
var arco1:Arco1 = new Arco1();
var arco2:Arco2 = new Arco2();
var arco3:Arco3 = new Arco3();
var vermelho:Vermelho = new Vermelho();
var ticks:int = 0;
var cont:int = 30;
/*var textpuzzle1:Textpuzzle1=new Textpuzzle1;
addChild(textpuzzle1);
textpuzzle1.x=300;
textpuzzle1.y=50;*/
/*addChild(barra);
addChild(hit1);
addChild(hit2);
addChild(hit3);
addChild(arco1);
addChild(arco2);
addChild(arco3);
addChild(vermelho);
barra.x = 400;
barra.y = 300;
arco1.x = 222;
arco1.y = 153;
arco2.x = 185;
arco2.y = 115;
arco3.x = 150;
arco3.y = 80;
vermelho.x = 255;
vermelho.y = 202;
hit1.x = 260;
hit1.y = 240;
hit1.alpha = 0;
hit2.x = 260;
hit2.y = 280;
hit2.alpha = 0;
hit3.x = 260;
hit3.y = 315;
hit3.alpha = 0;
stage.addEventListener(Event.ENTER_FRAME, goTime);
stage.addEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);
stage.addEventListener(MouseEvent.MOUSE_UP, fimDrag);
barra.addEventListener(Event.ENTER_FRAME, puzzlePlay);
function inicioDrag(e:MouseEvent)
{
barra.startDrag();
}
function fimDrag(e:MouseEvent)
{
barra.stopDrag();
}
function puzzlePlay(e:Event)
{
lHit = arco1.hitTestPoint(barra.x, barra.y, true)
arco2.hitTestPoint(barra.x, barra.y, true)
arco3.hitTestPoint(barra.x, barra.y, true);
rHit = arco1.hitTestPoint((barra.x + barra.width), barra.y, true)
arco2.hitTestPoint((barra.x + barra.width), barra.y, true)
arco3.hitTestPoint((barra.x + barra.width), barra.y, true);
if(lHit
rHit)
{
barra.x = 400;
barra.y = 300;
barra.stopDrag();
//trace(hitTestPoint);
}
if(barra.hitTestObject(hit1))
{
arco1.stop();
}
if(barra.hitTestObject(hit2))
{
arco2.stop();
}
if(barra.hitTestObject(hit3))
{
arco3.stop();
}
//VITORIA
if(barra.hitTestObject(vermelho))
{
//gotoAndStop(3);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag);
barra.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
removeChild(barra);
removeChild(hit1);
removeChild(hit2);
removeChild(hit3);
removeChild(arco1);
removeChild(arco2);
removeChild(arco3);
removeChild(vermelho);
removeChild(fundopuzzle1);*/
//actualMap=2;
//n=3;*/
/////////////////////
//GENERATE MAP AGAIN!!!!
//////////////////////
createMap(tileMap101);
createPlayer(posx,posy);
//createDetective(posdx,posdy);
actualMap = 2;
for(var aa=0;aa
{
allMap[aa].x += 140;
allMap[aa].y += 50;
}
/*}
}
////////////////////////////////////
//TIME!!!
////////////////////////////
function goTime(e:Event)
{
var textpuzzle1:Textpuzzle1=new Textpuzzle1;
addChild(textpuzzle1);
textpuzzle1.x=300;
textpuzzle1.y=50;
timeBox.text = String(cont);
ticks++;
if(ticks>=24)
{
ticks = 0;
cont--;
}
}
//DERROTA
if(cont <= 0)
{
gotoAndStop(2);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag);
barra.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
removeChild(barra);
removeChild(hit1);
removeChild(hit2);
removeChild(hit3);
removeChild(arco1);
removeChild(arco2);
removeChild(arco3);
removeChild(vermelho);
removeChild(fundopuzzle1);
//trace(cont);
//}
}*/
//////////////////////////////////////////////////////////////////////////////
}
if(n==3)
{
createMap(tileMap2);
createPlayer(posx,posy);
//removeChild(detective);
//detective=null;
actualMap = 3;
for(var b=0;b
{
allMap[b].x += -70;
allMap[b].y += -80;
}
}
if(n==4)
{
createMap(tileMap3);
createPlayer(posx,posy);
actualMap = 4;
for(var c=0;c
{
allMap[c].x += -60;
allMap[c].y += -160;
}
}
if(n==5)
{
//////////////////////////////////////////
//PUZZLE 2!!!!!
///////////////////////////////////////////
createMap(tileMap303);
createPlayer(posx,posy);
actualMap = 5;
for(var ca=0;ca
{
allMap[ca].x += -900;
allMap[ca].y += -180;
}
}
if(n==6)
{
createMap(tileMap4);
createPlayer(posx,posy);
actualMap = 6;
for(var d=0;d
{
allMap[d].x += 60;
allMap[d].y += -40;
}
}
if(n==7)
{
createMap(tileMap5);
createPlayer(posx,posy);
actualMap = 7;
for(var e=0;e
{
allMap[e].x += 160;
allMap[e].y += -160;
}
}
if(n==8)
{
////////////////////////////////
//PUZZLE 3!!!!!!!!!!!
////////////////////////////////
/*var signal1:Signal1 = new Signal1();
var signal2:Signal2 = new Signal2();
var signal3:Signal3 = new Signal3();
var signal4:Signal4 = new Signal4();
var box1:Box1 = new Box1();
var box2:Box2 = new Box2();
var box3:Box3 = new Box3();
var box4:Box4 = new Box4();
var num1:Num1 = new Num1();
var num2:Num2 = new Num2();
var num3:Num3 = new Num3();
var num4:Num4 = new Num4();
var num5:Num5 = new Num5();
var num6:Num6 = new Num6();
var num7:Num7 = new Num7();
var num8:Num8 = new Num8();
var num9:Num9 = new Num9();
var num0:Num0 = new Num0();
var ok1:Boolean = false;
var ok2:Boolean = false;
var ok3:Boolean = false;
var ok4:Boolean = false;
var ticks:int = 0;
var cont:int = 30;
addChild(signal1);
addChild(signal2);
addChild(signal3);
addChild(signal4);
addChild(box1);
addChild(box2);
addChild(box3);
addChild(box4);
addChild(num1);
addChild(num2);
addChild(num3);
addChild(num4);
addChild(num5);
addChild(num6);
addChild(num7);
addChild(num8);
addChild(num9);
addChild(num0);
box1.x = 100;
box1.y = 67;
box2.x = 100;
box2.y = 135;
box3.x = 100;
box3.y = 203;
box4.x = 100;
box4.y = 270;
signal1.x = 50;
signal1.y = 67;
signal2.x = 50;
signal2.y = 135;
signal3.x = 50;
signal3.y = 203;
signal4.x = 50;
signal4.y = 270;
num1.x = 420;
num1.y = 20;
num2.x = 420;
num2.y = 70;
num3.x = 420;
num3.y = 120;
num4.x = 420;
num4.y = 170;
num5.x = 420;
num5.y = 220;
num6.x = 480;
num6.y = 20;
num7.x = 480;
num7.y = 70;
num8.x = 480;
num8.y = 120;
num9.x = 480;
num9.y = 170;
num0.x = 480;
num0.y = 220;
num1.addEventListener(MouseEvent.MOUSE_DOWN, goDrag1);
num1.addEventListener(MouseEvent.MOUSE_UP, dontDrag1);
num2.addEventListener(MouseEvent.MOUSE_DOWN, goDrag2);
num2.addEventListener(MouseEvent.MOUSE_UP, dontDrag2);
num3.addEventListener(MouseEvent.MOUSE_DOWN, goDrag3);
num3.addEventListener(MouseEvent.MOUSE_UP, dontDrag3);
num4.addEventListener(MouseEvent.MOUSE_DOWN, goDrag4);
num4.addEventListener(MouseEvent.MOUSE_UP, dontDrag4);
num5.addEventListener(MouseEvent.MOUSE_DOWN, goDrag5);
num5.addEventListener(MouseEvent.MOUSE_UP, dontDrag5);
num6.addEventListener(MouseEvent.MOUSE_DOWN, goDrag6);
num6.addEventListener(MouseEvent.MOUSE_UP, dontDrag6);
num7.addEventListener(MouseEvent.MOUSE_DOWN, goDrag7);
num7.addEventListener(MouseEvent.MOUSE_UP, dontDrag7);
num8.addEventListener(MouseEvent.MOUSE_DOWN, goDrag8);
num8.addEventListener(MouseEvent.MOUSE_UP, dontDrag8);
num9.addEventListener(MouseEvent.MOUSE_DOWN, goDrag9);
num9.addEventListener(MouseEvent.MOUSE_UP, dontDrag9);
num0.addEventListener(MouseEvent.MOUSE_DOWN, goDrag0);
num0.addEventListener(MouseEvent.MOUSE_UP, dontDrag0);
stage.addEventListener(Event.ENTER_FRAME, puzzlePlay);
stage.addEventListener(Event.ENTER_FRAME, goTime);
function goDrag1(e:MouseEvent)
{
num1.startDrag();
}
function goDrag2(e:MouseEvent)
{
num2.startDrag();
}
function goDrag3(e:MouseEvent)
{
num3.startDrag();
}
function goDrag4(e:MouseEvent)
{
num4.startDrag();
}
function goDrag5(e:MouseEvent)
{
num5.startDrag();
}
function goDrag6(e:MouseEvent)
{
num6.startDrag();
}
function goDrag7(e:MouseEvent)
{
num7.startDrag();
}
function goDrag8(e:MouseEvent)
{
num8.startDrag();
}
function goDrag9(e:MouseEvent)
{
num9.startDrag();
}
function goDrag0(e:MouseEvent)
{
num0.startDrag();
}
function dontDrag1(e:MouseEvent)
{
num1.stopDrag();
}
function dontDrag2(e:MouseEvent)
{
num2.stopDrag();
}
function dontDrag3(e:MouseEvent)
{
num3.stopDrag();
}
function dontDrag4(e:MouseEvent)
{
num4.stopDrag();
}
function dontDrag5(e:MouseEvent)
{
num5.stopDrag();
}
function dontDrag6(e:MouseEvent)
{
num6.stopDrag();
}
function dontDrag7(e:MouseEvent)
{
num7.stopDrag();
}
function dontDrag8(e:MouseEvent)
{
num8.stopDrag();
}
function dontDrag9(e:MouseEvent)
{
num9.stopDrag();
}
function dontDrag0(e:MouseEvent)
{
num0.stopDrag();
}
function puzzlePlay(e:Event)
{
if(num1.hitTestObject(box1))
{
signal1.gotoAndStop(2);
ok1 = true;
}
else
{
signal1.gotoAndStop(1);
ok1 = false;
}
if(num8.hitTestObject(box2))
{
signal2.gotoAndStop(2);
ok2 = true;
}
else
{
signal2.gotoAndStop(1);
ok2 = false;
}
if(num6.hitTestObject(box3))
{
signal3.gotoAndStop(2);
ok3 = true;
}
else{signal3.gotoAndStop(1);
ok3 = false;
}
if(num2.hitTestObject(box4))
{
signal4.gotoAndStop(2);
ok4 = true;
}
else
{
signal4.gotoAndStop(1);
ok4 = false;
}
//VITORIA
if(ok1 && ok2 && ok3 && ok4)
{
//gotoAndStop(2);
num1.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag1);
num1.removeEventListener(MouseEvent.MOUSE_UP, dontDrag1);
num2.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag2);
num2.removeEventListener(MouseEvent.MOUSE_UP, dontDrag2);
num3.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag3);
num3.removeEventListener(MouseEvent.MOUSE_UP, dontDrag3);
num4.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag4);
num4.removeEventListener(MouseEvent.MOUSE_UP, dontDrag4);
num5.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag5);
num5.removeEventListener(MouseEvent.MOUSE_UP, dontDrag5);
num6.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag6);
num6.removeEventListener(MouseEvent.MOUSE_UP, dontDrag6);
num7.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag7);
num7.removeEventListener(MouseEvent.MOUSE_UP, dontDrag7);
num8.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag8);
num8.removeEventListener(MouseEvent.MOUSE_UP, dontDrag8);
num9.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag9);
num9.removeEventListener(MouseEvent.MOUSE_UP, dontDrag9);
num0.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag0);
num0.removeEventListener(MouseEvent.MOUSE_UP, dontDrag0);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
removeChild(signal1);
removeChild(signal2);
removeChild(signal3);
removeChild(signal4);
removeChild(box1);
removeChild(box2);
removeChild(box3);
removeChild(box4);
removeChild(num1);
removeChild(num2);
removeChild(num3);
removeChild(num4);
removeChild(num5);
removeChild(num6);
removeChild(num7);
removeChild(num8);
removeChild(num9);
removeChild(num0);
*/
createMap(tileMap505);
createPlayer(posx,posy);
actualMap = 8;
for(var ea=0;ea
{
allMap[ea].x += -1560;
allMap[ea].y += -300;
}
/*}
}
function goTime(e:Event)
{
timeBox.text = String(cont);
ticks++;
if(ticks >= 24)
{
ticks = 0;
cont--;
}
//DERROTA
if(cont <= 0)
{
//gotoAndStop(3)
num1.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag1);
num1.removeEventListener(MouseEvent.MOUSE_UP, dontDrag1);
num2.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag2);
num2.removeEventListener(MouseEvent.MOUSE_UP, dontDrag2);
num3.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag3);
num3.removeEventListener(MouseEvent.MOUSE_UP, dontDrag3);
num4.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag4);
num4.removeEventListener(MouseEvent.MOUSE_UP, dontDrag4);
num5.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag5);
num5.removeEventListener(MouseEvent.MOUSE_UP, dontDrag5);
num6.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag6);
num6.removeEventListener(MouseEvent.MOUSE_UP, dontDrag6);
num7.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag7);
num7.removeEventListener(MouseEvent.MOUSE_UP, dontDrag7);
num8.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag8);
num8.removeEventListener(MouseEvent.MOUSE_UP, dontDrag8);
num9.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag9);
num9.removeEventListener(MouseEvent.MOUSE_UP, dontDrag9);
num0.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag0);
num0.removeEventListener(MouseEvent.MOUSE_UP, dontDrag0);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
removeChild(signal1);
removeChild(signal2);
removeChild(signal3);
removeChild(signal4);
removeChild(box1);
removeChild(box2);
removeChild(box3);
removeChild(box4);
removeChild(num1);
removeChild(num2);
removeChild(num3);
removeChild(num4);
removeChild(num5);
removeChild(num6);
removeChild(num7);
removeChild(num8);
removeChild(num9);
removeChild(num0);
}
}*/
}
if(n==9)
{
createMap(tileMap6);
createPlayer(posx,posy);
actualMap = 9;
for(var f=0;f
{
allMap[f].x += 120;
allMap[f].y += -40;
}
}
if(n==10)
{
createMap(tileMap7);
createPlayer(posx,posy);
actualMap = 10;
for(var g=0;g
{
allMap[g].x += 120;
allMap[g].y += -160;
}
}
if(n==11)
{
////////////////////////////////
//PUZZLE 4!!!!!!!!!!!
////////////////////////////////
var lHit33:Boolean;
var rHit33:Boolean;
var barra3:Barra3 = new Barra3();
var hit13:Hit13 = new Hit13();
var hit23:Hit23 = new Hit23();
var hit33:Hit33 = new Hit33();
var hit43:Hit43 = new Hit43();
var hit53:Hit53 = new Hit53();
var arco13:Arco13 = new Arco13();
var arco23:Arco23 = new Arco23();
var arco33:Arco33 = new Arco33();
var arco44:Arco43 = new Arco43();
var arco53:Arco53 = new Arco53();
var vermelho3:Vermelho3 = new Vermelho3();
var ticks3:int = 0;
var cont3:int = 60;
addChild(barra3);
addChild(hit13);
addChild(hit23);
addChild(hit33);
addChild(hit43);
addChild(hit53);
addChild(arco13);
addChild(arco23);
addChild(arco33);
addChild(arco44);
addChild(arco53);
addChild(vermelho3);
barra3.x = 400;
barra3.y = 300;
arco13.x = 171;// 222;
arco13.y = 58;// 153;
arco23.x = 136;// 185;
arco23.y = 20;// 115;
arco33.x = 101;// 150;
arco33.y = -13;// 80;
arco44.x = 57;// 150;
arco44.y = -55;// 80;
arco53.x = 19;// 150;
arco53.y = -95;// 80;
vermelho3.x = 205;
vermelho3.y = 109;
hit13.x = 209;
hit13.y = 145;
hit13.alpha = 0;
hit23.x = 209;
hit23.y = 185;
hit23.alpha = 0;
hit33.x = 209;
hit33.y = 220;
hit33.alpha = 0;
hit43.x = 209;
hit43.y = 260;
hit43.alpha = 0;
hit53.x = 209;
hit53.y = 300;
hit53.alpha = 0;
stage.addEventListener(Event.ENTER_FRAME, goTime3);
stage.addEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);
stage.addEventListener(MouseEvent.MOUSE_UP, fimDrag3);
barra3.addEventListener(Event.ENTER_FRAME, puzzlePlay3);
function inicioDrag3(e:MouseEvent)
{barra3.startDrag();}
function fimDrag3(e:MouseEvent)
{barra3.stopDrag();}
function puzzlePlay3(e:Event){
lHit33 = arco13.hitTestPoint(barra3.x, barra3.y, true)
arco23.hitTestPoint(barra3.x, barra3.y, true)
arco33.hitTestPoint(barra3.x, barra3.y, true)
arco44.hitTestPoint(barra3.x, barra3.y, true)
arco53.hitTestPoint(barra3.x, barra3.y, true);
rHit33 = arco13.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco23.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco33.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco44.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco53.hitTestPoint((barra3.x + barra3.width), barra3.y, true);
if(lHit33
rHit33){
barra3.x = 400;
barra3.y = 300;
barra3.stopDrag();
//trace(hitTestPoint);
}
if(barra3.hitTestObject(hit13)){
arco13.stop();}
if(barra3.hitTestObject(hit23)){
arco23.stop();}
if(barra3.hitTestObject(hit33)){
arco33.stop();}
if(barra3.hitTestObject(hit43)){
arco44.stop();}
if(barra3.hitTestObject(hit53)){
arco53.stop();}
//VITORIA
if(barra3.hitTestObject(vermelho3)){
gotoAndStop(3);
createMap(tileMap707);
createPlayer(posx,posy);
actualMap = 11;
for(var ga=0;ga
{
allMap[ga].x += -480;
allMap[ga].y += -440;
}
stage.removeEventListener(Event.ENTER_FRAME, goTime3);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag3);
barra3.removeEventListener(Event.ENTER_FRAME, puzzlePlay3);
removeChild(barra3);
removeChild(hit13);
removeChild(hit23);
removeChild(hit33);
removeChild(hit43);
removeChild(hit53);
removeChild(arco13);
removeChild(arco23);
removeChild(arco33);
removeChild(arco44);
removeChild(arco53);
removeChild(vermelho3);}
}
function goTime3(e:Event){
timeBox3.text = String(cont3);
ticks3++;
if(ticks3 >= 24){
ticks3 = 0;
cont3--;
}
//DERROTA
if(cont3 <= 0){
gotoAndStop(2);
stage.removeEventListener(Event.ENTER_FRAME, goTime3);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag3);
barra3.removeEventListener(Event.ENTER_FRAME, puzzlePlay3);
removeChild(barra3);
removeChild(hit13);
removeChild(hit23);
removeChild(hit33);
removeChild(hit43);
removeChild(hit53);
removeChild(arco13);
removeChild(arco23);
removeChild(arco33);
removeChild(arco44);
removeChild(arco53);
removeChild(vermelho3);
//trace(cont3);
}
}
}
if(n==12)
{
createMap(tileMap8);
createPlayer(posx,posy);
actualMap = 12;
for(var h=0;h
{
allMap[h].x += 120;
allMap[h].y += 0;
}
}
if(n==13)
{
createMap(tileMap9);
createPlayer(posx,posy);
actualMap = 13;
for(var i=0;i
{
allMap[i].x += 120;
allMap[i].y += -160;
}
}
if(n==14)
{
////////////////////////////////
//PUZZLE 5!!!!!!!!!!!
////////////////////////////////
createMap(tileMap909);
createPlayer(posx,posy);
actualMap = 14;
for(var ia=0;ia
{
allMap[ia].x += -320;
allMap[ia].y += -640;
}
}
if(n==15)
{
createMap(tileMap10);
createPlayer(posx,posy);
actualMap = 15;
for(var j=0;j
{
allMap[j].x += -240;
allMap[j].y += 120;
}
}
if(n==16)
{
createMap(tileMap11);
createPlayer(posx,posy);
actualMap = 16;
for(var ja=0;ja
{
allMap[ja].x += -240;
allMap[ja].y += 120;
}
}
if(n==17)
{
////////////////////////////////
//PUZZLE 6!!!!!!!!!!!
////////////////////////////////
var signal122:Signal122 = new Signal122();
var signal222:Signal222 = new Signal222();
var signal322:Signal322 = new Signal322();
var signal422:Signal422 = new Signal422();
var box122:Box122 = new Box122();
var box222:Box222 = new Box222();
var box322:Box322 = new Box322();
var box422:Box422 = new Box422();
var num122:Num122 = new Num122();
var num222:Num222 = new Num222();
var num322:Num322 = new Num322();
var num422:Num422 = new Num422();
var num522:Num522 = new Num522();
var num622:Num622 = new Num622();
var num722:Num722 = new Num722();
var num822:Num822 = new Num822();
var num922:Num922 = new Num922();
var num022:Num022 = new Num022();
var ok122:Boolean = false;
var ok222:Boolean = false;
var ok322:Boolean = false;
var ok422:Boolean = false;
var ticks22:int = 0;
var cont22:int = 20;
addChild(signal122);
addChild(signal222);
addChild(signal322);
addChild(signal422);
addChild(box122);
addChild(box222);
addChild(box322);
addChild(box422);
addChild(num122);
addChild(num222);
addChild(num322);
addChild(num422);
addChild(num522);
addChild(num622);
addChild(num722);
addChild(num822);
addChild(num922);
addChild(num022);
box122.x = 100;
box122.y = 67;
box222.x = 100;
box222.y = 135;
box322.x = 100;
box322.y = 203;
box422.x = 100;
box422.y = 270;
signal122.x = 50;
signal122.y = 67;
signal222.x = 50;
signal222.y = 135;
signal322.x = 50;
signal322.y = 203;
signal422.x = 50;
signal422.y = 270;
num122.x = 420;
num122.y = 20;
num222.x = 420;
num222.y = 70;
num322.x = 420;
num322.y = 120;
num422.x = 420;
num422.y = 170;
num522.x = 420;
num522.y = 220;
num622.x = 480;
num622.y = 20;
num722.x = 480;
num722.y = 70;
num822.x = 480;
num822.y = 120;
num922.x = 480;
num922.y = 170;
num022.x = 480;
num022.y = 220;
num122.addEventListener(MouseEvent.MOUSE_DOWN, goDrag122);
num122.addEventListener(MouseEvent.MOUSE_UP, dontDrag122);
num222.addEventListener(MouseEvent.MOUSE_DOWN, goDrag222);
num222.addEventListener(MouseEvent.MOUSE_UP, dontDrag222);
num322.addEventListener(MouseEvent.MOUSE_DOWN, goDrag322);
num322.addEventListener(MouseEvent.MOUSE_UP, dontDrag322);
num422.addEventListener(MouseEvent.MOUSE_DOWN, goDrag422);
num422.addEventListener(MouseEvent.MOUSE_UP, dontDrag422);
num522.addEventListener(MouseEvent.MOUSE_DOWN, goDrag522);
num522.addEventListener(MouseEvent.MOUSE_UP, dontDrag522);
num622.addEventListener(MouseEvent.MOUSE_DOWN, goDrag622);
num622.addEventListener(MouseEvent.MOUSE_UP, dontDrag622);
num722.addEventListener(MouseEvent.MOUSE_DOWN, goDrag722);
num722.addEventListener(MouseEvent.MOUSE_UP, dontDrag722);
num822.addEventListener(MouseEvent.MOUSE_DOWN, goDrag822);
num822.addEventListener(MouseEvent.MOUSE_UP, dontDrag822);
num922.addEventListener(MouseEvent.MOUSE_DOWN, goDrag922);
num922.addEventListener(MouseEvent.MOUSE_UP, dontDrag922);
num022.addEventListener(MouseEvent.MOUSE_DOWN, goDrag022);
num022.addEventListener(MouseEvent.MOUSE_UP, dontDrag022);
stage.addEventListener(Event.ENTER_FRAME, puzzlePlay22);
stage.addEventListener(Event.ENTER_FRAME, goTime22);
function goDrag122(e:MouseEvent){
num122.startDrag();}
function goDrag222(e:MouseEvent){
num222.startDrag();}
function goDrag322(e:MouseEvent){
num322.startDrag();}
function goDrag422(e:MouseEvent){
num422.startDrag();}
function goDrag522(e:MouseEvent){
num522.startDrag();}
function goDrag622(e:MouseEvent){
num622.startDrag();}
function goDrag722(e:MouseEvent){
num722.startDrag();}
function goDrag822(e:MouseEvent){
num822.startDrag();}
function goDrag922(e:MouseEvent){
num922.startDrag();}
function goDrag022(e:MouseEvent){
num022.startDrag();}
function dontDrag122(e:MouseEvent){
num122.stopDrag();}
function dontDrag222(e:MouseEvent){
num222.stopDrag();}
function dontDrag322(e:MouseEvent){
num322.stopDrag();}
function dontDrag422(e:MouseEvent){
num422.stopDrag();}
function dontDrag522(e:MouseEvent){
num522.stopDrag();}
function dontDrag622(e:MouseEvent){
num622.stopDrag();}
function dontDrag722(e:MouseEvent){
num722.stopDrag();}
function dontDrag822(e:MouseEvent){
num822.stopDrag();}
function dontDrag922(e:MouseEvent){
num922.stopDrag();}
function dontDrag022(e:MouseEvent){
num022.stopDrag();}
function puzzlePlay22(e:Event){
if(num922.hitTestObject(box122)){
signal122.gotoAndStop(2);
ok122 = true;}
else{signal122.gotoAndStop(1);
ok122 = false;}
if(num722.hitTestObject(box222)){
signal222.gotoAndStop(2);
ok222 = true;}
else{signal222.gotoAndStop(1);
ok222 = false;}
if(num622.hitTestObject(box322)){
signal322.gotoAndStop(2);
ok322 = true;}
else{signal322.gotoAndStop(1);
ok322 = false;}
if(num222.hitTestObject(box422)){
signal422.gotoAndStop(2);
ok422 = true;}
else{signal422.gotoAndStop(1);
ok422 = false;}
//VITORIA
if(ok122 && ok222 && ok322 && ok422){
/*createMap(tileMap11);
createPlayer(posx,posy);
actualMap = 16;
for(var k=0;k
{
allMap[k].x += -920;
allMap[k].y += 120;
}*/
//gotoAndStop(2);
num122.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag122);
num122.removeEventListener(MouseEvent.MOUSE_UP, dontDrag122);
num222.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag222);
num222.removeEventListener(MouseEvent.MOUSE_UP, dontDrag222);
num322.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag322);
num322.removeEventListener(MouseEvent.MOUSE_UP, dontDrag322);
num422.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag422);
num422.removeEventListener(MouseEvent.MOUSE_UP, dontDrag422);
num522.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag522);
num522.removeEventListener(MouseEvent.MOUSE_UP, dontDrag522);
num622.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag622);
num622.removeEventListener(MouseEvent.MOUSE_UP, dontDrag622);
num722.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag722);
num722.removeEventListener(MouseEvent.MOUSE_UP, dontDrag722);
num822.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag822);
num822.removeEventListener(MouseEvent.MOUSE_UP, dontDrag822);
num922.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag922);
num922.removeEventListener(MouseEvent.MOUSE_UP, dontDrag922);
num022.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag022);
num022.removeEventListener(MouseEvent.MOUSE_UP, dontDrag022);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay22);
stage.removeEventListener(Event.ENTER_FRAME, goTime22);
removeChild(signal122);
removeChild(signal222);
removeChild(signal322);
removeChild(signal422);
removeChild(box122);
removeChild(box222);
removeChild(box322);
removeChild(box422);
removeChild(num122);
removeChild(num222);
removeChild(num322);
removeChild(num422);
removeChild(num522);
removeChild(num622);
removeChild(num722);
removeChild(num822);
removeChild(num922);
removeChild(num022);
credits.x=40;
credits.y=0;
stage.addEventListener(Event.ENTER_FRAME,goCredits);
function goCredits(e:Event)
{
credits.y-=3;
}
}
}
function goTime22(e:Event){
timeBox22.text = String(cont22);
ticks22++;
if(ticks22 >= 24){
ticks22 = 0;
cont22--;
}
//DERROTA
if(cont22 <= 0){
gotoAndStop(3)
num122.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag122);
num122.removeEventListener(MouseEvent.MOUSE_UP, dontDrag122);
num222.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag222);
num222.removeEventListener(MouseEvent.MOUSE_UP, dontDrag222);
num322.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag322);
num322.removeEventListener(MouseEvent.MOUSE_UP, dontDrag322);
num422.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag422);
num422.removeEventListener(MouseEvent.MOUSE_UP, dontDrag422);
num522.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag522);
num522.removeEventListener(MouseEvent.MOUSE_UP, dontDrag522);
num622.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag622);
num622.removeEventListener(MouseEvent.MOUSE_UP, dontDrag622);
num722.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag722);
num722.removeEventListener(MouseEvent.MOUSE_UP, dontDrag722);
num822.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag822);
num822.removeEventListener(MouseEvent.MOUSE_UP, dontDrag822);
num922.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag922);
num922.removeEventListener(MouseEvent.MOUSE_UP, dontDrag922);
num022.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag022);
num022.removeEventListener(MouseEvent.MOUSE_UP, dontDrag022);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay22);
stage.removeEventListener(Event.ENTER_FRAME, goTime22);
removeChild(signal122);
removeChild(signal222);
removeChild(signal322);
removeChild(signal422);
removeChild(box122);
removeChild(box222);
removeChild(box322);
removeChild(box422);
removeChild(num122);
removeChild(num222);
removeChild(num322);
removeChild(num422);
removeChild(num522);
removeChild(num622);
removeChild(num722);
removeChild(num822);
removeChild(num922);
removeChild(num022);}
}
}
}
/////////////////////////////////////
//MAP DELETION!!!
///////////////////////////////////
function deleteObj()
{
for(var i:int=0;i
{
removeChild(allMap[i]);
}
removeChild(player);
//removeChild(detective);
allMap = null;
doorMap=null;
player=null;
//detective=null;
}
///////////////////////////////////////
//definicao das variaveis
var isLeft:Boolean = false;
var isRight:Boolean = false;
var isUp:Boolean = false;
var isDown:Boolean = false;
var isSpace:Boolean = false;
var walkTo:String;
var velX:Number;
var velY:Number;
stage.addEventListener(Event.ENTER_FRAME,gamePlay);
stage.addEventListener(KeyboardEvent.KEY_DOWN,cDown);
stage.addEventListener(KeyboardEvent.KEY_UP,cUp);
////////////////////////////////////////////
/*detective.addEventListener(Event.ENTER_FRAME,chase);
function chase(e:Event)
{
//detective moving
if(detective.x
{
detective.x+=detectivespeed;
}
if(detective.y
{
detective.y+=detectivespeed;
}
if(detective.x>player.x)
{
detective.x-=detectivespeed;
}
if(detective.y>player.y)
{
detective.y-=detectivespeed;
}
}
*/
////////////////////////////////////////////////
//G PLAY!!!
////////////////////////////////////////////////
function gamePlay(e:Event)//looping do game
{
//player moving
if(isLeft)
{
walkTo = "left";
}
if(isRight)
{
walkTo = "right";
}
if(isUp)
{
walkTo = "up";
}
if(isDown)
{
walkTo = "down";
}
if(walkTo == "left")
{
velY = 0;
if(isSpace)
{
velX=boosterspeed;
}
if(!isSpace)
{
velX=playerspeed;
}
}
if(walkTo == "right")
{
velY = 0;
if(isSpace)
{
velX=-boosterspeed;
}
if(!isSpace)
{
velX=-playerspeed;
}
}
if(walkTo == "up")
{
velX = 0;
if(isSpace)
{
velY=boosterspeed;
}
if(!isSpace)
{
velY=playerspeed;
}
}
if(walkTo == "down")
{
velX = 0;
if(isSpace)
{
velY=-boosterspeed;
}
if(!isSpace)
{
velY=-playerspeed;
}
}
if(!isLeft && !isRight && !isUp &&!isDown)
{
velX = 0;
velY = 0;
}
for(var j=0;j
{
allMap[j].x += velX;
allMap[j].y += velY;
}
///////////////////////////////////////////////////
//Collision Map!!!;
for(var i=0; i
{
var box = collisionMap[i];
var playerRight:Number = player.x + player.width/2; //grava as posicoes de cada lado do personagem
var playerLeft:Number = player.x - player.width/2;
var playerUp:Number = player.y - player.height;
var playerDown:Number = player.y;
/*var detectiveRight:Number = detective.x + detective.width/2; //grava as posicoes de cada lado do personagem
var detectiveLeft:Number = detective.x - detective.width/2;
var detectiveUp:Number = detective.y - detective.height;
var detectiveDown:Number = detective.y;*/
var oldBoxRight:Number = allMapOldX[i] + box.width/2; //grava as posicoes de cada lado de cada parede
var oldBoxLeft:Number = allMapOldX[i] - box.width/2;
var oldBoxUp:Number = allMapOldY[i] - box.height/2;
var oldBoxDown:Number = allMapOldY[i] + box.height/2;
//player
if(box.hitTestObject(player))//quando há colisão com alguma parede
{
var diffXp:Number;
var diffYp:Number;
var kp:int;
if(walkTo == "right" && (player.x - player.width/2) != oldBoxRight && (player.y - player.height) != oldBoxDown && (player.y) != oldBoxUp)
//verifica para que lado o usuário esta clicando e verifica a posicao anterior do personagem
{
diffXp = - box.x + playerRight+box.width/2; //calcula a diferença entre a posicao do personagem e a da tela
for(kp=0;kp
allMap[kp].x += diffXp;
}
}
if(walkTo == "left" && (player.x + player.width/2) != oldBoxLeft && (player.y - player.height) != oldBoxDown && (player.y) != oldBoxUp){
diffXp = -box.x + playerLeft-box.width/2;
for(kp=0;kp
{
allMap[kp].x += diffXp;
}
}
if(walkTo == "up" && (player.y + player.height) != oldBoxDown && (player.x - player.width/2) != oldBoxRight && (player.x + player.width/2) != oldBoxLeft)
{
diffYp = -box.y + playerUp-box.height/2;
for(kp=0;kp
{
allMap[kp].y += diffYp;
}
}
if(walkTo == "down" && (player.x - player.width/2) != oldBoxRight && (player.x + player.width/2) != oldBoxLeft)
{
diffYp = -box.y + playerDown+box.height/2;
for(kp=0;kp
{
allMap[kp].y += diffYp;
}
}
}
//detective
/*if(box.hitTestObject(detective))//quando há colisão com alguma parede
{
var diffXd:Number;
var diffYd:Number;
var kd:int;
if(walkTo == "right" && (detective.x - detective.width/2) != oldBoxRight && (detective.y - detective.height) != oldBoxDown && (detective.y) != oldBoxUp)
//verifica para que lado o usuário esta clicando e verifica a posicao anterior do personagem
{
diffXd = - box.x + detectiveRight+box.width/2; //calcula a diferença entre a posicao do personagem e a da tela
for(kd=0;kd
allMap[kd].x += diffXd;
}
}
if(walkTo == "left" && (detective.x + detective.width/2) != oldBoxLeft && (detective.y - detective.height) != oldBoxDown && (detective.y) != oldBoxUp){
diffXd = -box.x + detectiveLeft-box.width/2;
for(kd=0;kd
{
allMap[kd].x += diffXd;
}
}
if(walkTo == "up" && (detective.y + detective.height) != oldBoxDown && (detective.x - detective.width/2) != oldBoxRight && (detective.x + detective.width/2) != oldBoxLeft)
{
diffYd = -box.y + detectiveUp-box.height/2;
for(kd=0;kd
{
allMap[kd].y += diffYd;
}
}
if(walkTo == "down" && (detective.x - detective.width/2) != oldBoxRight && (detective.x + detective.width/2) != oldBoxLeft)
{
diffYd = -box.y + detectiveDown+box.height/2;
for(kd=0;kd
{
allMap[kd].y += diffYd;
}
}
}*/
allMapOldX[i] = box.x; //grava a posicao anterior de cada parede
allMapOldY[i] = box.y;
}
/////////////////////////////////////////////////////
//Verificação com Door!!!:
for(var l=0; l
{
var door = doorMap[l];
if(door.hitTestObject(player))//quando há colisão com alguma parede
{
deleteObj();
if(actualMap==1)
{
initializeMap(2,stage.stageWidth/2,stage.stageHeight/2,100,100);
playerspeed=5;
boosterspeed=10;
//collisionMap=null;
//doorMap=null;
//allMap=null;
//allMapOldX=null;
//allMapOldY=null;
//actualMap=null;
//tile.visible=false;
//gotoAndStop(2);
return;
}
if(actualMap==2)
{
initializeMap(3,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==3)
{
initializeMap(4,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==4)
{
initializeMap(5,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==5)
{
initializeMap(6,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==6)
{
initializeMap(7,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==7)
{
initializeMap(8,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==8)
{
initializeMap(9,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==9)
{
initializeMap(10,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==10)
{
initializeMap(11,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==11)
{
initializeMap(12,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==12)
{
initializeMap(13,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==13)
{
initializeMap(14,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==14)
{
initializeMap(15,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==15)
{
initializeMap(16,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==16)
{
initializeMap(17,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==17)
{
initializeMap(1,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
}
}
//tile type?
/*var tileSize:int=40;
var col:int=Math.ceil(player.x/tileSize);
var line:int=Math.ceil(player.y/tileSize);
var type:int=tileMap1[line][col];
if(m[i][j]==0)
{
velX=velX;
velY=velY;
}
//obstáculo(offscreen)
if(m[i][j]==1)
{
collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//porta
if(m[i][j]==2)
{
doorMap.push(tile);
}
//milho
if(m[i][j]==3)
{
velX=2;
velY=2;
}
//grama
if(m[i][j]==4)
{
}
//prédios
if(m[i][j]==5)
{
collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//banco(porta(?)
if(m[i][j]==6)
{
doorMap.push(tile);
}*/
}
///////////////////////////////////////////
//BUTTONS!!!
/////////////////
//ON!!!
////////////////
function cDown(e:KeyboardEvent)
{
var key:int = e.keyCode;
if(key==Keyboard.LEFT)
{
isLeft = true;
}
if(key==Keyboard.RIGHT)
{
isRight = true;
}
if(key==Keyboard.UP)
{
isUp = true;
}
if(key==Keyboard.DOWN)
{
isDown = true;
}
if(key==Keyboard.SPACE)
{
isSpace = true;
}
}
///////////////////////////////////////////////
/////////////////
//OFF!!!
/////////////////
function cUp(e:KeyboardEvent)
{
var key:int = e.keyCode;
if(key==Keyboard.LEFT)
{
isLeft = false;
}
if(key==Keyboard.RIGHT)
{
isRight = false;
}
if(key==Keyboard.UP)
{
isUp = false;
}
if(key==Keyboard.DOWN)
{
isDown = false;
}
if(key==Keyboard.SPACE)
{
isSpace = false;
}
}
///////////////////////////////////////
stop();
/////////////////////////////////////////////////////
//BACKG GAME!!!
////////////////////////////////
var backgroundblk:Backgroundblk = new Backgroundblk;
addChild(backgroundblk);
backgroundblk.visible=true;
/*backgroundblk.width=stage.stageWidth;
backgroundblk.height=stage.stageHeight;
*/
backgroundblk.x=stage.stageWidth/2;
backgroundblk.y=stage.stageHeight/2;
////////////////////////////////////////////
//MAP SIZE!!!!!!!
///////////////////////////////
//55W x 31H
////////////////////////////////////////////////////
//MAPS MATRIX!!!
////////////////////////////////
var tileMap1:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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Map3:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,28,29,29,29,29,29,30, 0, 0,38,39,39,39,40,38,39,39,39,40, 6, 6,38,39,39,39,40,38,40,38,39,40,38,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,22,31,31,23,31,31,24, 0, 0,32,33,41,41,34,32,41,41,41,34, 0, 0,32,41,41,41,34,32,34,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,28,29,29,30, 0,38,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40, 0,32,33,34,32,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27, 0,32,33,41,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27, 0, 0, 0, 0,38,40, 0, 0,28,29,29,29,29,29,30, 0, 0,35,36,36,36,36,37,16,17,17,18, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,28,29,29,29,29,29,30, 0, 0,38,39,39,39,40,38,39,39,39,40,52,52,38,39,39,39,40,38,40,38,39,40,38,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,22,31,31,23,31,31,24, 0, 0,32,33,41,41,34,32,41,41,41,34, 0, 0,32,41,41,41,34,32,34,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,28,29,29,30, 0,38,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40, 0,32,33,34,32,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27, 0,32,33,41,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27, 0, 0, 0, 0,38,40, 0, 0,28,29,29,29,29,29,30, 0, 0,35,36,36,36,36,37,16,17,17,18, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,25,26,26,27,29,30, 0, 0,32,34, 0, 0,25,26,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,15, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30,28,29,30,28,29,30,28,29,29,29,30, 1],
[1,42,43,43,43,43,43,44,32,33,33,33,33,34,22,23,23,23,23,23,23,24,45,46,46,46,47, 0, 0,38,39,39,39,39,39,40, 0, 0,25,26,26,26,27,25,26,27,25,26,27,25,26,26,26,27, 1],
[1,45,46,46,46,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,36,36,36,36,37, 0, 0,22,23,23,23,24,22,23,24,22,23,24,22,23,23,23,24, 1],
[1,38,39,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30, 0, 0,32,41,41,33,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1],
[1,35,36,36,36,36,36,37, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0,25,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1],
[1,35,36,36,36,36,36,37, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0,22,23,23,23,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,48,49,50,48,49,50,16,17,17,18, 0, 0,28,29,29,30, 1],
[1,32,41,41,41,41,41,34, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,45,46,47,45,46,47,13,14,14,15, 0, 0,22,23,31,24, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40,13,14,14,15, 0, 0, 0, 0, 0, 0, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0,28,29,29,29,29,30, 0, 0,38,39,39,39,39,40,13,14,14,15,17,17,17,18, 0, 0, 1],
[1,28,29,29,29,29,29,30, 0, 0,22,31,31,31,31,31,31,31,31,24, 0, 0,35,36,36,36,36,37, 0, 0,25,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,14,14,14,14,15, 0, 0, 1],
[1,25,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,36,37, 0, 0,22,31,31,31,31,24, 0, 0,32,41,41,41,41,34,10,11,11,12,20,20,20,21, 0, 0, 1],
[1,22,31,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,41,41,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
var tileMap505:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,49,49,50,38,39,39,39,39,40,28,29,29,29,29,29,29,30,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30,28,29,30,28,29,30,28,29,29,29,30, 1],
[1,42,43,43,43,43,43,44,32,33,33,33,33,34,22,23,23,23,23,23,23,24,45,46,46,46,47, 0, 0,38,39,39,39,39,39,40, 0, 0,25,26,26,26,27,25,26,27,25,26,27,25,26,26,26,27, 1],
[1,45,46,46,46,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,36,36,36,36,37, 0, 0,22,23,23,23,24,22,23,24,22,23,24,22,23,23,23,24, 1],
[1,38,39,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30, 0, 0,32,41,41,33,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,52, 1],
[1,35,36,36,36,36,36,37, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0,25,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,52, 1],
[1,35,36,36,36,36,36,37, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0,22,23,23,23,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,48,49,50,48,49,50,16,17,17,18, 0, 0,28,29,29,30, 1],
[1,32,41,41,41,41,41,34, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,45,46,47,45,46,47,13,14,14,15, 0, 0,22,23,31,24, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40,13,14,14,15, 0, 0, 0, 0, 0, 0, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0,28,29,29,29,29,30, 0, 0,38,39,39,39,39,40,13,14,14,15,17,17,17,18, 0, 0, 1],
[1,28,29,29,29,29,29,30, 0, 0,22,31,31,31,31,31,31,31,31,24, 0, 0,35,36,36,36,36,37, 0, 0,25,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,14,14,14,14,15, 0, 0, 1],
[1,25,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,36,37, 0, 0,22,31,31,31,31,24, 0, 0,32,41,41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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
///////
var tileMap7:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,50,48,50,28,29,29,29,29,29,29,29,29,30,38,39,39,39,39,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,46,46,46,47,45,47,23,23,23,31,23,31,31,31,31,24,32,33,33,41,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,50,28,30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,46,46,46,47,25,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,40,25,27, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,37,25,27, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,32,41,41,33,34,22,24, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,16,17,17,18, 0, 0,48,49,50,48,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,45,46,47,45,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,22,23,24,32,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,10,11,11,12, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,45,46,46,47, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,38,39,40, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,35,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,32,33,34, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,22,23,23,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,39,39,40, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,22,23,23,31,31,23,23,31,31,24, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,32,33,41,33,41,33,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,22,23,31,31,23,24, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
var tileMap707:Array = new Array(
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,50,48,50,28,29,29,29,29,29,29,29,29,30,38,39,39,39,39,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,46,46,46,47,45,47,23,23,23,31,23,31,31,31,31,24,32,33,33,41,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,49,49,49,50,28,30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,46,46,46,47,25,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0,52, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,40,25,27, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0,52, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,37,25,27, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,32,41,41,33,34,22,24, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,16,17,17,18, 0, 0,48,49,50,48,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,45,46,47,45,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,22,23,24,32,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0, 7, 8, 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,45,46,46,47, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,38,39,40, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,35,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,32,33,34, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,22,23,23,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,38,39,39,39,39,39,40, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0,22,23,23,31,31,23,23,31,31,24, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,35,36,36,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,32,33,41,33,41,33,34, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1],
[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,28,29,29,30, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0,28,29,29,30, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0,25,26,26,27, 0, 0,22,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,48,49,50, 0, 0,16,17,17,18, 0, 0,22,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,45,46,47, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,25,26,27, 0, 0,13,14,14,15, 0, 0,48,49,49,50, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,25,26,27, 0, 0,10,11,11,12, 0, 0,45,46,46,47, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,25,26,27, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,22,31,24, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,47, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,48,49,50,27, 0, 0,48,49,49,50, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,45,46,47,27, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,38,39,40, 0, 0,42,43,44,27, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 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 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,25,26,27, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,42,44, 0, 0,22,31,24, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,47, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,48,49,50,27, 0, 0,48,49,49,50, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0, 0, 0, 0, 0, 0,45,46,47,27, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,48,50, 0, 0,38,39,40, 0, 0,42,43,44,27, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0, 0,38,40,37, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,45,47, 0,38,39,40,34, 0,25,26,26,27,24, 0,35,36,36,36,34, 0,28,25,26,26,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,39,39,39,39,39,39,39,38,39,39,39,40, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,33,41,33,41,33,41,33,41,33,41,33,38,39,39,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 0, 0,25,26,26,26,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 0, 0,22,31,31,23,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,45,46,46,46,47, 0, 0,38,40,48,50, 0, 0, 5, 5, 5, 5, 0, 0,35,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,42,43,43,43,44, 0, 0,38,40,42,44, 0, 0, 5, 5, 5, 5, 0, 0,32,33,33,33,34, 0, 0,38,39,40, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,28,29,29,29,30, 0, 0,38,40,38,40, 0, 0, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,40, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,25,26,26,26,27, 0, 0,35,37,41,34, 0, 0, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,40, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,25,26,26,26,27, 0, 0,35,37, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,38,39,40, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0,22,23,23,23,24, 0, 0,35,37, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,37, 0, 0,28,30, 0, 0, 5, 5, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,34, 0, 0,28,30, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,35,36,37, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0,38,40, 0, 0, 0, 0, 0, 0,25,27, 0, 0, 5, 5, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0,32,34, 0, 0, 0, 0, 0, 0,25,27, 0, 0, 5, 5, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0, 0, 0, 0, 0,28,29,29,30,22,24, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,35,36,37, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,16, 0, 0, 0, 0, 0, 0,28,29,29,30, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,16,17,17,17,17,17,18, 0, 0,28,29,29,30, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,38,39,39,40, 0, 0,28,29,29,29,30, 0, 0,35,36,37, 0, 0,38,39,39,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,38,39,39,40, 0, 0,25,26,26,26,27, 0, 0,35,36,37, 0, 0,35,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0,22,31,31,31,24, 0, 0,32,33,34, 0, 0,32,33,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1,10,11,11,12,20,20,21, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
);
/////////////////////////////////////////////////////////
//old maps
/*//city 1
var tileMap1:Array = new Array(
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],
[1,0,0,0,0,1,2,3,4,5,6,0,0,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1],
[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
);
//path 1
var tileMap2:Array = new Array(
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],
[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
);*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//SPEEDS!!!
var playerspeed:int=5;
var boosterspeed:int=10;
var detectivespeed:int=0;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////
var collisionMap:Array; //array que guarda as paredes do mapa
var doorMap:Array; //array que guarda as portas do mapa
var allMap:Array; //array que guarda todas as peças do mapa
var allMapOldX:Array; //array que guarda as posicoes antigas X do mapa
var allMapOldY:Array; //array que guarda as posicoes antigas Y do mapa
var actualMap:int; //guarda o mapa em que o usuário est[a jogando
initializeMap(1,stage.stageWidth/2,stage.stageHeight/2,100,100);
//looping para criar o cenario
function createMap(m:Array)
{
collisionMap = new Array(); //array que guarda as paredes do mapa
doorMap = new Array(); //array que guarda as portas do mapa
allMap = new Array(); //array que guarda todas as peças do mapa
allMapOldX = new Array(); //array que guarda as posicoes antigas X do mapa
allMapOldY = new Array(); //array que guarda as posicoes antigas Y do mapa
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//create map
for(var j:int = 0; j<55;j++){
for(var i:int = 0; i<31;i++){
var tile:Tile = new Tile();
tile.x = tile.width/2 + tile.width*j;
tile.y = tile.height/2 + tile.height*i;
addChild(tile);
tile.gotoAndStop(m[i][j]+1);
allMap.push(tile); //guarda o objeto dentro da array allMap
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//TILE FUNCTIONS!!!!
/////////////////////////////////////////////////////////////////////
//chão cidade
if(m[i][j]==0)
{
velX=velX;
velY=velY;
}
//obstáculo(offscreen)
if(m[i][j]==1)
{
collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//porta cenario
if(m[i][j]==2)
{
//doorMap.push(tile);
}
//milho
if(m[i][j]==3)
{
}
//grama
if(m[i][j]==4)
{
}
//bloqueio campo(concreto)
if(m[i][j]==5)
{
/*collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);*/
}
//bloqueio cidade(grama)
if(m[i][j]==6)
{
}
//////////////////////////////////////////
//banco
/////////////////////////////////////////////
//portas nulas banco
if(m[i][j]==7)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==8)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==9)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//portas uteis banco
if(m[i][j]==10)
{
doorMap.push(tile);
}
if(m[i][j]==11)
{
doorMap.push(tile);
}
if(m[i][j]==12)
{
doorMap.push(tile);
}
//banco cima
if(m[i][j]==13)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==14)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==15)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//banco teto
if(m[i][j]==16)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==17)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==18)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//parede sem porta
if(m[i][j]==19)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==20)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==21)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//predio verde
/////////////////////////////////////////////
//portas predio
if(m[i][j]==22)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==23)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==24)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//janela predio
if(m[i][j]==25)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==26)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==27)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//predio teto
if(m[i][j]==28)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==29)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==30)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//parede predio
if(m[i][j]==31)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//predio amarelo
/////////////////////////////////////////////
//portas predio
if(m[i][j]==32)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==33)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==34)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//janela predio
if(m[i][j]==35)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==36)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==37)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//predio teto
if(m[i][j]==38)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==39)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==40)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//parede predio
if(m[i][j]==41)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//predio topo
/////////////////////////////////////////////
//parede predio
if(m[i][j]==42)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==43)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==44)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//janela predio
if(m[i][j]==45)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==46)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==47)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//predio teto
if(m[i][j]==48)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==49)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
if(m[i][j]==50)
{
collisionMap.push(tile);
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
///////////////////////////////////////////
//PORTAS!!!!!!
//////////////////////////////////////
//porta cenario(cimento)
if(m[i][j]==51)
{
doorMap.push(tile);
}
//porta cenario(terra)
if(m[i][j]==52)
{
doorMap.push(tile);
}
}
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHARS!!!
///////////////////////////////////////////
//cria o personagem
var player:Player;
function createPlayer(posx:Number,posy:Number)
{
player = new Player();
player.x = posx;
player.y = posy;
addChild(player);
}
//cria o detetive
/*var detective:Detective;
function createDetective(posdx:Number,posdy:Number)
{
detective = new Detective();
detective.x=posdx;
detective.y=posdy;
addChild(detective);
}*/
//stage,addEventListener(Event.ENTER_FRAME,playdetective);
/////////////////////////////////////
//NEW MAP!!!
////////////////////////////////////
function initializeMap(n:int,posx:int,posy:int,posdx:int,posdy:int)
{
if(n==1)
{
//gotoAndStop(2);
createMap(tileMap1);
createPlayer(posx,posy);
//createDetective(posdx,posdy);
actualMap = 1;
for(var a=0;a
{
allMap[a].x += 140;
allMap[a].y += -110;
}
}
if(n==2)
{
////////////////////////////////////////////////////////////////////////////
//PUZZLE 1 !!!
////////////////////////////////////////////////////////////////////
/*var fundopuzzle1:Fundopuzzle1 = new Fundopuzzle1;
addChild(fundopuzzle1);
//fundopuzzle1.visible=true;
fundopuzzle1.x=stage.stageWidth/2;
fundopuzzle1.y=stage.stageHeight/2;
var lHit:Boolean;
var rHit:Boolean;
var barra:Barra = new Barra();
var hit1:Hit1 = new Hit1();
var hit2:Hit2 = new Hit2();
var hit3:Hit3 = new Hit3();
var arco1:Arco1 = new Arco1();
var arco2:Arco2 = new Arco2();
var arco3:Arco3 = new Arco3();
var vermelho:Vermelho = new Vermelho();
var ticks:int = 0;
var cont:int = 30;
/*var textpuzzle1:Textpuzzle1=new Textpuzzle1;
addChild(textpuzzle1);
textpuzzle1.x=300;
textpuzzle1.y=50;*/
/*addChild(barra);
addChild(hit1);
addChild(hit2);
addChild(hit3);
addChild(arco1);
addChild(arco2);
addChild(arco3);
addChild(vermelho);
barra.x = 400;
barra.y = 300;
arco1.x = 222;
arco1.y = 153;
arco2.x = 185;
arco2.y = 115;
arco3.x = 150;
arco3.y = 80;
vermelho.x = 255;
vermelho.y = 202;
hit1.x = 260;
hit1.y = 240;
hit1.alpha = 0;
hit2.x = 260;
hit2.y = 280;
hit2.alpha = 0;
hit3.x = 260;
hit3.y = 315;
hit3.alpha = 0;
stage.addEventListener(Event.ENTER_FRAME, goTime);
stage.addEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);
stage.addEventListener(MouseEvent.MOUSE_UP, fimDrag);
barra.addEventListener(Event.ENTER_FRAME, puzzlePlay);
function inicioDrag(e:MouseEvent)
{
barra.startDrag();
}
function fimDrag(e:MouseEvent)
{
barra.stopDrag();
}
function puzzlePlay(e:Event)
{
lHit = arco1.hitTestPoint(barra.x, barra.y, true)
arco2.hitTestPoint(barra.x, barra.y, true)
arco3.hitTestPoint(barra.x, barra.y, true);
rHit = arco1.hitTestPoint((barra.x + barra.width), barra.y, true)
arco2.hitTestPoint((barra.x + barra.width), barra.y, true)
arco3.hitTestPoint((barra.x + barra.width), barra.y, true);
if(lHit
rHit)
{
barra.x = 400;
barra.y = 300;
barra.stopDrag();
//trace(hitTestPoint);
}
if(barra.hitTestObject(hit1))
{
arco1.stop();
}
if(barra.hitTestObject(hit2))
{
arco2.stop();
}
if(barra.hitTestObject(hit3))
{
arco3.stop();
}
//VITORIA
if(barra.hitTestObject(vermelho))
{
//gotoAndStop(3);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag);
barra.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
removeChild(barra);
removeChild(hit1);
removeChild(hit2);
removeChild(hit3);
removeChild(arco1);
removeChild(arco2);
removeChild(arco3);
removeChild(vermelho);
removeChild(fundopuzzle1);*/
//actualMap=2;
//n=3;*/
/////////////////////
//GENERATE MAP AGAIN!!!!
//////////////////////
createMap(tileMap101);
createPlayer(posx,posy);
//createDetective(posdx,posdy);
actualMap = 2;
for(var aa=0;aa
{
allMap[aa].x += 140;
allMap[aa].y += 50;
}
/*}
}
////////////////////////////////////
//TIME!!!
////////////////////////////
function goTime(e:Event)
{
var textpuzzle1:Textpuzzle1=new Textpuzzle1;
addChild(textpuzzle1);
textpuzzle1.x=300;
textpuzzle1.y=50;
timeBox.text = String(cont);
ticks++;
if(ticks>=24)
{
ticks = 0;
cont--;
}
}
//DERROTA
if(cont <= 0)
{
gotoAndStop(2);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag);
barra.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
removeChild(barra);
removeChild(hit1);
removeChild(hit2);
removeChild(hit3);
removeChild(arco1);
removeChild(arco2);
removeChild(arco3);
removeChild(vermelho);
removeChild(fundopuzzle1);
//trace(cont);
//}
}*/
//////////////////////////////////////////////////////////////////////////////
}
if(n==3)
{
createMap(tileMap2);
createPlayer(posx,posy);
//removeChild(detective);
//detective=null;
actualMap = 3;
for(var b=0;b
{
allMap[b].x += -70;
allMap[b].y += -80;
}
}
if(n==4)
{
createMap(tileMap3);
createPlayer(posx,posy);
actualMap = 4;
for(var c=0;c
{
allMap[c].x += -60;
allMap[c].y += -160;
}
}
if(n==5)
{
//////////////////////////////////////////
//PUZZLE 2!!!!!
///////////////////////////////////////////
createMap(tileMap303);
createPlayer(posx,posy);
actualMap = 5;
for(var ca=0;ca
{
allMap[ca].x += -900;
allMap[ca].y += -180;
}
}
if(n==6)
{
createMap(tileMap4);
createPlayer(posx,posy);
actualMap = 6;
for(var d=0;d
{
allMap[d].x += 60;
allMap[d].y += -40;
}
}
if(n==7)
{
createMap(tileMap5);
createPlayer(posx,posy);
actualMap = 7;
for(var e=0;e
{
allMap[e].x += 160;
allMap[e].y += -160;
}
}
if(n==8)
{
////////////////////////////////
//PUZZLE 3!!!!!!!!!!!
////////////////////////////////
/*var signal1:Signal1 = new Signal1();
var signal2:Signal2 = new Signal2();
var signal3:Signal3 = new Signal3();
var signal4:Signal4 = new Signal4();
var box1:Box1 = new Box1();
var box2:Box2 = new Box2();
var box3:Box3 = new Box3();
var box4:Box4 = new Box4();
var num1:Num1 = new Num1();
var num2:Num2 = new Num2();
var num3:Num3 = new Num3();
var num4:Num4 = new Num4();
var num5:Num5 = new Num5();
var num6:Num6 = new Num6();
var num7:Num7 = new Num7();
var num8:Num8 = new Num8();
var num9:Num9 = new Num9();
var num0:Num0 = new Num0();
var ok1:Boolean = false;
var ok2:Boolean = false;
var ok3:Boolean = false;
var ok4:Boolean = false;
var ticks:int = 0;
var cont:int = 30;
addChild(signal1);
addChild(signal2);
addChild(signal3);
addChild(signal4);
addChild(box1);
addChild(box2);
addChild(box3);
addChild(box4);
addChild(num1);
addChild(num2);
addChild(num3);
addChild(num4);
addChild(num5);
addChild(num6);
addChild(num7);
addChild(num8);
addChild(num9);
addChild(num0);
box1.x = 100;
box1.y = 67;
box2.x = 100;
box2.y = 135;
box3.x = 100;
box3.y = 203;
box4.x = 100;
box4.y = 270;
signal1.x = 50;
signal1.y = 67;
signal2.x = 50;
signal2.y = 135;
signal3.x = 50;
signal3.y = 203;
signal4.x = 50;
signal4.y = 270;
num1.x = 420;
num1.y = 20;
num2.x = 420;
num2.y = 70;
num3.x = 420;
num3.y = 120;
num4.x = 420;
num4.y = 170;
num5.x = 420;
num5.y = 220;
num6.x = 480;
num6.y = 20;
num7.x = 480;
num7.y = 70;
num8.x = 480;
num8.y = 120;
num9.x = 480;
num9.y = 170;
num0.x = 480;
num0.y = 220;
num1.addEventListener(MouseEvent.MOUSE_DOWN, goDrag1);
num1.addEventListener(MouseEvent.MOUSE_UP, dontDrag1);
num2.addEventListener(MouseEvent.MOUSE_DOWN, goDrag2);
num2.addEventListener(MouseEvent.MOUSE_UP, dontDrag2);
num3.addEventListener(MouseEvent.MOUSE_DOWN, goDrag3);
num3.addEventListener(MouseEvent.MOUSE_UP, dontDrag3);
num4.addEventListener(MouseEvent.MOUSE_DOWN, goDrag4);
num4.addEventListener(MouseEvent.MOUSE_UP, dontDrag4);
num5.addEventListener(MouseEvent.MOUSE_DOWN, goDrag5);
num5.addEventListener(MouseEvent.MOUSE_UP, dontDrag5);
num6.addEventListener(MouseEvent.MOUSE_DOWN, goDrag6);
num6.addEventListener(MouseEvent.MOUSE_UP, dontDrag6);
num7.addEventListener(MouseEvent.MOUSE_DOWN, goDrag7);
num7.addEventListener(MouseEvent.MOUSE_UP, dontDrag7);
num8.addEventListener(MouseEvent.MOUSE_DOWN, goDrag8);
num8.addEventListener(MouseEvent.MOUSE_UP, dontDrag8);
num9.addEventListener(MouseEvent.MOUSE_DOWN, goDrag9);
num9.addEventListener(MouseEvent.MOUSE_UP, dontDrag9);
num0.addEventListener(MouseEvent.MOUSE_DOWN, goDrag0);
num0.addEventListener(MouseEvent.MOUSE_UP, dontDrag0);
stage.addEventListener(Event.ENTER_FRAME, puzzlePlay);
stage.addEventListener(Event.ENTER_FRAME, goTime);
function goDrag1(e:MouseEvent)
{
num1.startDrag();
}
function goDrag2(e:MouseEvent)
{
num2.startDrag();
}
function goDrag3(e:MouseEvent)
{
num3.startDrag();
}
function goDrag4(e:MouseEvent)
{
num4.startDrag();
}
function goDrag5(e:MouseEvent)
{
num5.startDrag();
}
function goDrag6(e:MouseEvent)
{
num6.startDrag();
}
function goDrag7(e:MouseEvent)
{
num7.startDrag();
}
function goDrag8(e:MouseEvent)
{
num8.startDrag();
}
function goDrag9(e:MouseEvent)
{
num9.startDrag();
}
function goDrag0(e:MouseEvent)
{
num0.startDrag();
}
function dontDrag1(e:MouseEvent)
{
num1.stopDrag();
}
function dontDrag2(e:MouseEvent)
{
num2.stopDrag();
}
function dontDrag3(e:MouseEvent)
{
num3.stopDrag();
}
function dontDrag4(e:MouseEvent)
{
num4.stopDrag();
}
function dontDrag5(e:MouseEvent)
{
num5.stopDrag();
}
function dontDrag6(e:MouseEvent)
{
num6.stopDrag();
}
function dontDrag7(e:MouseEvent)
{
num7.stopDrag();
}
function dontDrag8(e:MouseEvent)
{
num8.stopDrag();
}
function dontDrag9(e:MouseEvent)
{
num9.stopDrag();
}
function dontDrag0(e:MouseEvent)
{
num0.stopDrag();
}
function puzzlePlay(e:Event)
{
if(num1.hitTestObject(box1))
{
signal1.gotoAndStop(2);
ok1 = true;
}
else
{
signal1.gotoAndStop(1);
ok1 = false;
}
if(num8.hitTestObject(box2))
{
signal2.gotoAndStop(2);
ok2 = true;
}
else
{
signal2.gotoAndStop(1);
ok2 = false;
}
if(num6.hitTestObject(box3))
{
signal3.gotoAndStop(2);
ok3 = true;
}
else{signal3.gotoAndStop(1);
ok3 = false;
}
if(num2.hitTestObject(box4))
{
signal4.gotoAndStop(2);
ok4 = true;
}
else
{
signal4.gotoAndStop(1);
ok4 = false;
}
//VITORIA
if(ok1 && ok2 && ok3 && ok4)
{
//gotoAndStop(2);
num1.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag1);
num1.removeEventListener(MouseEvent.MOUSE_UP, dontDrag1);
num2.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag2);
num2.removeEventListener(MouseEvent.MOUSE_UP, dontDrag2);
num3.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag3);
num3.removeEventListener(MouseEvent.MOUSE_UP, dontDrag3);
num4.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag4);
num4.removeEventListener(MouseEvent.MOUSE_UP, dontDrag4);
num5.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag5);
num5.removeEventListener(MouseEvent.MOUSE_UP, dontDrag5);
num6.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag6);
num6.removeEventListener(MouseEvent.MOUSE_UP, dontDrag6);
num7.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag7);
num7.removeEventListener(MouseEvent.MOUSE_UP, dontDrag7);
num8.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag8);
num8.removeEventListener(MouseEvent.MOUSE_UP, dontDrag8);
num9.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag9);
num9.removeEventListener(MouseEvent.MOUSE_UP, dontDrag9);
num0.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag0);
num0.removeEventListener(MouseEvent.MOUSE_UP, dontDrag0);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
removeChild(signal1);
removeChild(signal2);
removeChild(signal3);
removeChild(signal4);
removeChild(box1);
removeChild(box2);
removeChild(box3);
removeChild(box4);
removeChild(num1);
removeChild(num2);
removeChild(num3);
removeChild(num4);
removeChild(num5);
removeChild(num6);
removeChild(num7);
removeChild(num8);
removeChild(num9);
removeChild(num0);
*/
createMap(tileMap505);
createPlayer(posx,posy);
actualMap = 8;
for(var ea=0;ea
{
allMap[ea].x += -1560;
allMap[ea].y += -300;
}
/*}
}
function goTime(e:Event)
{
timeBox.text = String(cont);
ticks++;
if(ticks >= 24)
{
ticks = 0;
cont--;
}
//DERROTA
if(cont <= 0)
{
//gotoAndStop(3)
num1.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag1);
num1.removeEventListener(MouseEvent.MOUSE_UP, dontDrag1);
num2.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag2);
num2.removeEventListener(MouseEvent.MOUSE_UP, dontDrag2);
num3.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag3);
num3.removeEventListener(MouseEvent.MOUSE_UP, dontDrag3);
num4.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag4);
num4.removeEventListener(MouseEvent.MOUSE_UP, dontDrag4);
num5.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag5);
num5.removeEventListener(MouseEvent.MOUSE_UP, dontDrag5);
num6.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag6);
num6.removeEventListener(MouseEvent.MOUSE_UP, dontDrag6);
num7.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag7);
num7.removeEventListener(MouseEvent.MOUSE_UP, dontDrag7);
num8.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag8);
num8.removeEventListener(MouseEvent.MOUSE_UP, dontDrag8);
num9.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag9);
num9.removeEventListener(MouseEvent.MOUSE_UP, dontDrag9);
num0.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag0);
num0.removeEventListener(MouseEvent.MOUSE_UP, dontDrag0);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay);
stage.removeEventListener(Event.ENTER_FRAME, goTime);
removeChild(signal1);
removeChild(signal2);
removeChild(signal3);
removeChild(signal4);
removeChild(box1);
removeChild(box2);
removeChild(box3);
removeChild(box4);
removeChild(num1);
removeChild(num2);
removeChild(num3);
removeChild(num4);
removeChild(num5);
removeChild(num6);
removeChild(num7);
removeChild(num8);
removeChild(num9);
removeChild(num0);
}
}*/
}
if(n==9)
{
createMap(tileMap6);
createPlayer(posx,posy);
actualMap = 9;
for(var f=0;f
{
allMap[f].x += 120;
allMap[f].y += -40;
}
}
if(n==10)
{
createMap(tileMap7);
createPlayer(posx,posy);
actualMap = 10;
for(var g=0;g
{
allMap[g].x += 120;
allMap[g].y += -160;
}
}
if(n==11)
{
////////////////////////////////
//PUZZLE 4!!!!!!!!!!!
////////////////////////////////
var lHit33:Boolean;
var rHit33:Boolean;
var barra3:Barra3 = new Barra3();
var hit13:Hit13 = new Hit13();
var hit23:Hit23 = new Hit23();
var hit33:Hit33 = new Hit33();
var hit43:Hit43 = new Hit43();
var hit53:Hit53 = new Hit53();
var arco13:Arco13 = new Arco13();
var arco23:Arco23 = new Arco23();
var arco33:Arco33 = new Arco33();
var arco44:Arco43 = new Arco43();
var arco53:Arco53 = new Arco53();
var vermelho3:Vermelho3 = new Vermelho3();
var ticks3:int = 0;
var cont3:int = 60;
addChild(barra3);
addChild(hit13);
addChild(hit23);
addChild(hit33);
addChild(hit43);
addChild(hit53);
addChild(arco13);
addChild(arco23);
addChild(arco33);
addChild(arco44);
addChild(arco53);
addChild(vermelho3);
barra3.x = 400;
barra3.y = 300;
arco13.x = 171;// 222;
arco13.y = 58;// 153;
arco23.x = 136;// 185;
arco23.y = 20;// 115;
arco33.x = 101;// 150;
arco33.y = -13;// 80;
arco44.x = 57;// 150;
arco44.y = -55;// 80;
arco53.x = 19;// 150;
arco53.y = -95;// 80;
vermelho3.x = 205;
vermelho3.y = 109;
hit13.x = 209;
hit13.y = 145;
hit13.alpha = 0;
hit23.x = 209;
hit23.y = 185;
hit23.alpha = 0;
hit33.x = 209;
hit33.y = 220;
hit33.alpha = 0;
hit43.x = 209;
hit43.y = 260;
hit43.alpha = 0;
hit53.x = 209;
hit53.y = 300;
hit53.alpha = 0;
stage.addEventListener(Event.ENTER_FRAME, goTime3);
stage.addEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);
stage.addEventListener(MouseEvent.MOUSE_UP, fimDrag3);
barra3.addEventListener(Event.ENTER_FRAME, puzzlePlay3);
function inicioDrag3(e:MouseEvent)
{barra3.startDrag();}
function fimDrag3(e:MouseEvent)
{barra3.stopDrag();}
function puzzlePlay3(e:Event){
lHit33 = arco13.hitTestPoint(barra3.x, barra3.y, true)
arco23.hitTestPoint(barra3.x, barra3.y, true)
arco33.hitTestPoint(barra3.x, barra3.y, true)
arco44.hitTestPoint(barra3.x, barra3.y, true)
arco53.hitTestPoint(barra3.x, barra3.y, true);
rHit33 = arco13.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco23.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco33.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco44.hitTestPoint((barra3.x + barra3.width), barra3.y, true)
arco53.hitTestPoint((barra3.x + barra3.width), barra3.y, true);
if(lHit33
rHit33){
barra3.x = 400;
barra3.y = 300;
barra3.stopDrag();
//trace(hitTestPoint);
}
if(barra3.hitTestObject(hit13)){
arco13.stop();}
if(barra3.hitTestObject(hit23)){
arco23.stop();}
if(barra3.hitTestObject(hit33)){
arco33.stop();}
if(barra3.hitTestObject(hit43)){
arco44.stop();}
if(barra3.hitTestObject(hit53)){
arco53.stop();}
//VITORIA
if(barra3.hitTestObject(vermelho3)){
gotoAndStop(3);
createMap(tileMap707);
createPlayer(posx,posy);
actualMap = 11;
for(var ga=0;ga
{
allMap[ga].x += -480;
allMap[ga].y += -440;
}
stage.removeEventListener(Event.ENTER_FRAME, goTime3);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag3);
barra3.removeEventListener(Event.ENTER_FRAME, puzzlePlay3);
removeChild(barra3);
removeChild(hit13);
removeChild(hit23);
removeChild(hit33);
removeChild(hit43);
removeChild(hit53);
removeChild(arco13);
removeChild(arco23);
removeChild(arco33);
removeChild(arco44);
removeChild(arco53);
removeChild(vermelho3);}
}
function goTime3(e:Event){
timeBox3.text = String(cont3);
ticks3++;
if(ticks3 >= 24){
ticks3 = 0;
cont3--;
}
//DERROTA
if(cont3 <= 0){
gotoAndStop(2);
stage.removeEventListener(Event.ENTER_FRAME, goTime3);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);
stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag3);
barra3.removeEventListener(Event.ENTER_FRAME, puzzlePlay3);
removeChild(barra3);
removeChild(hit13);
removeChild(hit23);
removeChild(hit33);
removeChild(hit43);
removeChild(hit53);
removeChild(arco13);
removeChild(arco23);
removeChild(arco33);
removeChild(arco44);
removeChild(arco53);
removeChild(vermelho3);
//trace(cont3);
}
}
}
if(n==12)
{
createMap(tileMap8);
createPlayer(posx,posy);
actualMap = 12;
for(var h=0;h
{
allMap[h].x += 120;
allMap[h].y += 0;
}
}
if(n==13)
{
createMap(tileMap9);
createPlayer(posx,posy);
actualMap = 13;
for(var i=0;i
{
allMap[i].x += 120;
allMap[i].y += -160;
}
}
if(n==14)
{
////////////////////////////////
//PUZZLE 5!!!!!!!!!!!
////////////////////////////////
createMap(tileMap909);
createPlayer(posx,posy);
actualMap = 14;
for(var ia=0;ia
{
allMap[ia].x += -320;
allMap[ia].y += -640;
}
}
if(n==15)
{
createMap(tileMap10);
createPlayer(posx,posy);
actualMap = 15;
for(var j=0;j
{
allMap[j].x += -240;
allMap[j].y += 120;
}
}
if(n==16)
{
createMap(tileMap11);
createPlayer(posx,posy);
actualMap = 16;
for(var ja=0;ja
{
allMap[ja].x += -240;
allMap[ja].y += 120;
}
}
if(n==17)
{
////////////////////////////////
//PUZZLE 6!!!!!!!!!!!
////////////////////////////////
var signal122:Signal122 = new Signal122();
var signal222:Signal222 = new Signal222();
var signal322:Signal322 = new Signal322();
var signal422:Signal422 = new Signal422();
var box122:Box122 = new Box122();
var box222:Box222 = new Box222();
var box322:Box322 = new Box322();
var box422:Box422 = new Box422();
var num122:Num122 = new Num122();
var num222:Num222 = new Num222();
var num322:Num322 = new Num322();
var num422:Num422 = new Num422();
var num522:Num522 = new Num522();
var num622:Num622 = new Num622();
var num722:Num722 = new Num722();
var num822:Num822 = new Num822();
var num922:Num922 = new Num922();
var num022:Num022 = new Num022();
var ok122:Boolean = false;
var ok222:Boolean = false;
var ok322:Boolean = false;
var ok422:Boolean = false;
var ticks22:int = 0;
var cont22:int = 20;
addChild(signal122);
addChild(signal222);
addChild(signal322);
addChild(signal422);
addChild(box122);
addChild(box222);
addChild(box322);
addChild(box422);
addChild(num122);
addChild(num222);
addChild(num322);
addChild(num422);
addChild(num522);
addChild(num622);
addChild(num722);
addChild(num822);
addChild(num922);
addChild(num022);
box122.x = 100;
box122.y = 67;
box222.x = 100;
box222.y = 135;
box322.x = 100;
box322.y = 203;
box422.x = 100;
box422.y = 270;
signal122.x = 50;
signal122.y = 67;
signal222.x = 50;
signal222.y = 135;
signal322.x = 50;
signal322.y = 203;
signal422.x = 50;
signal422.y = 270;
num122.x = 420;
num122.y = 20;
num222.x = 420;
num222.y = 70;
num322.x = 420;
num322.y = 120;
num422.x = 420;
num422.y = 170;
num522.x = 420;
num522.y = 220;
num622.x = 480;
num622.y = 20;
num722.x = 480;
num722.y = 70;
num822.x = 480;
num822.y = 120;
num922.x = 480;
num922.y = 170;
num022.x = 480;
num022.y = 220;
num122.addEventListener(MouseEvent.MOUSE_DOWN, goDrag122);
num122.addEventListener(MouseEvent.MOUSE_UP, dontDrag122);
num222.addEventListener(MouseEvent.MOUSE_DOWN, goDrag222);
num222.addEventListener(MouseEvent.MOUSE_UP, dontDrag222);
num322.addEventListener(MouseEvent.MOUSE_DOWN, goDrag322);
num322.addEventListener(MouseEvent.MOUSE_UP, dontDrag322);
num422.addEventListener(MouseEvent.MOUSE_DOWN, goDrag422);
num422.addEventListener(MouseEvent.MOUSE_UP, dontDrag422);
num522.addEventListener(MouseEvent.MOUSE_DOWN, goDrag522);
num522.addEventListener(MouseEvent.MOUSE_UP, dontDrag522);
num622.addEventListener(MouseEvent.MOUSE_DOWN, goDrag622);
num622.addEventListener(MouseEvent.MOUSE_UP, dontDrag622);
num722.addEventListener(MouseEvent.MOUSE_DOWN, goDrag722);
num722.addEventListener(MouseEvent.MOUSE_UP, dontDrag722);
num822.addEventListener(MouseEvent.MOUSE_DOWN, goDrag822);
num822.addEventListener(MouseEvent.MOUSE_UP, dontDrag822);
num922.addEventListener(MouseEvent.MOUSE_DOWN, goDrag922);
num922.addEventListener(MouseEvent.MOUSE_UP, dontDrag922);
num022.addEventListener(MouseEvent.MOUSE_DOWN, goDrag022);
num022.addEventListener(MouseEvent.MOUSE_UP, dontDrag022);
stage.addEventListener(Event.ENTER_FRAME, puzzlePlay22);
stage.addEventListener(Event.ENTER_FRAME, goTime22);
function goDrag122(e:MouseEvent){
num122.startDrag();}
function goDrag222(e:MouseEvent){
num222.startDrag();}
function goDrag322(e:MouseEvent){
num322.startDrag();}
function goDrag422(e:MouseEvent){
num422.startDrag();}
function goDrag522(e:MouseEvent){
num522.startDrag();}
function goDrag622(e:MouseEvent){
num622.startDrag();}
function goDrag722(e:MouseEvent){
num722.startDrag();}
function goDrag822(e:MouseEvent){
num822.startDrag();}
function goDrag922(e:MouseEvent){
num922.startDrag();}
function goDrag022(e:MouseEvent){
num022.startDrag();}
function dontDrag122(e:MouseEvent){
num122.stopDrag();}
function dontDrag222(e:MouseEvent){
num222.stopDrag();}
function dontDrag322(e:MouseEvent){
num322.stopDrag();}
function dontDrag422(e:MouseEvent){
num422.stopDrag();}
function dontDrag522(e:MouseEvent){
num522.stopDrag();}
function dontDrag622(e:MouseEvent){
num622.stopDrag();}
function dontDrag722(e:MouseEvent){
num722.stopDrag();}
function dontDrag822(e:MouseEvent){
num822.stopDrag();}
function dontDrag922(e:MouseEvent){
num922.stopDrag();}
function dontDrag022(e:MouseEvent){
num022.stopDrag();}
function puzzlePlay22(e:Event){
if(num922.hitTestObject(box122)){
signal122.gotoAndStop(2);
ok122 = true;}
else{signal122.gotoAndStop(1);
ok122 = false;}
if(num722.hitTestObject(box222)){
signal222.gotoAndStop(2);
ok222 = true;}
else{signal222.gotoAndStop(1);
ok222 = false;}
if(num622.hitTestObject(box322)){
signal322.gotoAndStop(2);
ok322 = true;}
else{signal322.gotoAndStop(1);
ok322 = false;}
if(num222.hitTestObject(box422)){
signal422.gotoAndStop(2);
ok422 = true;}
else{signal422.gotoAndStop(1);
ok422 = false;}
//VITORIA
if(ok122 && ok222 && ok322 && ok422){
/*createMap(tileMap11);
createPlayer(posx,posy);
actualMap = 16;
for(var k=0;k
{
allMap[k].x += -920;
allMap[k].y += 120;
}*/
//gotoAndStop(2);
num122.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag122);
num122.removeEventListener(MouseEvent.MOUSE_UP, dontDrag122);
num222.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag222);
num222.removeEventListener(MouseEvent.MOUSE_UP, dontDrag222);
num322.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag322);
num322.removeEventListener(MouseEvent.MOUSE_UP, dontDrag322);
num422.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag422);
num422.removeEventListener(MouseEvent.MOUSE_UP, dontDrag422);
num522.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag522);
num522.removeEventListener(MouseEvent.MOUSE_UP, dontDrag522);
num622.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag622);
num622.removeEventListener(MouseEvent.MOUSE_UP, dontDrag622);
num722.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag722);
num722.removeEventListener(MouseEvent.MOUSE_UP, dontDrag722);
num822.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag822);
num822.removeEventListener(MouseEvent.MOUSE_UP, dontDrag822);
num922.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag922);
num922.removeEventListener(MouseEvent.MOUSE_UP, dontDrag922);
num022.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag022);
num022.removeEventListener(MouseEvent.MOUSE_UP, dontDrag022);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay22);
stage.removeEventListener(Event.ENTER_FRAME, goTime22);
removeChild(signal122);
removeChild(signal222);
removeChild(signal322);
removeChild(signal422);
removeChild(box122);
removeChild(box222);
removeChild(box322);
removeChild(box422);
removeChild(num122);
removeChild(num222);
removeChild(num322);
removeChild(num422);
removeChild(num522);
removeChild(num622);
removeChild(num722);
removeChild(num822);
removeChild(num922);
removeChild(num022);
credits.x=40;
credits.y=0;
stage.addEventListener(Event.ENTER_FRAME,goCredits);
function goCredits(e:Event)
{
credits.y-=3;
}
}
}
function goTime22(e:Event){
timeBox22.text = String(cont22);
ticks22++;
if(ticks22 >= 24){
ticks22 = 0;
cont22--;
}
//DERROTA
if(cont22 <= 0){
gotoAndStop(3)
num122.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag122);
num122.removeEventListener(MouseEvent.MOUSE_UP, dontDrag122);
num222.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag222);
num222.removeEventListener(MouseEvent.MOUSE_UP, dontDrag222);
num322.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag322);
num322.removeEventListener(MouseEvent.MOUSE_UP, dontDrag322);
num422.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag422);
num422.removeEventListener(MouseEvent.MOUSE_UP, dontDrag422);
num522.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag522);
num522.removeEventListener(MouseEvent.MOUSE_UP, dontDrag522);
num622.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag622);
num622.removeEventListener(MouseEvent.MOUSE_UP, dontDrag622);
num722.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag722);
num722.removeEventListener(MouseEvent.MOUSE_UP, dontDrag722);
num822.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag822);
num822.removeEventListener(MouseEvent.MOUSE_UP, dontDrag822);
num922.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag922);
num922.removeEventListener(MouseEvent.MOUSE_UP, dontDrag922);
num022.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag022);
num022.removeEventListener(MouseEvent.MOUSE_UP, dontDrag022);
stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay22);
stage.removeEventListener(Event.ENTER_FRAME, goTime22);
removeChild(signal122);
removeChild(signal222);
removeChild(signal322);
removeChild(signal422);
removeChild(box122);
removeChild(box222);
removeChild(box322);
removeChild(box422);
removeChild(num122);
removeChild(num222);
removeChild(num322);
removeChild(num422);
removeChild(num522);
removeChild(num622);
removeChild(num722);
removeChild(num822);
removeChild(num922);
removeChild(num022);}
}
}
}
/////////////////////////////////////
//MAP DELETION!!!
///////////////////////////////////
function deleteObj()
{
for(var i:int=0;i
{
removeChild(allMap[i]);
}
removeChild(player);
//removeChild(detective);
allMap = null;
doorMap=null;
player=null;
//detective=null;
}
///////////////////////////////////////
//definicao das variaveis
var isLeft:Boolean = false;
var isRight:Boolean = false;
var isUp:Boolean = false;
var isDown:Boolean = false;
var isSpace:Boolean = false;
var walkTo:String;
var velX:Number;
var velY:Number;
stage.addEventListener(Event.ENTER_FRAME,gamePlay);
stage.addEventListener(KeyboardEvent.KEY_DOWN,cDown);
stage.addEventListener(KeyboardEvent.KEY_UP,cUp);
////////////////////////////////////////////
/*detective.addEventListener(Event.ENTER_FRAME,chase);
function chase(e:Event)
{
//detective moving
if(detective.x
{
detective.x+=detectivespeed;
}
if(detective.y
{
detective.y+=detectivespeed;
}
if(detective.x>player.x)
{
detective.x-=detectivespeed;
}
if(detective.y>player.y)
{
detective.y-=detectivespeed;
}
}
*/
////////////////////////////////////////////////
//G PLAY!!!
////////////////////////////////////////////////
function gamePlay(e:Event)//looping do game
{
//player moving
if(isLeft)
{
walkTo = "left";
}
if(isRight)
{
walkTo = "right";
}
if(isUp)
{
walkTo = "up";
}
if(isDown)
{
walkTo = "down";
}
if(walkTo == "left")
{
velY = 0;
if(isSpace)
{
velX=boosterspeed;
}
if(!isSpace)
{
velX=playerspeed;
}
}
if(walkTo == "right")
{
velY = 0;
if(isSpace)
{
velX=-boosterspeed;
}
if(!isSpace)
{
velX=-playerspeed;
}
}
if(walkTo == "up")
{
velX = 0;
if(isSpace)
{
velY=boosterspeed;
}
if(!isSpace)
{
velY=playerspeed;
}
}
if(walkTo == "down")
{
velX = 0;
if(isSpace)
{
velY=-boosterspeed;
}
if(!isSpace)
{
velY=-playerspeed;
}
}
if(!isLeft && !isRight && !isUp &&!isDown)
{
velX = 0;
velY = 0;
}
for(var j=0;j
{
allMap[j].x += velX;
allMap[j].y += velY;
}
///////////////////////////////////////////////////
//Collision Map!!!;
for(var i=0; i
{
var box = collisionMap[i];
var playerRight:Number = player.x + player.width/2; //grava as posicoes de cada lado do personagem
var playerLeft:Number = player.x - player.width/2;
var playerUp:Number = player.y - player.height;
var playerDown:Number = player.y;
/*var detectiveRight:Number = detective.x + detective.width/2; //grava as posicoes de cada lado do personagem
var detectiveLeft:Number = detective.x - detective.width/2;
var detectiveUp:Number = detective.y - detective.height;
var detectiveDown:Number = detective.y;*/
var oldBoxRight:Number = allMapOldX[i] + box.width/2; //grava as posicoes de cada lado de cada parede
var oldBoxLeft:Number = allMapOldX[i] - box.width/2;
var oldBoxUp:Number = allMapOldY[i] - box.height/2;
var oldBoxDown:Number = allMapOldY[i] + box.height/2;
//player
if(box.hitTestObject(player))//quando há colisão com alguma parede
{
var diffXp:Number;
var diffYp:Number;
var kp:int;
if(walkTo == "right" && (player.x - player.width/2) != oldBoxRight && (player.y - player.height) != oldBoxDown && (player.y) != oldBoxUp)
//verifica para que lado o usuário esta clicando e verifica a posicao anterior do personagem
{
diffXp = - box.x + playerRight+box.width/2; //calcula a diferença entre a posicao do personagem e a da tela
for(kp=0;kp
allMap[kp].x += diffXp;
}
}
if(walkTo == "left" && (player.x + player.width/2) != oldBoxLeft && (player.y - player.height) != oldBoxDown && (player.y) != oldBoxUp){
diffXp = -box.x + playerLeft-box.width/2;
for(kp=0;kp
{
allMap[kp].x += diffXp;
}
}
if(walkTo == "up" && (player.y + player.height) != oldBoxDown && (player.x - player.width/2) != oldBoxRight && (player.x + player.width/2) != oldBoxLeft)
{
diffYp = -box.y + playerUp-box.height/2;
for(kp=0;kp
{
allMap[kp].y += diffYp;
}
}
if(walkTo == "down" && (player.x - player.width/2) != oldBoxRight && (player.x + player.width/2) != oldBoxLeft)
{
diffYp = -box.y + playerDown+box.height/2;
for(kp=0;kp
{
allMap[kp].y += diffYp;
}
}
}
//detective
/*if(box.hitTestObject(detective))//quando há colisão com alguma parede
{
var diffXd:Number;
var diffYd:Number;
var kd:int;
if(walkTo == "right" && (detective.x - detective.width/2) != oldBoxRight && (detective.y - detective.height) != oldBoxDown && (detective.y) != oldBoxUp)
//verifica para que lado o usuário esta clicando e verifica a posicao anterior do personagem
{
diffXd = - box.x + detectiveRight+box.width/2; //calcula a diferença entre a posicao do personagem e a da tela
for(kd=0;kd
allMap[kd].x += diffXd;
}
}
if(walkTo == "left" && (detective.x + detective.width/2) != oldBoxLeft && (detective.y - detective.height) != oldBoxDown && (detective.y) != oldBoxUp){
diffXd = -box.x + detectiveLeft-box.width/2;
for(kd=0;kd
{
allMap[kd].x += diffXd;
}
}
if(walkTo == "up" && (detective.y + detective.height) != oldBoxDown && (detective.x - detective.width/2) != oldBoxRight && (detective.x + detective.width/2) != oldBoxLeft)
{
diffYd = -box.y + detectiveUp-box.height/2;
for(kd=0;kd
{
allMap[kd].y += diffYd;
}
}
if(walkTo == "down" && (detective.x - detective.width/2) != oldBoxRight && (detective.x + detective.width/2) != oldBoxLeft)
{
diffYd = -box.y + detectiveDown+box.height/2;
for(kd=0;kd
{
allMap[kd].y += diffYd;
}
}
}*/
allMapOldX[i] = box.x; //grava a posicao anterior de cada parede
allMapOldY[i] = box.y;
}
/////////////////////////////////////////////////////
//Verificação com Door!!!:
for(var l=0; l
{
var door = doorMap[l];
if(door.hitTestObject(player))//quando há colisão com alguma parede
{
deleteObj();
if(actualMap==1)
{
initializeMap(2,stage.stageWidth/2,stage.stageHeight/2,100,100);
playerspeed=5;
boosterspeed=10;
//collisionMap=null;
//doorMap=null;
//allMap=null;
//allMapOldX=null;
//allMapOldY=null;
//actualMap=null;
//tile.visible=false;
//gotoAndStop(2);
return;
}
if(actualMap==2)
{
initializeMap(3,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==3)
{
initializeMap(4,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==4)
{
initializeMap(5,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==5)
{
initializeMap(6,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==6)
{
initializeMap(7,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==7)
{
initializeMap(8,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==8)
{
initializeMap(9,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==9)
{
initializeMap(10,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==10)
{
initializeMap(11,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==11)
{
initializeMap(12,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==12)
{
initializeMap(13,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==13)
{
initializeMap(14,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==14)
{
initializeMap(15,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=2;
boosterspeed=8;
return;
}
if(actualMap==15)
{
initializeMap(16,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==16)
{
initializeMap(17,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
if(actualMap==17)
{
initializeMap(1,stage.stageWidth/2,stage.stageHeight/2,0,0);
playerspeed=5;
boosterspeed=10;
return;
}
}
}
//tile type?
/*var tileSize:int=40;
var col:int=Math.ceil(player.x/tileSize);
var line:int=Math.ceil(player.y/tileSize);
var type:int=tileMap1[line][col];
if(m[i][j]==0)
{
velX=velX;
velY=velY;
}
//obstáculo(offscreen)
if(m[i][j]==1)
{
collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//porta
if(m[i][j]==2)
{
doorMap.push(tile);
}
//milho
if(m[i][j]==3)
{
velX=2;
velY=2;
}
//grama
if(m[i][j]==4)
{
}
//prédios
if(m[i][j]==5)
{
collisionMap.push(tile); //guarda a parede dentro da array allMap
allMapOldX.push(tile.x);
allMapOldY.push(tile.y);
}
//banco(porta(?)
if(m[i][j]==6)
{
doorMap.push(tile);
}*/
}
///////////////////////////////////////////
//BUTTONS!!!
/////////////////
//ON!!!
////////////////
function cDown(e:KeyboardEvent)
{
var key:int = e.keyCode;
if(key==Keyboard.LEFT)
{
isLeft = true;
}
if(key==Keyboard.RIGHT)
{
isRight = true;
}
if(key==Keyboard.UP)
{
isUp = true;
}
if(key==Keyboard.DOWN)
{
isDown = true;
}
if(key==Keyboard.SPACE)
{
isSpace = true;
}
}
///////////////////////////////////////////////
/////////////////
//OFF!!!
/////////////////
function cUp(e:KeyboardEvent)
{
var key:int = e.keyCode;
if(key==Keyboard.LEFT)
{
isLeft = false;
}
if(key==Keyboard.RIGHT)
{
isRight = false;
}
if(key==Keyboard.UP)
{
isUp = false;
}
if(key==Keyboard.DOWN)
{
isDown = false;
}
if(key==Keyboard.SPACE)
{
isSpace = false;
}
}
///////////////////////////////////////
Assinar:
Postagens (Atom)