
Enviado em 03/02/2020 - 06:23h
Olá, monitores!
#include <stdio.h>
#define clear() printf("\33[H\33[2J");
//Move preenchendo com espaços em branco
int branco(int j){
int k;
for (k=60;k>=j;k--){
printf(" ");
}
}
#define COLUNAS 55
#define LINHAS 7
char mapa[LINHAS][COLUNAS+1]={
" ==== ________ ___________ ",
" _D _| |_______/ \\__I_I_____===__|_________|",
" |(_)--- | H\\________/ | | =|___ ___| ",
" / | | H | | | | ||_| |_|| ",
" | | | H |__--------------------| [___] | ",
" | ________|___H__/__|_____/[][]~\\_______| | ",
" |/ | |-----------I_____I [][] [] D |=======|__ ",
};
/* AQUI SERIA PARA MOVIMENTAR AS RODAS
"__/ =| o |=-~~\\ /~~\\ /~~\\ /~~\\ ____Y________|__",
" |/-=|___|= || || || |_____/~\\___/ ", " \\_/ \\O=====O=====O=====O_/ \\_/ ", "__/ =| o |=-~~\\ /~~\\ /~~\\ /~~\\ ____Y________|__", " |/-=|___|=O=====O=====O=====O |_____/~\\___/ ", " \\_/ \\__/ \\__/ \\__/ \\__/ \\_/ ",
"__/ =| o |=-O=====O=====O=====O \\ ____Y________|__ ",
" |/-=|___|= || || || |_____/~\\___/ ",
" \\_/ \\__/ \\__/ \\__/ \\__/ \\_/ ",
"__/ =| o |=-~O=====O=====O=====O\\ ____Y________|__ ",
" |/-=|___|= || || || |_____/~\\___/ "
" \\_/ \\__/ \\__/ \\__/ \\__/ \\_/ ",
"__/ =| o |=-~~\\ /~~\\ /~~\\ /~~\\ ____Y________|__",
" |/-=|___|= O=====O=====O=====O|_____/~\\___/ ",
" \\_/ \\__/ \\__/ \\__/ \\__/ \\_/ ",
"__/ =| o |=-~~\\ /~~\\ /~~\\ /~~\\ ____Y________|__",
" |/-=|___|= || || || |_____/~\\___/ ",
" \\_/ \\_O=====O=====O=====O/ \\_/ ",
*/
int coluna_atual = 4, linha_atual = 4;
void desenhar(){
int linha=0;
while(linha<linha_atual)
printf("%s\n",mapa[linha++]);
printf("%.*s%s\n", coluna_atual, mapa[linha], mapa[linha]+coluna_atual+1);
while(++linha<LINHAS)
printf("%s\n",mapa[linha]);
}
#include <unistd.h>
int main(){
int i;for(i=0;i<60;i++){
clear();
usleep(50000);
branco(i);
desenhar();
}
printf("\n");
}
#include <stdio.h> #define clear() printf("\33[H\33[2J");
int branco(int j){ int k;
for (k=60;k>=j;k--){ printf(" ");
}
}
#include <unistd.h>
int main(){
int i;for(i=0;i<60;i++){ clear();
usleep(50000);
branco(i);
printf(" __@\n");
branco(i);
printf(" _`\\<,_\n");
branco(i);
printf(" (*)/ (*)\n");
}
}
Modo Simples de Baixar e Usar o bash-completion
Monitorando o Preço do Bitcoin ou sua Cripto Favorita em Tempo Real com um Widget Flutuante
Instalando partes faltantes do Plasma 6
Adicionar botão "mostrar área de trabalho" no Zorin OS
Como montar um servidor de backup no linux
Estou tentando ser legalista, mas tá complicado! (9)
espelhar monitores nao funciona (2)
SQLITE não quer funcionar no LINUX LMDE6 64 com Lazaruz 4.2 64bit (n... (1)









