✪Estalha
Leo Lomardo   Rio De Janeiro, Rio de Janeiro, Brazil
 
 
You find your own tree :trouble_disguiser:
Muitos sao chamados, poucos sao escolhidos.:drstar:
:SpacePug:Lua(2006-2021)
:SpacePug:Locco Abreu (2023- )
Spotify [open.spotify.com]
Github [github.com]
Currently Offline
Featured Artwork Showcase
EuYLua
Favorite Group
ArchLinux - Public Group
The ArchLinux Steam Group
2,163
Members
66
In-Game
458
Online
141
In Chat
Walk...InTheRain
#include <ncurses.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>

#define MAX_DROPS 700

typedef struct {
int x, y;
char symbol;
} Raindrop;

void initRaindrops(Raindrop drops[], int numDrops, int maxCols, int maxRows) {
srand(time(NULL));
for (int i = 0; i < numDrops; ++i) {
drops .x = rand() % maxCols;
drops .y = rand() % maxRows;
drops .symbol = '|';
}
}

void updateRaindrops(Raindrop drops[], int numDrops, int maxRows) {
for (int i = 0; i < numDrops; ++i) {
drops .y = (drops .y + 1) % maxRows;
}
}

void drawRaindrops(Raindrop drops[], int numDrops) {
for (int i = 0; i < numDrops; ++i) {
mvaddch(drops .y, drops .x, drops .symbol);
}
refresh();
}

int main() {
initscr();
noecho();
curs_set(FALSE);

int maxCols, maxRows;
getmaxyx(stdscr, maxRows, maxCols);

Raindrop drops[MAX_DROPS];
initRaindrops(drops, MAX_DROPS, maxCols, maxRows);

while (1) {
clear(); // Limpa a tela

updateRaindrops(drops, MAX_DROPS, maxRows);
drawRaindrops(drops, MAX_DROPS);

usleep(100000);
}

endwin();
return 0;
}
Favorite Game
25
Hours played
16
Achievements
Review Showcase
O jog mais lindo que eu ja tive a honra de jogar. Todos nós deveriamos joga-lo, ele fala de bullying, amor, juventude, aventuras e diversos outros assuntos com um riqueza de detalhes surreal.
Screenshot Showcase
War Thunder
Workshop Showcase
原作1080系列没有背景音乐,于是自己加了个bgm,侵删。 http://steamcommunity.com/sharedfiles/filedetails/?id=821372791 bgm(background music): CMA - You're Not Alone http://music.163.com/m/song?id=27948638&userid=335902440 NEW: 你们要的东方bgm和完整版··· Another bgm(background music) ↓↓↓↓↓↓↓
46,729 ratings
Created by - Aqourz
Items Up For Trade
417
Items Owned
745
Trades Made
7,471
Market Transactions
Recent Activity
560 hrs on record
last played on 17 Jan
18.7 hrs on record
last played on 16 Dec, 2024
0.5 hrs on record
last played on 6 Dec, 2024
Rafael 28 Dec, 2022 @ 9:20pm 
garrincha > pelé
Rafael 30 Nov, 2021 @ 4:04pm 
vai estudar C
Rust Man 14 Sep, 2021 @ 4:36am 
sexo
Buix Laitier 13 Feb, 2021 @ 1:51pm 
Quem tem um amigo tem tudo
Enrico pucci 17 Jan, 2021 @ 10:21am 
O perfil do brabo é brabo slk !
jeremias 28 Dec, 2020 @ 6:50pm 
Salve patrão! Tmjj! Valeu pela força!! <3