• 73 Posts
  • 55 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 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…















  • This is great, I’ve always liked gliding games!

    Some feedback:

    1. The one thing that threw me off was how delayed flapping your wings is. Pressing space means you’d flap maybe 1.5 seconds later. It would be great if flapping was way faster and you’d instead have a cooldown animation, rather than waiting and then flapping the wings.

    2. It might just be a skill issue, but I felt like boosting is too fast and I constantly overshot the finish.

    3. It would be great if you can see the score of each completed level in the main menu.



  • From what I understand: 3D performance in general needs to be improved. Even if you’re not rendering them, having tens of thousands of nodes in the tree kills performance. The global illumination used in Godot is also really taxing. Terrains are an extension rather than built-in to the engine and probably doesn’t have feature parity with other engines’ terrain systems.

    4.4 did a lot to improve things but there’s still a ways to go before big open worlds can happen.