More tweaking and refactoring

This commit is contained in:
MitchellHansen
2017-09-23 12:46:26 -07:00
parent e0cb26a9d1
commit 0b42481020
9 changed files with 154 additions and 106 deletions

View File

@@ -2,14 +2,13 @@
#include "Pub_Sub.h"
Camera::Camera() {
}
Camera::Camera() {}
Camera::Camera(sf::Vector3f position, sf::Vector2f direction, sf::RenderWindow* window) :
position(position), direction(direction), window(window)
{
fixed = sf::Vector2i(sf::Vector2i(window->getSize().x/2, window->getSize().y/2));
position(position), direction(direction), window(window) {
fixed = sf::Vector2i(sf::Vector2i(window->getSize().x/2, window->getSize().y/2));
}
Camera::~Camera() {