[Zad3] Remove comments, add more text
This commit is contained in:
parent
faa6e109f6
commit
1482d95397
@ -218,12 +218,6 @@
|
||||
<Text Include="assets\levels\level1.txt">
|
||||
<DeploymentContent>true</DeploymentContent>
|
||||
</Text>
|
||||
<Text Include="assets\levels\level2.txt">
|
||||
<DeploymentContent>true</DeploymentContent>
|
||||
</Text>
|
||||
<Text Include="assets\levels\level3.txt">
|
||||
<DeploymentContent>true</DeploymentContent>
|
||||
</Text>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Font Include="assets\fonts\Roboto-Thin.ttf">
|
||||
|
@ -179,7 +179,5 @@
|
||||
<ItemGroup>
|
||||
<Text Include="assets\fonts\LICENSE.txt" />
|
||||
<Text Include="assets\levels\level1.txt" />
|
||||
<Text Include="assets\levels\level2.txt" />
|
||||
<Text Include="assets\levels\level3.txt" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -254,7 +254,6 @@ namespace KapitanGame {
|
||||
if (Input.IsKeyboardButtonHeld(SDL_SCANCODE_F3))
|
||||
{
|
||||
Settings.MaxJumpHeight -= 0.1f;
|
||||
//Settings.SetMaxJumpHeight(Settings.GetMaxJumpHeight() - 0.1f);
|
||||
SettingsTextTextureDirty = true;
|
||||
}
|
||||
if (Input.IsKeyboardButtonHeld(SDL_SCANCODE_F4))
|
||||
@ -300,19 +299,25 @@ namespace KapitanGame {
|
||||
camera.Update(Pawns, Map);
|
||||
|
||||
}
|
||||
//if (SettingsTextTextureDirty) {
|
||||
Textures.insert_or_assign("Text_Settings", Fonts["PressStart2P-Regular"].GetTextTexture(
|
||||
Utils::StringFormat(
|
||||
"Max Jump Height: %f\nHorizontal Distance to Max Jump Height: %f\nInitial Jump Velocity: %f\nGravity: %f\nPlayer Position X: %f\nPlayer Position Y: %f",
|
||||
"Developer Mode (F1): %d\n"
|
||||
"Collision Enabled (F2): %s\n"
|
||||
"Max Jump Height (F3/F4): %f\n"
|
||||
"Horizontal Distance to Max Jump Height (F5/F6): %f\n"
|
||||
"Initial Jump Velocity: %f\n"
|
||||
"Gravity: %f\n"
|
||||
"Player Position X: %f\n"
|
||||
"Player Position Y: %f",
|
||||
static_cast<int>(devMode),
|
||||
Settings.CollisionEnabled ? "True" : "False",
|
||||
static_cast<float>(Settings.MaxJumpHeight),
|
||||
static_cast<float>(Settings.HorizontalDistanceToMaxJumpHeight),
|
||||
static_cast<float>(Settings.JumpInitialVelocity),
|
||||
static_cast<float>(Settings.Gravity),
|
||||
Pawns.back()->GetPosition().X,
|
||||
Pawns.back()->GetPosition().Y), {0, 0, 0, 0xFF},
|
||||
Pawns.back()->GetPosition().Y), { 0, 0, 0, 0xFF },
|
||||
Renderer));
|
||||
//SettingsTextTextureDirty = false;
|
||||
//}
|
||||
|
||||
|
||||
if (!Playing)
|
||||
@ -348,10 +353,6 @@ namespace KapitanGame {
|
||||
}
|
||||
if (devMode >= 2)
|
||||
{
|
||||
SDL_SetRenderDrawColor(Renderer, 0x00, 0x00, 0x00, 0xFF);
|
||||
SDL_RenderDrawLineF(Renderer, 0, Constants::SCREEN_HEIGHT / 2.f, Constants::SCREEN_WIDTH, Constants::SCREEN_HEIGHT / 2.f);
|
||||
SDL_RenderDrawLineF(Renderer, Constants::SCREEN_WIDTH / 2.f, 0, Constants::SCREEN_WIDTH / 2.f, Constants::SCREEN_HEIGHT);
|
||||
SDL_SetRenderDrawColor(Renderer, 0x00, 0xFF, 0x00, 0xFF);
|
||||
|
||||
SDL_RenderDrawPointF(Renderer, camera.GetFocusPoint().X * debugCamera.GetScale(), camera.GetFocusPoint().Y * debugCamera.GetScale());
|
||||
SDL_SetRenderDrawColor(Renderer, 0xFF, 0x00, 0x00, 0xFF);
|
||||
|
@ -7,9 +7,9 @@
|
||||
|
||||
|
||||
|
||||
# ##### ##
|
||||
## ##
|
||||
# ##### ## ##
|
||||
## ## ##
|
||||
P ## ## ##
|
||||
##################################################################
|
||||
##################################################################
|
||||
## ## ## ##
|
||||
P ## ## ## ##
|
||||
############################################################################
|
||||
############################################################################
|
@ -1,37 +0,0 @@
|
||||
#####################################
|
||||
# # # # # # #
|
||||
# ### ### # # # ######### # ##### # #
|
||||
# # # # # # # # # #
|
||||
### # ### # ####### # # ##### # ### #
|
||||
# # # # # # # # #
|
||||
### ########### # ### # # # # ### ###
|
||||
# # # # # # # # # # # #
|
||||
# # ### ### # ### ### # ######### # #
|
||||
# # # # # # # # #
|
||||
# # ### # # ### # # # ### ######### #
|
||||
# # # # # # # # # # # # # #
|
||||
# ##### # # # # ####### ### ##### # #
|
||||
# # # # # # # #
|
||||
# ##### # # # ##### ####### ### # ###
|
||||
# # # # # # # # # #
|
||||
####### ### ### # # # # ### ####### #
|
||||
# # # # # # # # # # # #
|
||||
# ##### # # ##### ### # ### # # ### #
|
||||
# # # # # # # # # # # # # #
|
||||
# # # ### ### ### ### # ### ##### ###
|
||||
# # # # # # # # #
|
||||
# ####### ##### # ### ####### #######
|
||||
# # # # # # #
|
||||
# # ### ##### ############# ### #####
|
||||
# # # # # # # # # #
|
||||
### # # ######### # # # # # # # ### #
|
||||
# # # # # # # # # #
|
||||
# ##### ### ### # # ### # ### ##### #
|
||||
# # # # # # # # # # # #
|
||||
# # ### ### # # # # ##### # # # # # #
|
||||
# # # # # # # # # # # # # #
|
||||
# ####### ### ######### ######### # #
|
||||
# # # # # # # # # # #
|
||||
# # ######### # # # ##### # # # # # #
|
||||
# # # # #
|
||||
#####################################
|
@ -1,41 +0,0 @@
|
||||
#########################################
|
||||
# # # # # # # #
|
||||
# # ### # # ####### ### ####### ####### #
|
||||
# # # # # # # # # # #
|
||||
# # # # # ##### ####### # ### # ### #####
|
||||
# # # # # # # # # #
|
||||
# # ### # ##### ##### ### ### # ##### # #
|
||||
# # # # # # # # # #
|
||||
### ######### ##### ####### ### ##### # #
|
||||
# # # # # # # # # # #
|
||||
# ### # ### ### ##### # # ### ### # ### #
|
||||
# # # # # # # # # # # #
|
||||
### ### ####### # # # ####### # # # # # #
|
||||
# # # # # # # # # # # # # # #
|
||||
# ### # # ### ### # ### # # ### ##### ###
|
||||
# # # # # # # # # # # #
|
||||
# # # ### ##### ##### # ##### # # ### ###
|
||||
# # # # # # # #
|
||||
# ####### ### ### # # ######### # #######
|
||||
# # # # # # # #
|
||||
# ### ##### ### # ########### ######### #
|
||||
# # # # # # # # # # # #
|
||||
# ##### # # ### ### ### ### # # # # ### #
|
||||
# # # # # # # # # # # # #
|
||||
# # ### # ### # ### # ##### ##### # # ###
|
||||
# # # # # # # # # # # #
|
||||
# ##### ####### ####### ### ##### # # # #
|
||||
# # # # # # # # # # # # #
|
||||
### ### ### ### # # ### ##### ####### # #
|
||||
# # # # # # # # #
|
||||
### ##### ##### ### ##### # ### ### # # #
|
||||
# # # # # # # # # # #
|
||||
# ##### # ### ##### # # # ### ### ### # #
|
||||
# # # # # # # # # # # #
|
||||
##### # ### ##### ### # # # ### # # # ###
|
||||
# # # # # # # # # # #
|
||||
# ##### ####### ####### # ##### ### # ###
|
||||
# # # # # # # # # # #
|
||||
# # # # ### ### # ### # ##### ### # # # #
|
||||
# # # # # # # # # # # #
|
||||
#########################################
|
Loading…
Reference in New Issue
Block a user