I swear its not for something lewd 😅. It just ended up like this due to some unfortunate naming decisions lmao.

Also if anyone can guess the programming language they’ll get a cookie (🍪) :3.

1 point

Eww dynamically typed GDScript.

This post was made by the Static Typing Gang.

permalink
report
reply
2 points

Is it dynamically typed tho? Its missing the return type of the function (which i left out because its only there to be called from a signal so it doesnt matter too much & because the Godot editor didn’t bother adding it when it inserted the function to receive the signal).

But otherwise its already statically typed right? (COCK is a constant in the script that i did give a type and stream and play() are part of the AudioStreamPlayer3D node)

permalink
report
parent
reply
1 point

I mean yes and no… -> void means the function doesn’t return anything.

What are you working on btw…? I assume it’s some kind of shooter and cock is in reference to cocking a gun…

permalink
report
parent
reply
2 points
*

What are you working on btw…? I assume it’s some kind of shooter and cock is in reference to cocking a gun…

Nothing concrete, my dream would be being able to recreate/mimic Fistful of Frags in Godot. The reality is that i keep starting new projects trying to recreate parts of it (omitting stuff that’s hard and i know nothing about yet like multiplayer, animations, modeling etc.).

This specific piece of code is from a current attempt where I’m trying to mimic the games movement and shooting closely enough to create a small shooting gallery like thing. And then use that to learn more about how to (possibly) use Blender as a map editor for it.

permalink
report
parent
reply
7 points

It has just now occurred to me that maybe i should only have given a cookie to the first person that guessed it, ooops 😅.

permalink
report
reply
8 points

I can tell it’s godot script _simply_by_the_snake_case

permalink
report
reply
6 points

🍪

permalink
report
parent
reply
8 points

GDScript, precisely in the Godot editor (these indentation guides are so unusual and me knowing that they exist only in Godot is a plus)

permalink
report
reply
5 points

🍪

permalink
report
parent
reply
4 points

It’s the G’Doe Game Engine (GDScript)

permalink
report
reply
4 points

🍪

permalink
report
parent
reply
3 points

Thanks lol Godot developers rise up

permalink
report
parent
reply