• 105 Posts
  • 177 Comments
Joined 2 years ago
cake
Cake day: July 17th, 2023

help-circle
  • It’s not a thing and I totally agree it should exist, there’s a proposal for it on GitHub.

    If you want to handle different types, the right way of doing it is giving your parameter a generic type then checking what it is in the function.

    func _ready():
        handle_stuff(10)
        handle_stuff("Hello")
    
    func handle_stuff(x: Variant):
        if x is int:
            print("%d is an integer" % x)
        elif x is String:
            print("%s is a string" % x)
    

    This prints 10 is an integer and Hello is a string.

    If you really, really need to have a variable amount of arguments in your function, you can pass an array. It’s pretty inefficient but you can get away with it.

    func handle_stuff(stuff: Array):
        for x: Variant in stuff:
            if x is int:
                print("%d is an integer" % x)
            elif x is String:
                print("%s is a string" % x)
    

    Then you can pass [10, 20, 30] into it or something. It’s a useful trick.



  • I don’t work in hiring, but I do enjoy interactive portfolios. That said, I think this could get frustrating really quickly for people who just want a quick overview of who you are, what you work on, how to contact you, etc… Recruiters have hundreds of applications to sift through, they might not have the patience to wade through dialogue. Maybe keep important information easy to access and make the rest a fun game for those who enjoy it.

    Anyway, this looks great and I love the voice acting!

    I’d recommend making the world smaller and highlighting NPCs so they wouldn’t get lost or wonder what to do. Also be aware that a lot of people browse on phones or tablets, so this needs to play nice with portrait mode as well.



  • I use Joplin. It’s fairly simple and very comparable to Evernote if you’ve ever used that, but it’s perfect for my needs.

    I used LogSeq before, it’s very similar to Obsidian, the big difference being that it’s open source. It’s got a ton of features and the built-in whiteboard is actually really good, but I found it a bit overkill for my simple note taking.

    • Logseq also makes each line start with a bulleted list which quickly made me go insane


  • Electron isn’t here to compete with anyone. It’s a free open source community effort filling a gap. If you want to defeat Electron, you will need to fill it too; and you will need to do a better job than Electron is doing today — at the things that allow us to deliver a good experience.

    I think that’s the big takeaway, people like hating Electron (like yours truly), but if you want Electron to stop being so common there needs to be an alternative that’s as powerful and flexible. Nobody wants to make that. Electron works, it’s stable, it’s industry standard, it’s not performant but it performs well enough, and you can’t beat web browsers in having a massive ecosystem where everything just works.

    Tauri tried to be the Electron killer but it became apparent that OS-specific web-views aren’t something developers want to deal with, and IIRC they’re also looking into embedding a browser runtime which will make it more or less Electron again…




















  • popcar2@programming.devtoPrivacy@lemmy.mlBlogging in the AI era
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    9 months ago

    There are two good options: Host your own blog yourself, or join a blogging platform that isn’t corporate. I personally use BearBlog but I’ve heard good things about Write.as as well. These two have free blogging options and don’t sell your data. If you want to host it yourself (which is safer), check out Hugo.

    Ultimately, bots scrape the entire internet and there’s no guarantee they will honor robots.txt of a particular website (which tells bots what they are and aren’t allowed to do). If it’s on the internet, people can scrape your content and there isn’t much you can do about it. That shouldn’t stop you from writing or blogging, just don’t post very personal data.

    Also, feel free to join us on !blogging@programming.dev!









  • It’s a two part story:

    1. The mobile market mostly targets kids and boomers and their resistance to microtransactions has been basically non-existent, making the market quickly become predatory and full of spam

    2. Modern app stores have become abysmal, making it impossible for smaller games to see the light of day. 99% of google play is a dumpster fire, and the 1% that is decent isn’t published by a multi-billion dollar company so you’re unlikely to ever see it. There are good games out there, but the way the algorithms and ads work makes them constantly pushed down in the list. This isn’t “a problem” to a company like Google because they’re making bank off of all these ad spaces.


    Anyways, most good games are paid, but here’s a list of stuff I’ve enjoyed playing on mobile:

    • Fancy Pants Adventures

    • Bloons TD 6

    • Dicey Dungeons

    • Dead Cells

    • Slay the Spire (but the mobile port is rough on small screens)

    • Knights of Pen and Paper +1

    • The Enchanted Cave 2

    • Let’s Create! Pottery

    • BAIKOH

    • Data Wing

    Probably a lot more I forgot. Have at it.


  • Has it ever been better?

    Actually, yes, by a big margin. Back in ~2011 mobile games were actually trying to be great. Games like Edge Extended, World of Goo, Bounce Boing Voyage, Zenonia 2 & 3, etc.

    I remember early Humble Bundles being full of exciting games for mobile, now you’ll be lucky to find just one of them that isn’t filled to the brim with MTX or ads.





  • I’ve bought the $1 tier to get into shaders and I sort of agree. I took the Unity 2D course when I was starting out game development and it was excellent, really gave you everything you need to know to understand and learn how to make real games.

    I’m 75% through the shader course (which is fairly short, like ~2 hours long) and it’s just okay. It gives you a decent introduction on how shaders work, teach you a few simple effects like distortion and dissolving and color swapping, then you’re on your own. I didn’t feel like I learned enough to be confident making my own shaders and I still only have a surface level understanding of it. Not great for a paid course, I’m starting to think that’s the reason it was only $1 in the bundle.

    I still 100% recommend their 2D unity course but it seems like how good the course is depends on the instructor. Rick is the best instructor they have, the new ones aren’t cutting it. Maybe I should make my own tutorials because a lot of Godot offerings currently are lacking.