Added planet physics and simple base

This commit is contained in:
Vladislav Khorev committed 2026-01-25 20:55:36 +03:00
1 parent 96d879076a
commit d425167dce
10 files changed
+6321 -22

No files matched your search

+14 -3
View File
@@ -427,6 +427,9 @@ namespace ZL
explosionEmitter.draw(renderer, Environment::zoom, Environment::width, Environment::height);
}
//glBindTexture(GL_TEXTURE_2D, basePlatformTexture->getTexID());
//renderer.DrawVertexRenderStruct(basePlatform);
glDisable(GL_BLEND);
renderer.PopMatrix();
renderer.PopProjectionMatrix();
@@ -1059,7 +1062,7 @@ namespace ZL
handleMotion(mx, my);
}
/*
if (event.type == SDL_MOUSEWHEEL) {
static const float zoomstep = 2.0f;
if (event.wheel.y > 0) {
@@ -1076,9 +1079,17 @@ namespace ZL
{
if (event.key.keysym.sym == SDLK_i)
{
x = x + 1;
}
}*/
if (event.key.keysym.sym == SDLK_k)
{
x = x - 1;
}
if (event.key.keysym.sym == SDLK_a)
{
Environment::shipState.position = { 9466.15820, 1046.00159, 18531.2090 };
}
}
#endif
}
render();