Spawn player with P, will be working on collisions and physics soon.
This commit is contained in:
@@ -438,10 +438,10 @@ namespace CaveGame::ClientApp
|
||||
|
||||
|
||||
auto coords = game_ctx->world->camera.ScreenToWorld(pos);
|
||||
auto* plr = new Core::Explosion(game_ctx->world, coords, 1.f, tool_radius);
|
||||
//auto* plr2 = new Core::Player(coords);
|
||||
//game_ctx->world->AddEntity(plr2);
|
||||
game_ctx->world->AddEntity(plr);
|
||||
//auto* plr = new Core::Explosion(game_ctx->world, coords, 1.f, tool_radius);
|
||||
auto* plr2 = new Core::Player(coords);
|
||||
game_ctx->world->AddEntity(plr2);
|
||||
//game_ctx->world->AddEntity(plr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user