ConditionalCoder

20 Followers
3 Following
161 Posts

@ratsnakegames If you're already using `scons` as part of the CI process, then simply specifying `target=template_release` will create a release template targeting your platform of choice (rather than downloading all release templates).

See this page of Godot's documentation for more details: https://docs.godotengine.org/en/stable/engine_details/development/compiling/introduction_to_the_buildsystem.html

Introduction to the buildsystem

Godot is a primarily C++ project and it uses the SCons build system. We love SCons for how maintainable and easy to set up it makes our buildsystem. And thanks to that compiling Godot from source c...

Godot Engine documentation
@ratsnakegames You could build just the one(s) you need yourself via CLI...
@gynura I prefer the bigger ones.

Something I find helpful when developing a game: write down ideas/improvements you have in a todo list, rather than implementing them straight away. That way you won't lose track of what you're currently working on, and won't end up refactoring your game part-way through adding a new feature.

#BeenThereDoneThat #GameDev

#Godot's `wrap()` function is useful for when you have a list of players (e.g. blue, green, red, etc.) and you want to change whose turn it is:

```
# Next player's turn.
current_player = wrap(current_player + 1, 0, PLAYERS.size())
```

https://docs.godotengine.org/en/stable/classes/[email protected]#class-globalscope-method-wrap

#Godot4 #GDScript #GameDev #Programming

@GlobalScope

Global scope constants and functions. Description: A list of global scope enumerated constants and built-in functions. This is all that resides in the globals, constants regarding error codes, keyc...

Godot Engine documentation

Anyone else annoyed by how many constants/variables they have to create just to avoid having magic numbers in their code...?

#GameDev #Porgramming #Godot #Godot4 #GDScript

@novaliminal Linux Mint 22.3, Cinnamon, Nouveau driver. Disabling CRT doesn't help, nor does changing the resolution.
@normjess Where does `piece` come from then?

Is there a better way to write the following?

```
var piece = get_piece_on_marker(marker)
if piece:
piece.move()
```

Something like:

```
if (piece = get_piece_on_marker(marker)):
piece.move()
```

i.e. It assigns the variable, and tests it, all on the same line. Is something like that possible in #Godot?

#GDScript #Godot4 #GameDev

@novaliminal I tried the Linux version, and the overworld map works, but the not first level ☹️ (I just see the bars in the top-left, and a small face in the middle, rest of the screen is black).

Love the CRT effect!