<commit_before>#include <BackgroundManager.hpp>
#include <Player.hpp>

using namespace uth;

BackgroundManager::BackgroundManager(float bY, float fY, float mY)
{

}
bool BackgroundManager::Init(uth::Layer& bg, uth::Layer& fg)
{
	m_cameraPan = 0;
	m_cameraPanMax = 350;
	m_cameraPanSpd = 2.5;
	m_isCameraTurning = false;
	backG = &bg;
	backF = &fg;

	// Background
	GameObject* temp;

	//Sky
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "sky1" }));
	temp->AddComponent(new Background(c_mountainSpeedM/2,
		uthEngine.GetWindow().GetSize().y - 740, 0, true,
		"backgrounds/sky.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "sky1" }));
	temp->AddComponent(new Background(c_mountainSpeedM/2,
		uthEngine.GetWindow().GetSize().y - 740, 0, false,
		"backgrounds/sky.png"));


	//Mountains
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "mountain1" }));
	temp->AddComponent(new Background(c_mountainSpeedM,
		uthEngine.GetWindow().GetSize().y - 570, 0.5, true,
		"backgrounds/mountains01.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "mountain2" }));
	temp->AddComponent(new Background(c_mountainSpeedM,
		uthEngine.GetWindow().GetSize().y - 570, 0.5, false,
		"backgrounds/mountains02.png"));

	//Backcity
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building3" }));
	temp->AddComponent(new Background(c_backSpeedM / 1.2f,
		uthEngine.GetWindow().GetSize().y - 480, 2, true,
		"backgrounds/buildings01.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building4" }));
	temp->AddComponent(new Background(c_backSpeedM / 1.2f,
		uthEngine.GetWindow().GetSize().y - 480, 2, false,
		"backgrounds/buildings01.png"));

	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building1" }));
	temp->AddComponent(new Background(c_backSpeedM,
		uthEngine.GetWindow().GetSize().y - 480, 2,true, 
		"backgrounds/buildings02.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building2" }));
	temp->AddComponent(new Background(c_backSpeedM,
		uthEngine.GetWindow().GetSize().y - 480, 2, false,
		"backgrounds/buildings02.png"));

	//Frontcity
	backF->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "lantern1" }));
	temp->AddComponent(new Background(c_frontSpeedM,
		uthEngine.GetWindow().GetSize().y - 220, 4, true,
		"backgrounds/lanterns.png"));
	backF->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "lantern2" }));
	temp->AddComponent(new Background(c_frontSpeedM,
		uthEngine.GetWindow().GetSize().y - 220, 4, false,
		"backgrounds/lanterns.png"));
<commit_msg>lowered lanterns<commit_after>#include <BackgroundManager.hpp>
#include <Player.hpp>

using namespace uth;

BackgroundManager::BackgroundManager(float bY, float fY, float mY)
{

}
bool BackgroundManager::Init(uth::Layer& bg, uth::Layer& fg)
{
	m_cameraPan = 0;
	m_cameraPanMax = 350;
	m_cameraPanSpd = 2.5;
	m_isCameraTurning = false;
	backG = &bg;
	backF = &fg;

	// Background
	GameObject* temp;

	//Sky
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "sky1" }));
	temp->AddComponent(new Background(c_mountainSpeedM/2,
		uthEngine.GetWindow().GetSize().y - 740, 0, true,
		"backgrounds/sky.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "sky1" }));
	temp->AddComponent(new Background(c_mountainSpeedM/2,
		uthEngine.GetWindow().GetSize().y - 740, 0, false,
		"backgrounds/sky.png"));


	//Mountains
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "mountain1" }));
	temp->AddComponent(new Background(c_mountainSpeedM,
		uthEngine.GetWindow().GetSize().y - 570, 0.5, true,
		"backgrounds/mountains01.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "mountain2" }));
	temp->AddComponent(new Background(c_mountainSpeedM,
		uthEngine.GetWindow().GetSize().y - 570, 0.5, false,
		"backgrounds/mountains02.png"));

	//Backcity
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building3" }));
	temp->AddComponent(new Background(c_backSpeedM / 1.2f,
		uthEngine.GetWindow().GetSize().y - 480, 2, true,
		"backgrounds/buildings01.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building4" }));
	temp->AddComponent(new Background(c_backSpeedM / 1.2f,
		uthEngine.GetWindow().GetSize().y - 480, 2, false,
		"backgrounds/buildings01.png"));

	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building1" }));
	temp->AddComponent(new Background(c_backSpeedM,
		uthEngine.GetWindow().GetSize().y - 480, 2,true, 
		"backgrounds/buildings02.png"));
	backG->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "building2" }));
	temp->AddComponent(new Background(c_backSpeedM,
		uthEngine.GetWindow().GetSize().y - 480, 2, false,
		"backgrounds/buildings02.png"));

	//Frontcity
	backF->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "lantern1" }));
	temp->AddComponent(new Background(c_frontSpeedM,
		uthEngine.GetWindow().GetSize().y - 120, 4, true,
		"backgrounds/lanterns.png"));
	backF->AddChild(temp = new GameObject(std::vector<std::string>{ "bg", "lantern2" }));
	temp->AddComponent(new Background(c_frontSpeedM,
		uthEngine.GetWindow().GetSize().y - 120, 4, false,
		"backgrounds/lanterns.png"));

{'fraction_non_alphanumeric': 0.18788215675375208, 'fraction_numerical': 0.028163794700759682, 'mean_word_length': 6.01038961038961, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '125288', 'n_tokens_mistral': 2091, 'n_tokens_neox': 1949, 'n_words': 317}