This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Link para o drive com o código e as imagens: https://drive.google.com/open?id=1VqlKjaFYvm_V7vBl-9Z2Yn8JStlPftzr | |
| PImage imgD, imgE, imgP; | |
| int posX, disR = 0, disP = 0; //disR e disP são as distâncias percorridas tanto pelo player, quanto pelo robo | |
| boolean direita = false, esquerda = false; | |
| void setup(){ | |
| size(600,600); | |
| imgD = loadImage("direita.png"); | |
| imgE = loadImage("esquerda.png"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Link para a pasta com o código e os arquivos no drive: https://drive.google.com/open?id=1fDHvxtnrOLqWCMC1KpbDi6NBsFMGdmk- | |
| PImage imgMpulando, imgMmartelando, imgMparado; | |
| int estado = 0, posX = 125, PARADO = 0, MARTELANDO = 1, PULANDO = 2, MATELAR_P = 3, PULAR_M = 4; | |
| float Tmartelando = 0, Tpulando = 0, acell = -0.1, velocidadeP = 1.7, posY = 300; | |
| boolean pulando = false, martelando = false; | |
| void setup(){ | |
| size(600,600); | |
| imgMparado = loadImage("parado.png"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Link para a pasta com o arquivo e as imagens: https://drive.google.com/open?id=1gJjV1WXR1FP4OA2ADLZY-_kkDKScUHI8 | |
| PImage imgPlayer, imgGrama; | |
| float posX = 320, posY = 320; | |
| void setup(){ | |
| size(600,600); | |
| imgPlayer = loadImage("personagem.png"); | |
| imgGrama = loadImage("grama.png"); | |
| desenhaMapa(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // link para o driver com a pasta: https://drive.google.com/drive/folders/1cO044wORu8OqeW7d8O-7etS5rPfbf74- | |
| int[][] mapa = {{1,1,1,1,1,1,1}, | |
| {1,2,4,4,4,4,4}, | |
| {1,3,5,5,5,5,0}, | |
| {1,3,5,5,5,0,0}, | |
| {1,3,5,5,0,0,0}, | |
| {1,3,5,0,0,0,0}, | |
| {1,3,0,0,0,0,0}, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int bastaoY = 0; | |
| int bolaX = 10; | |
| int bolaY = 10; | |
| int dX = 5; | |
| int dY = 3; | |
| int pJogador = 0; | |
| int pBot = 0; | |
| void setup() { | |
| size(600, 600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup(){ | |
| size(800,600); | |
| } | |
| void draw(){ | |
| bg(); | |
| circulo(); | |
| } | |
| void bg(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float dInicial = 200; | |
| float dFinal = 400; | |
| float d = dInicial; | |
| float variacao = -1; | |
| void setup(){ | |
| size(600,600); | |
| } | |
| void draw(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup(){ | |
| size(800,600); | |
| } | |
| void draw(){ | |
| background(255); | |
| mostraBandeira(100, mouseX, mouseY); | |
| } | |
| void mostraBandeira(float largura, float x, float y){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float dAtualX = 0; | |
| float vAtualX = 30; | |
| float dAtualY; | |
| float vAtualY = 30; | |
| float tAtual = 0; | |
| float Acell = -3; | |
| void setup(){ | |
| frameRate(1); | |
| size(600,600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int tAtual = 0; | |
| int vAtual = 15; | |
| int dAtual; | |
| void setup() { | |
| frameRate(1); | |
| } | |
| void draw() { | |
| dAtual = MRU(vAtual, tAtual); |