Skip to content

Instantly share code, notes, and snippets.

@ALMTC
ALMTC / Estudo_de_Cores_Farbstudie.pde
Created March 20, 2019 08:24
Estudo de cores Mami
int linhas = 5;
int colunas = 5;
void cor(){
fill(int(random(255)), int(random(255)), int(random(255)));
}
void bloco(int x, int y) {
cor();
rect(x-60,y-60,120,120);
int tAtual = 0;
int vAtual = 15;
int dAtual;
void setup() {
frameRate(1);
}
void draw() {
dAtual = MRU(vAtual, tAtual);
float dAtualX = 0;
float vAtualX = 30;
float dAtualY;
float vAtualY = 30;
float tAtual = 0;
float Acell = -3;
void setup(){
frameRate(1);
size(600,600);
@ALMTC
ALMTC / Bandeira_do_Brasil.pde
Created March 25, 2019 07:00
Atividade 5 de mami
void setup(){
size(800,600);
}
void draw(){
background(255);
mostraBandeira(100, mouseX, mouseY);
}
void mostraBandeira(float largura, float x, float y){
@ALMTC
ALMTC / yin-yang.pde
Last active April 8, 2019 02:39
Mami atividade 6: Yin-yang
float dInicial = 200;
float dFinal = 400;
float d = dInicial;
float variacao = -1;
void setup(){
size(600,600);
}
void draw(){
@ALMTC
ALMTC / Proporcao_entre_telas.pde
Last active April 7, 2019 23:31
Mami aula 8 dist e map
void setup(){
size(800,600);
}
void draw(){
bg();
circulo();
}
void bg(){
@ALMTC
ALMTC / Pong_final.pde
Last active April 8, 2019 03:51
Mami atividade 8
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);
// 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},
};
//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();
//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");