Bug fixing

This commit is contained in:
Gnarly Narwhal 2019-04-30 05:45:13 -07:00 committed by Gnarwhal
parent c0fa3999c7
commit 49ca52075d
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
18 changed files with 3315 additions and 11 deletions

Binary file not shown.

Binary file not shown.

BIN
res/img/Cover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
res/img/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

3307
res/img/stuff.ai Normal file

File diff suppressed because one or more lines are too long

View file

@ -29,8 +29,8 @@
#include "GenoShader2c.h"
GenoShader2c::GenoShader2c() :
GenoMvpShader("src/geno/shaders/src/Shader2c/Shader2cv.gls",
"src/geno/shaders/src/Shader2c/Shader2cf.gls",
GenoMvpShader("res/shaders/Shader2c/Shader2cv.gls",
"res/shaders/Shader2c/Shader2cf.gls",
GENO_SHADER_STRING_IS_PATH) {
colorLoc = glGetUniformLocation(program, "inputColor");
}

View file

@ -29,8 +29,8 @@
#include "GenoShader2ss.h"
GenoShader2ss::GenoShader2ss() :
GenoMvpShader("src/geno/shaders/src/Shader2ss/Shader2ssv.gls",
"src/geno/shaders/src/Shader2ss/Shader2ssf.gls",
GenoMvpShader("res/shaders/Shader2ss/Shader2ssv.gls",
"res/shaders/Shader2ss/Shader2ssf.gls",
GENO_SHADER_STRING_IS_PATH) {
textureTransformLoc = glGetUniformLocation(program, "textureTransform");
}

View file

@ -29,8 +29,8 @@
#include "GenoShader2t.h"
GenoShader2t::GenoShader2t() :
GenoMvpShader("src/geno/shaders/src/Shader2t/Shader2tv.gls",
"src/geno/shaders/src/Shader2t/Shader2tf.gls",
GenoMvpShader("res/shaders/Shader2t/Shader2tv.gls",
"res/shaders/Shader2t/Shader2tf.gls",
GENO_SHADER_STRING_IS_PATH) {}
GenoShader2t::~GenoShader2t() {}

View file

@ -132,6 +132,7 @@ bool init() {
GenoWindowCreateInfo winInfo = {};
winInfo.defaultPosition = true;
winInfo.fullscreen = true;
winInfo.title = "Genome";
winInfo.numHints = GENO_ARRAY_SIZE(winHints) / 2;
winInfo.hints = winHints;

View file

@ -52,8 +52,6 @@ Intro::Intro(GenoCamera2D * camera, GlowShader * glow, uint32 next, uint32 reset
}
void Intro::update() {
if (GenoInput::getKeyState(GLFW_KEY_N) == GENO_INPUT_PRESSED)
complete = true;
if (state == FADE_IN) {
const static auto SHADE = 0.5f;
time += GenoEngine::getLoop()->getDelta();

View file

@ -67,8 +67,6 @@ Level::Level(GenoCamera2D * camera, GlowShader * glow, uint32 next, uint32 reset
}
void Level::update() {
if (GenoInput::getKeyState(GLFW_KEY_N) == GENO_INPUT_PRESSED)
complete = true;
if (state == FADE_IN) {
bar->setColor(fromHSV(120, 0.8f, 1));
bar->dimensions.x() = 1845;

View file

@ -93,7 +93,7 @@ Scene * loadLevel1(GenoCamera2D * camera, GlowShader * glow) {
)
};
return new Level(camera, glow, 5, 4, "res/img/Level1.png", numColors, palette, numWalls, walls, 7, 0, 3, { 184.5, 724.793 }, { 300, 0 });
return new Level(camera, glow, 5, 4, "res/img/Level1.png", numColors, palette, numWalls, walls, 6, 0, 3, { 184.5, 724.793 }, { 300, 0 });
}
#define GNARLY_PINBALL_LEVEL1_FORWARD