Update Usage
This commit is contained in:
parent
fa071ee2e9
commit
2e2991c72e
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ vtr is a 2D game aimed to recreate Skyblock.
|
|||
|
||||
# Usage
|
||||
```
|
||||
./vtr
|
||||
vtr
|
||||
```
|
||||
|
||||
# Building
|
||||
|
|
|
@ -105,7 +105,7 @@ void initialize_world()
|
|||
{
|
||||
for (int i = 0; i < world.max_y; i++) {
|
||||
for (int j = 0; j < world.max_x; j++) {
|
||||
int rand_value = rand() % 10;
|
||||
int rand_value = rand() % 100;
|
||||
if (rand_value < 1) {
|
||||
/* 1% chance for a tree */
|
||||
world.grid[i][j] = 'T';
|
||||
|
@ -208,7 +208,7 @@ void print_world()
|
|||
printf("%s", PATH);
|
||||
break;
|
||||
default:
|
||||
printf("%c", world.grid[i][j]);
|
||||
printf("\033[38;2;0;0;255m=\033[0m", world.grid[i][j]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue