Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)JL
Posts
1
Comments
5
Joined
2 yr. ago

  • I see this kind of poor add-on "hygiene" alot, but I thought Godot flagged when this happened in the install dialog and you can uncheck anything that's outside of the addon folder. I'm pretty sure that now the damage is done you can just delete any non-code or non-resource files it added. Maybe do a commit before doing so, but it should be OK. If the addon has a license file (which is recommened in the Godot docs), it should only ever be in the addon folder itself and only pertains to the addon.

  • I have an add-on that will help with game state like locked doors and stuff. You an find it in the Godot asset library as Game State Saver Plugin. If installed directly from the Godot editor, you'll get a watered down demo with the add-on. But a more extensive example can be obtained by downloading the entire repository. That full demo has a locked door, switches that affect things in other level scenes and remember their state, and more.

    As for a more flexible, extensible system for inventory I would look into custom resources. You can add things to the custom resource like an inventory texture, display name, and other info about an inventory item. Then you can use an exported property array and add the items as needed. You can even save the individual resources as resource files for easy reuse and updating later.

    Now how to connect a custom resource to the save system is something I have not gotten around to doing, so I can't say exactly how that would work right now.

    Hope this helps!

  • Very interesting. I was thinking about doing this, but went the Defold route instead. Defold is much smaller out of the box than even these results, but the sacrifices in functionality are pretty severe and the editor and engine are, shall I say, cantankerous. I may have to circle back to trying this at some point for my web games. Thanks for the post!

  • I checked it out but haven't completed the goal yet. It's pretty good. The simple tutorial in the beginning is enough to get started and after a few restarts, I figured out what to watch out for. It does a good job building tension having to check and sometimes recheck things as you go.

    I think the camera needs some smoothing or something. It's not too bad, but doesn't seem smooth to me.

    The biggest issue is the download size. 1 GB and so far I've seen the same hall with mostly identical robots. (I got to level 7, btw. So, maybe that's the reason.) I see a lot more in the project files, so maybe this game is meant to be much larger. But even so, why is it so big? The pck file once the download is unzipped is 2 GB!

  • I've thought about this problem creating a system to save game state. The issue with assigning a UUID works until you have dynamic scenes added to the game at runtime. The nodes in those scenes will all have the same UUID. In the end I ended up just using the paths and saving the fact that the scene that data is being saved for is dynamic. Then the system sees this and re-instances the scene and adds it back to the tree. (A slight adjustment to the path must be made as Godot will create nodes with the at (@) symbol in them, but you can't do that yourself.)

    You can see this in action at my demo repo on github.

  • Godot @programming.dev

    Godot 4 2D Visibility Mask Demo