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");
}
}
Desktop Linux ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie
Meu Amigo não consegue entrar em meu mundo, via tailscale, hamachi e z... (1)
Erro ao fazer remaster usando Penguin eggs (1)
Warcraft II Remastered no Linux? (0)
queria saber como instalar o android power tools igual ao winux no lin... (7)