Skip to content
Permalink
Browse files

made fullscreen for video recording

  • Loading branch information
thatgamesguy committed Jul 18, 2018
1 parent 95ce84f commit 1d9ab5ec46e31fae33f0e0fdf116382db10c901c
@@ -1,7 +1,7 @@
#include "C_Velocity.hpp"
#include "Object.hpp"

C_Velocity::C_Velocity(Object* owner) : Component(owner), velocity(0.f, 0.f), maxVelocity(80.f, 80.f){}
C_Velocity::C_Velocity(Object* owner) : Component(owner), velocity(0.f, 0.f), maxVelocity(200.f, 200.f){}


void C_Velocity::Update(float deltaTime)
@@ -4,7 +4,7 @@

GeneticAlgorithm::GeneticAlgorithm(ObjectCollection& objects, WorkingDirectory& workingDir, ResourceAllocator<sf::Texture>& textureAllocator, Window& window) : objects(objects), workingDir(workingDir), textureAllocator(textureAllocator), window(window), maxPoolSize(40), totalFitnessScore(0.f), mutationChance(0.1f), genNumber(0), addedToGame(0)
{
const unsigned int numOfUFOsToSpawn = 80;
const unsigned int numOfUFOsToSpawn = 200;

for (int i = 0; i < numOfUFOsToSpawn; i++)
{
@@ -66,7 +66,7 @@ std::vector<float> NeuralNetwork::GetOutput(const std::vector<float>& input)
netInput += layers[i].neurons[j].weights[numInputs - 1] * bias;

//Store result in output
// float sigOutput = FastSigmoid(netInput);
//float sigOutput = FastSigmoid(netInput);
outputs.push_back(netInput);

weightCount = 0;
@@ -19,6 +19,8 @@ void SceneSplashScreen::OnCreate()

sf::Vector2u windowCentre = window.GetCentre();
splashSprite.setPosition(windowCentre.x, windowCentre.y);

splashSprite.setScale(1.8, 1.8);
}
}

@@ -1,9 +1,10 @@
#include "Window.hpp"

Window::Window(const std::string& windowName) : window(sf::VideoMode(1920, 1080), windowName, sf::Style::Titlebar)
Window::Window(const std::string& windowName) : window(sf::VideoMode(1920, 1080), windowName, sf::Style::Fullscreen)
{
window.setVerticalSyncEnabled(true);
window.setFramerateLimit(60);
window.setMouseCursorVisible(false);
}

void Window::Update()

0 comments on commit 1d9ab5e

Please sign in to comment.
You can’t perform that action at this time.