Skip to content

Commit

Permalink
Logica do game melhorada
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielTheophilo committed Dec 29, 2021
1 parent b1b8da0 commit 8c0b7d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file added Starjedi.ttf
Binary file not shown.
6 changes: 3 additions & 3 deletions conways_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FLAGS NECESSÁRIAS PARA O COMPILADOR/LINKADOR -> -lallegro -lallegro_image -lall
using namespace std;


float FPS = 7.1;
float FPS = 12.1;
int SCREEN_W = 1000;
int SCREEN_H = 1000;

Expand Down Expand Up @@ -416,8 +416,8 @@ int main(int argc, char **argv)
if(geracao == 0){
int celRand = 0;
int coluna, linha = 0;
for(int i = 1; i<259;i++){
for(int j = 1; j<259;j++){
for(int i = 59; i<182;i++){
for(int j = 59; j<182;j++){
if(((rand()%8)==1 && MAPA[i][j]!='2')){
MAPA[i][j] = '1';
}
Expand Down

0 comments on commit 8c0b7d4

Please sign in to comment.