Kiet
Kiet
While doing some performance profiling I noticed that the tryTakeItem was iterating through an array every time in order to find whether or not a slot is populated. I realized...
What happens to me frequently: 1. Click and drag conveyer 2. Accidentally zoom out too much 3. The conveyer track completely disappears so I have to repeat (1) again This...
Usually in game code I see some kind of delta time being factored in between updates but I'm not noticing any code referencing time anywhere? I was wondering how the...
Running on the latest android studio version. Android Studio 4.2.2 Build #AI-202.7660.26.42.7486908, built on June 23, 2021 Runtime version: 11.0.8+10-b944.6842174 amd64 VM: OpenJDK 64-Bit Server VM by N/A Windows 10...
My use case: When a user wants to change the map size I open a window where they can change that setting: I'd like to disable their ability to move...
There is an open source version of this for JS: https://github.com/phoboslab/jsmpeg I took a brief glance at the code required to re-implement in Kotlin and it doesn't look bad at...
To avoid allocating another Bitmap if we already have one that can be used.
Improve readability without having to go look at the documentation to find out what units the returned value is in.