Kamski Playtest | PATCH 0.0.1 - "UI rework & small quality of life improvements" is now LIVE!
📋Full Patch Notes
User Interface
- Fire balls shot from enemies are now red to distinguish them from player shot fire balls
- Added a health bar so it's easier to see your health now
- Items now display their abilities if they provide one
- Added a dynamic hotbar to show which ability is equipped in which slot
- Added a pop-up to settings menu in case user forgets to save the settings
- Changed the look of some user interface elements across the game
- Most user interface elements have an animation now
- Added a second icon for dropped items to better differentiate between the item that gives the fireball ability and the one that gives the dash ability
- Stats are now in a separate window that can be opened with "C"
Other improvements
- You can close settings menu by pressing escape as well
- Movement is changed from traditional "WASD" to Left click. Players can either hold Left click and the character will move towards the mouse pointer or they can click anywhere on the screen and the character will go to that place
- Items can be instantly picked-up with inventory open
- Items can also be picked up when clicked from afar. Character will go towards the item and pick when in range.
We also did some small quality of life improvements and fixes.
You can finally know what ability each item grants you, if any.

We also added a hotbar to help the players know which ability is on which slot number.
And a bunch of other changes to the existing UI elements.
Now that steam integration is done, focus was on reworking the UI framework on the engine side for the 4-th and hopefully... last time. With the new UI, we managed to reduce the code needed to make any sort of UI by a factor of 3!

Old UI framework
for (u32 index = 0; index < 2; index++)
{
switch(index)
{
case 0:
{
if (isAudioTextClicked)
{
engine->drawColoredQuadUI({300.0f, -60.0f},
{2000.0f / 1.2f, 2.0f},
{1.0f, 0.72f, 0.0f, 1.0f},
PI / 2.0f);
engine->drawColoredQuadUI({1100.0f, 700.0f},
{900.0f, 2.0f},
{1.0f, 0.72f, 0.0f, 1.0f},
0.0f);
engine->uiText(AnchorPoint::W,
{2270.0f, 500.0f},
30.0f,
textToDisplay,
{1.0f, 1.0f, 1.0f, 1.0f});
engine->uiText(AnchorPoint::C,
{1100.0f, 710.0f},
64.0f,
textTitleToDisplay,
{1.0f, 1.0f, 1.0f, 1.0f});
audioTextColor = {1.0f, 0.72f, 0.0f, 1.0f};
engine->uiTexture({textXPosition, textYPosition - offsetY},
audioTextLength,
AnchorPoint::NW,
engine->getImageAsset(ImageAssets::ELLIPSE_BACKGROUND, nullptr));
if (engine->uiColoredButton({-863.0f, 527.0f},
{1790.0f, 200.0f},
AnchorPoint::C,
{0.1f, 0.1f, 0.25f, 1.0f},
{1.0f, 0.72f, 0.0f, 1.0f}) == UIButtonState::HOVERED || isMasterButtonHovered)
{
isMasterButtonHovered = true;
isSoundEffectsButtonHovered = false;
isMusicButtonHovered = false;
engine->uiColoredButton({-863.0f, 527.0f},
{1790.0f, 200.0f},
AnchorPoint::C,
{1.0f, 0.72f, 0.0f, 1.0f},
{1.0f, 0.72f, 0.0f, 1.0f});
snprintf(textTitleToDisplay, sizeof(textTitleToDisplay), "%s", "MASTER");
snprintf(textToDisplay, sizeof(textToDisplay), "%s", "Adjusts the volume of every sound source.");
engine->drawColoredQuadUI({-600.0f, 527.0f},
{850.0f, 20.0f},
{0.0f, 0.0f, 0.0f, 1.0f},
0.0f);
engine->uiColoredButton({masterButtonXPosition, 527.0f},
{50.0f, 50.0f},
AnchorPoint::C,
{0.0f, 0.0f, 0.0f, 1.0f},
{0.0f, 0.0f, 0.0f, 1.0f});
engine->uiText(AnchorPoint::NW,
{140.0f, -445.5f},
45.0f,
"Master",
{0.0f, 0.0f, 0.0f, 1.0f});
engine->uiText(AnchorPoint::NW,
{1750.0f, -455.0f},
45.0f,
masterVolumeAmmount,
{0.0f, 0.0f, 0.0f, 1.0f});
if (engine->uiColoredButton({masterButtonXPosition, 527.0f},
{50.0f, 50.0f},
AnchorPoint::C,
{0.0f, 0.0f, 0.0f, 1.0f},
{0.0f, 0.0f, 0.0f, 1.0f}) == UIButtonState::CLICKED || isMasterButtonClicked)
{
if ((masterButtonXPosition >= -1000.0f) && (masterButtonXPosition <= -200.0f))
{
masterButtonXPosition = mousePos.x;
}
if (masterButtonXPosition < -1000.0f)
{
masterButtonXPosition = -1000.0f;
}
if (masterButtonXPosition > -200.f)
{
masterButtonXPosition = -200.0f;
}
isMasterButtonClicked = true;
}
if (isMasterButtonClicked && (engine->getMouseButtonState(MouseButtonCode::LEFT_CLICK) == KEY_STATE_RELEASE || engine->getMouseButtonState(MouseButtonCode::LEFT_CLICK) == KEY_STATE_NONE))
{
isMasterButtonClicked = false;
}
}
else
{
engine->drawColoredQuadUI({-600.0f, 527.0f},
{850.0f, 20.0f},
{0.8f, 0.8f, 0.8f, 1.0f},
0.0f);
engine->uiColoredButton({masterButtonXPosition, 527.0f},
{50.0f, 50.0f},
AnchorPoint::C,
{0.9f, 0.9f, 0.9f, 1.0f},
{0.8f, 0.8f, 0.8f, 1.0f});
engine->uiText(AnchorPoint::NW,
{140.0f, -445.5f},
45.0f,
"Master",
{1.0f, 1.0f, 1.0f, 1.0f});
engine->uiText(AnchorPoint::NW,
{1750.0f, -455.0f},
45.0f,
masterVolumeAmmount,
{1.0f, 1.0f, 1.0f, 1.0f});
if (engine->uiColoredButton({masterButtonXPosition, 527.0f},
{50.0f, 50.0f},
AnchorPoint::C,
{0.9f, 0.9f, 0.9f, 1.0f},
{0.8f, 0.8f, 0.8f, 1.0f}) == UIButtonState::CLICKED || isMasterButtonClicked)
{
if ((masterButtonXPosition >= -1000.0f) && (masterButtonXPosition <= -200.0f))
{
masterButtonXPosition = mousePos.x;
}
if (masterButtonXPosition < -1000.0f)
{
masterButtonXPosition = -1000.0f;
}
if (masterButtonXPosition > -200.f)
{
masterButtonXPosition = -200.0f;
}
isMasterButtonClicked = true;
}
if (isMasterButtonClicked && (engine->getMouseButtonState(MouseButtonCode::LEFT_CLICK) == KEY_STATE_RELEASE || engine->getMouseButtonState(MouseButtonCode::LEFT_CLICK) == KEY_STATE_NONE))
{
isMasterButtonClicked = false;
}
}
if (!isMasterButtonClicked &&
((mousePos.x <= -1758.0f ||
mousePos.x >= 32.0f) ||
(mousePos.y <= 427.0f ||
mousePos.y >= 627.0f)))
{
isMasterButtonHovered = false;
}
snprintf(masterVolumeAmmount, sizeof(masterVolumeAmmount), "%d", int((std::abs(-1000.0f - masterButtonXPosition) * 100) / 800.0f));
New UI framework
UISliderElement elements[] =
{
{"Master", 0.0f, 100.0f},
// {"Sound Effects", 0.0f, 100.0f},
// {"Music", 0.0f, 100.0f},
};
char* vecs[] =
{
gameState->audioSliderTextInputs[0],
// gameState->audioSliderTextInputs[1],
// gameState->audioSliderTextInputs[2],
};
uiSize(uiUnits(1900.0f, 1.0f), uiChildrenSum())
uiFontSize(45.0f)
uiSliderArray(&gameState->interactedSliderIndex, gameState->audioSliderOutputs, elements, ARRAY_COUNT(elements), "Sliders", uiUnits(100.0f, 1.0f))
{
uiInteractTextColors(glm::vec4(1.0f, 1.0f, 1.0f, 1.0f),
glm::vec4(1.0f, 1.0f, 1.0f, 1.0f),
glm::vec4(1.0f, 1.0f, 1.0f, 1.0f))
uiSliderText(uiUnits(50.0f, 1.0f));
uiInteractColors(glm::vec4(1.0f, 1.0f, 1.0f, 1.0f),
glm::vec4(1.0f, 1.0f, 1.0f, 1.0f),
glm::vec4(1.0f, 1.0f, 1.0f, 1.0f))
uiSliderBar(uiUnits(50.0f, 1.0f));
uiInteractColors(glm::vec4(0.7f, 0.7f, 0.7f, 1.0f),
glm::vec4(0.6f, 0.6f, 0.6f, 1.0f),
glm::vec4(0.35f, 0.35f, 0.35f, 1.0f))
uiSliderButton();
uiInteractColors({}, {}, {})
uiSliderInput(uiUnits(0.0f, 1.0f), vecs, 4);
}
Yep, just to get a better picture, in the old framework, that code snippet is all the logic + graphical content for just 1 slider! While in the new one, above code snippet does exactly the same + some minor graphical modifications for, you guess it.... all 3 sliders!!!(Sound effects and music sliders are disabled until we separte the sounds on the engine side).

