[-] blazebra@programming.dev 24 points 4 months ago

Following this logic whole human life is a puzzle game.

[-] blazebra@programming.dev 12 points 4 months ago

It’s a good suggestion

[-] blazebra@programming.dev 2 points 5 months ago

I still prefer 7z for compression

[-] blazebra@programming.dev 3 points 5 months ago

7z has way better (ultra) compression

[-] blazebra@programming.dev 2 points 5 months ago

It would be more cool with better descriptions and visual examples

[-] blazebra@programming.dev 2 points 5 months ago

One more thing I forgot to say. If default function of the alt key is to open menu, that it’s defined somewhere in your game, settings or the engine. If you try default loop in win32 api app with an empty window, alt key does nothing and you need actually bind it to change its behaviour to show menu. So I recommend to blame settings or an engine first before disabling events on so low level.

Also such way of disabling events would prevent you of porting your app to other OSes like Linux and macOS

[-] blazebra@programming.dev 2 points 5 months ago

The test of behaviour I tell is an input field, allowing to type letters of European languages like ü, ä, ą and so on. I’m quite disappointed when I can’t input something like „Łabądź” as a player name, but able to edit in memory or in save file.

Also I prefer to have Alt-F4 as an emergency exit

[-] blazebra@programming.dev 2 points 5 months ago

If you’d have any user input, this would break it. Even if you emulate it using key codes later, localisation will be hard

[-] blazebra@programming.dev 2 points 6 months ago

Integer sqrt can be used for integers with any length, not only for integers fit into f64

[-] blazebra@programming.dev 1 points 6 months ago

Integer sqrt is usually not a library function and it’s very easy to implement, just a few lines of code. Algorithm is well defined on Wikipedia you read a lot. And yes, it doesn’t use FPU at all and it’s quite fast even on i8086.

[-] blazebra@programming.dev 2 points 6 months ago

Nice article, I enjoyed it. Why float sqrt has been used? Integer sqrt is way faster and easily supports integers of any lengths

[-] blazebra@programming.dev 5 points 6 months ago

Could you please explain why he should be embarrassed by such post? What would you improve?

view more: next ›

blazebra

joined 1 year ago