-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ErFer7/v2.16
v2.16
- Loading branch information
Showing
14 changed files
with
540 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
void InitEventStateMachine(float tick_, int consoleWidth_, int consoleHeight_); | ||
void RunEventStateMachine(); | ||
void FreeEventStateMachine(); | ||
void PlayEventBehaviourWrapper(int worldWidth_, int worldHeight_, int empty_, int fixedScreen_); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#pragma once | ||
|
||
extern int worldWidth, worldHeight, empty; | ||
|
||
double RawNoise(int n); | ||
double Noise(int x, int y, int octave, int seed); | ||
double Interpolate(double a, double b, double x); | ||
double Smooth(double x, double y, int octave, int seed); | ||
double PerlinNoise(double x, double y, double persistence, int octaves, int seed); | ||
void GenerateWorld(int width, int height); | ||
void GenerateWorld(int worldWidth_, int worldHeight_, int empty_); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
release: src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c main.c | ||
release: src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c | ||
@echo Building the game with release options. | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c main.c -o Survive -O3 -s -DNDEBUG -fopenmp | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c -o Survive -O3 -s -DNDEBUG -fopenmp | ||
|
||
debug: src/core.c src/utilities.c src/core.c src/graphics.c src/interface.c src/entity.c src/world.c main.c | ||
debug: src/core.c src/utilities.c src/core.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c | ||
@echo Building the game with debug options. | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c main.c -o Survive -O3 -g -Wall -fopenmp | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c -o Survive -O3 -g -Wall -fopenmp | ||
|
||
dis_release: src/core.c src/utilities.c src/core.c src/graphics.c src/interface.c src/entity.c src/world.c main.c | ||
dis_release: src/core.c src/utilities.c src/core.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c | ||
@echo Building the game with assembly output. | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c main.c -o Survive -O3 -s -DNDEBUG -fopenmp | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c -o Survive -O3 -s -DNDEBUG -fopenmp | ||
objdump -drwC -Mintel Survive.exe > Survive.s | ||
|
||
dis_debug: src/core.c src/utilities.c src/core.c src/graphics.c src/interface.c src/entity.c src/world.c main.c | ||
dis_debug: src/core.c src/utilities.c src/core.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c | ||
@echo Building the game with assembly output. | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c main.c -o Survive -O3 -g -Wall -fopenmp | ||
gcc src/core.c src/utilities.c src/graphics.c src/interface.c src/entity.c src/world.c src/statemachine.c main.c -o Survive -O3 -g -Wall -fopenmp | ||
objdump -drwC -Mintel Survive.exe > Survive.s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.