c.im is one of the many independent Mastodon servers you can use to participate in the fediverse.
C.IM is a general, mainly English-speaking Mastodon instance.

Server stats:

2.9K
active users

#Godot4

27 posts24 participants2 posts today

found, not really a bug, an interesting behavior in C# and @godotengine

When parsing JSON, an int gets parsed to a float. Which probably makes sense, since everything in JavaScript is a float anyways.
But that then breaks the ulong parsing with a wrong format. Don't know if this is a new 4.4 behavior or if it was always this way. In any case it took me a while to find this bug in my code.

#csharp #godot #gamedev #indiedev #Godot4 #programming #programmingtips #JavaScript #json

Is it possible that SVG SpriteAtlas textures are broken on chrome on Android?

Just checked my game in the chrome browser on my Android phone and the icons are totally broken. On firefox the just work fine. I did restart the game but the problem does persist.

Using Godot 4.3 for the build

Imagine a game where you need to defend a defense position against wave of enemies. You can build structures and units between the waves.

The build and wave phase are two different game phases with specific mechanics.

There is a resource to build new structures. Currently I'm thinking about adding "energy" as a flowing resource, what do you think?

1/2

When programatically adding tilemap tiles to a scene (using set_cell()), is there an easy way to avoid needing to specify 'magic' numbers as the atlas coordinates?

I thought about defining constants for the coordinates I use, but then I'd end up with dozens of them, and I wonder if that's even helping or not...

Has anyone else done this? What was your solution?

Big progress on my Godot game, Chivalric Quest! Last week, I worked on fixing resolution, scaling, and asset setup. Finally, it all works, and I learned a lot.

One tip: read the Godot documentation early—it’s really helpful! I should have read it sooner instead of wasting a week. 😅

I started to implement some turrets for my current game idea yesterday. I did complete my experimental phase to check out the navigation mesh and tile map.

Now I start to get one part of the game loop into a working state. The turret does attack the Godot icon based on a threat algorithm (lowest hp, closest, ...) and deals damage to it based on some entity stats and stat modifier.