Skip to content

Conversation

@Falcon22
Copy link
Owner

No description provided.

Silvman and others added 30 commits April 8, 2018 22:23
сам server::worker, обрабатывающий соединения (пока что блокирующий)
серверные сущности server::game и server::player
менеджеры-потомки server::manager
# Conflicts:
#	CMakeLists.txt
#	cmake/Modules/FindSFML.cmake
# Conflicts:
#	CMakeLists.txt
#	src/GameState.cpp
#	src/GameState.h
# Conflicts:
#	CMakeLists.txt
#	src/Game.cpp
#	src/GameState.cpp
#	src/GameState.h
#	src/Map.cpp
Silvman and others added 20 commits May 17, 2018 01:16
# Conflicts:
#	CMakeLists.txt
#	src/Game.cpp
#	src/GameContext.h
#	src/GameState.cpp
#	src/GameState.h
#	src/Multiplayer/ConnectionFacade/ClientConnectionFacade.h
#	src/Multiplayer/Entities/Player.h
#	src/Multiplayer/Manager/PlayerManager.cpp
#	src/Multiplayer/Master.h
#	src/Server/Client.cpp
#	src/Server/Entities.cpp
#	src/Server/Manager.h
#	src/Server/Server.cpp
no hardcoded constants in server

std::shared_ptr<Bullet> TowerLvlOne::makeBullet() {
double radAngle = angle_ * M_PI / 180 - M_PI / 2;
return std::make_shared<BulletLvlOne>(position_ + sf::Vector2f(20 * cos(radAngle), 20 * sin(radAngle)), angle_, target_);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а что означает 20?

}

int Barracks::upgrade() {
if (lvl_ >= 2) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

волшебная двойка..

Game::Game() : window({1000, 1000}, "Tower Defense", sf::Style::Titlebar |
sf::Style::Default, sf::ContextSettings{0, 0, 8, 1, 1, 0, false}),
context(window, font, textureHolder, fontHolder, cursor),
Game::Game() : window({1216, 768}, "Tower Defense", sf::Style::Titlebar |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

почему такой интересный размер?)

}
});

std::cout << "12" << std::endl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это у вас для отладки крашей было?

}

bool Textbox::enterText(sf::Uint32 unicode) {
if(unicode == 8)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

неочевидно..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants