pelya

joined 1 year ago
[–] pelya@lemmy.world 0 points 1 day ago

Extend C++ for safety

I stopped reading after this. Why do you think C++ is unsafe in the first place? Someone decided ro extend it, and now you cannot even read an error message without finishing an university course on lambda calculus first.

[–] pelya@lemmy.world 15 points 4 days ago (1 children)

Back in the 80386 days there was one model of BIOS that would print 'CPU not found' if you had your CRT monitor and VGA videocard plugged in.

[–] pelya@lemmy.world 6 points 5 days ago

Your viruses installed themselves a Windows virtual machine to run properly?

 

Lemmy Connect attempts to add ?format=webp to the image URL when loading .gif image, this makes many Lemmy servers return an error. When opening the post in the web browser, without the extra addition to the image URL, the image loads correctly.

Post where the bug is present: https://lemmy.world/post/19556846

[–] pelya@lemmy.world 16 points 1 week ago

You simply need to accept the risc.

[–] pelya@lemmy.world 2 points 2 weeks ago

Yet I still had an urge to explain an obvious thing. Because it's C++, so everyhing goes. There are even tools to auto-generate C++ interfaces, because of course someone decided that C++ is inadequate and must be improved using some kind of poorly-documented ad-hoc extension language on top of C++.

[–] pelya@lemmy.world 1 points 2 weeks ago (2 children)

I know at least three ways, one of them involves variadic macros.

You don't even need to look that far, take any sufficiently aged library, like OpenGL.

[–] pelya@lemmy.world 2 points 2 weeks ago

It was a Linux joke, nevermind.

[–] pelya@lemmy.world 1 points 2 weeks ago (2 children)

Is this systemd?

[–] pelya@lemmy.world 34 points 2 weeks ago (7 children)

C++ is fiiiiine. Just use the modern variant of the language, don't bother with hand-optimizing your memory allocators, and generally avoid anything involving pointer arithmetics. So, basically, use it like you would use Python.

[–] pelya@lemmy.world 2 points 2 weeks ago

I guess that phone would use eSim, so no slot is needed.

[–] pelya@lemmy.world 5 points 2 weeks ago (2 children)

This needs some simple hardware trigger, that can be queried by bootloader, but specific wnough so it won't trigger in your pocket. If buttons are unavailable, I can propose several idead:

  • Cover the proximity sensor 10 times per second. Requires good motor skills.
  • Shine separated red, green, and blue lasers into three of the phone cameras. You'll need a box with three different-colored LEDs to cover cameras module.
  • There is a low-speed data channel in wireless chargers. Just add the button to the charger instead of the phone.
  • Put your phone at exactly 2.5G of acceleration. Accelerometer is easy to use even from the bootloader, however you will need to put your phone in a centrifuge and reboot it while it's rotating.
  • An option 'Reboot into recovery' in system settings, duh. Won't help if your ROM fails to boot.
[–] pelya@lemmy.world 1 points 2 weeks ago (1 children)

I've tried replacing .gif image with .mp4, now it simply does not show the thumbnail at all, but loads fine when you click the post title.

20
submitted 3 weeks ago* (last edited 2 weeks ago) by pelya@lemmy.world to c/imaginaryfairies@lemmings.world
 
 

I often want to copy some phrase from a post to search it on the web. Long-pressing post text minimizes this post into a single line, which is not very useful IMO, I would rather have text selection cursor like in a web browser.

 

Some studios are still releasing premium games in 2023. Undead Horde 2 is a dungeon crawler with no ads or IAP, and it costs $10.

It features 3D blocky graphics, although less blocky than Undead Horde 1. The combat is moderately paced and depends more on upgrades than on button mashing, most of the time your minions do all the fighting. There are no puzzles, just some fetch quests to progress the story.

 

I've unlocked all weapons in Vampire Survivors, and I'm too bored to grind the remaining 14 unlocks.

Please recommend me some proper, $10 up-front games.

 

I want to open large image with comments below when clicking on a post, like in Jerboa

1
submitted 1 year ago* (last edited 1 year ago) by pelya@lemmy.world to c/androidgamers@lemmy.world
 

I've encountered many, many mobile games where the character needs to perform five different actions, so the developer adds five separate buttons to the screen. Of course you will mis-tap them and die in the middle of a boss fight.

The best touch controls are achieved when the dev designs the game around touchscreen, not attempts to adapt touch controls for some existing game.

For platformers there are two movement buttons on the left, and three buttons on the right part of the screen - jump, attack, and alternate attack or some action like dodge. Any more buttons make the game hard to play. There is also a common mistake of making buttons the size of a thumbtack. Ideally the buttons should be as big as a 5 Euro coin, that would be a third or even a half of screen width for most phones.

My recommendations are SuperTux and Swordigo.

For twin-stick ahooters there are two joysticks, and maybe one or two extra action buttons above the right joystick, but not anything more.

The best examples are Space Marshals and Crimsonland.

Top-view RPGs and dungeon crawlers also tend to use twin stick controls. The gameplay tends to be more relaxed, because you can slways grind few more levels and don't bother dodging enemy attacks.

Shoot-em-up is another type of game that works really well with the touchscreen. Your aircraft follows your finger no matter where you touch the screen, it's simpe and it works well. There is a wide variety of quality shmups on Play Store, try OpenTyrian for some classic DOS gameplay.

Honorable mention to swipe controls. You can swipe up/down/left/right without aiming for a specific button and even without looking at the screen, ao it's impossible to mis-tap the wrong button. The downside is that swiping is slower than taps, so the gameplay tends to be slower. Reaper is a good example.

First person shooters are okay for casual gaming, but playing any competitive Counter Strike clone like Critical Strike or Critical Force will earn you a friction burn on your finger, because you are swiping the screen non-stop to aim.

I'm not reviewing strategy games here, they can have 10-layer menus and dialogs and still be playable.

Some racing games support gyroscope as a replacement for the steering wheel, it works rather well.

And of course there are infinite runner games. I don't want to call the whole infinite runner category trash, there are some good runner games like SmashHit or Vektor or Alto's Odyssey, but if it's three lanes infinite runner, you will watch ads each 30 seconds, and the gameplay is only fun for the first 30 seconds.

Flappy bird. Best touch controls ever, but the game itself is garbage.

There is a specific class of mobile gamers who are using gamepads. The gamepad is great for sure, you have a separate button for each finger, however the gamepad is more often than not bigger than the phone, so you are losing convenience and need clothing with huge pockets.

view more: next ›