You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Int32 GridWidth = 112, GridHeight = 112;
spCollision->Create(GridWidth, GridHeight);
Int32 Sx = 52, Sy = 43;
Int32 Ex = 61, Ey = 65;
//Int32 Ex = 52, Ey = 43;
//Int32 Sx = 61, Sy = 65;
std::ifstream file("collition.txt");
if (!file.is_open()) {
std::cerr << "Failed to open file" << std::endl;
return 1;
}
std::string line;
while (std::getline(file, line)) {
std::stringstream ss(line);
std::string token;
while (std::getline(ss, token, ',')) {
int index = std::stoi(token);
int x = index % GridWidth;
int y = index / GridWidth;
spCollision->SetAt(x, y);
}
}
No description provided.
The text was updated successfully, but these errors were encountered: