Steam integration, achievements and IU improvements
Author: John Arrow Games,
published 1 month ago,
[h2]Hello everyone![/h2]
I want to let you know that [b]Kosmolaris[/b] now has Steam integration and achievements. 🥳
It might have seemed obvious, but it wasn’t. Since the game is built in HTML+CSS+JavaScript and packaged with Electron, I didn’t have a decent SDK to integrate it with the Steam API—until I found [url=https://github.com/ceifa/steamworks.js]Steamworks.js[/url], which made my life so much easier.
Now the game is fully integrated with Steam, featuring overlay, achievements, and more.
[hr][/hr]
[h3][b]Status Update[/b][/h3]
One of the cool improvements I thought of adding was updating the player's status on the friends list, which shows how many [b]Common[/b] and [b]Special[/b] elements you've unlocked in real time.
[img]https://clan.cloudflare.steamstatic.com/images//45256871/277ae0d9cd3db77b0e3209443c7a528be562743a.png[/img]
[h3][b]Achievements[/b][/h3]
Additionally, I adapted the in-game achievements for Steam so we can all get that much-needed dopamine hit while playing. 🤪
[u]The achievements are divided into 3 categories (or 4, if you count the first one):[/u]
[olist]
[*] [b]Common[/b]: These are regular achievements, earned by progressing and unlocking both common and special elements.
[*] [b]Milestone[/b]: These are awarded when you reach a certain number of unlocked elements.
[*] [b]Rare[/b]: These achievements are considered unique or rare due to their novelty or virtue.
[*] [b]Ultra Rare[/b]: These are hard-to-unlock achievements due to their complexity.
[/olist]
These types of achievements only have these categories within the game, but for Steam, they’re all the same.
[img]https://clan.cloudflare.steamstatic.com/images//45256871/e68c5bc2f38b4590ea37ac93077034e030781c76.png[/img]
[h3][b]UI Improvements[/b][/h3]
Alongside the Steam achievements integration, I also had to add images to each achievement as it was required. I took the opportunity to give this section a facelift and reused the images inside the game as well. Plus, the interface received a significant upgrade, as the previous window had very small text.
[url=https://clan.cloudflare.steamstatic.com/images//45256871/78d6e32ecff5eedad92bdc4623b7ac691636251a.png][img]https://clan.cloudflare.steamstatic.com/images//45256871/78d6e32ecff5eedad92bdc4623b7ac691636251a.png[/img][/url]
Additionally, all windows have been adjusted to adapt to different screen sizes.
[hr][/hr]
[h3][b]What’s next?[/b][/h3]
I'm considering looking into how to integrate Steam Cloud. I’m not making any promises, but I'll investigate it. While it's not something I'm losing sleep over, it wouldn't hurt to implement it.
That's all for now.
See you next time!
[b]John Arrow Games[/b]