https://kotlinlang.org logo
Title
a

Abhinav

03/23/2023, 7:43 PM
Hey everyone 👋, Exited to share Typster, a typing game built using desktop compose. It's been a really fun journey while building this up. Leaned about game loop, audio streams and many other essentials things around jvm and desktop environment. Do check it out guys :) Github - https://github.com/abhinav12k/Typster
s

Stephan Schröder

03/24/2023, 8:32 AM
cool stuff! I love implementing a small game to get familiar with a technology 🕹️🤓
a

Abhinav

03/24/2023, 10:58 AM
Yeah it was definitely fun 😄 building this up. PS - This is the first game I ever built
s

Stephan Schröder

03/28/2023, 8:09 AM
something I thought while trying the game, is that the effect of typing is immediate while the actual bullets only hit slightly later. You could change out the bullets for a laser (or if that's too boring for lightning-> a broken line) to make the graphical effect also immediate.
a

Abhinav

03/28/2023, 5:45 PM
Yes that is an issue. Actually the bullets take some time to reach the word I need to fix that up. Lightening sounds awesome but wondering how to produce that kind of effect in compose
s

Stephan Schröder

03/29/2023, 9:12 AM
a "laser" would be a single Line from start to target, "lightning" would be a brocken up line, so many line segments/ individual calls to drawLine.