Initial
This commit is contained in:
commit
62d2de747e
1 changed files with 130940 additions and 0 deletions
33
Code blocks projekt/modules/world.c
Normal file
33
Code blocks projekt/modules/world.c
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include "world.h"
|
||||
|
||||
///A menüben használt kamera értékeit állítja be, és csinál hóesést.
|
||||
void createMenuWorld() {
|
||||
int columns, rows;
|
||||
menuCamera(&columns, &rows);
|
||||
setMapSize(columns, rows);
|
||||
setParticleMultiplier(2, true);
|
||||
createParticleList();
|
||||
}
|
||||
|
||||
///Random generál világot, a mentés betöltésnél nem ezt használjuk.
|
||||
void createWorld(int options[]) {
|
||||
setMapSize(options[0], options[1]);
|
||||
|
||||
generateColorMap();
|
||||
setPoints(10);
|
||||
g = options[3] / 10e6;
|
||||
|
||||
vector2D maxVelocity;
|
||||
getPlayerStats(&maxVelocity);
|
||||
|
||||
createMap();
|
||||
generateMap(maxVelocity);
|
||||
|
||||
setPlayerStartingPosition(getMapSize().x / 2, getHeightAtX(getMapSize().x / 2));
|
||||
|
||||
setParticleMultiplier(options[2], false);
|
||||
|
||||
createParticleList();
|
||||
|
||||
freeFloaterList();
|
||||
}
|
||||
Loading…
Reference in a new issue