this post was submitted on 23 Jun 2023
23 points (100.0% liked)

196

16412 readers
1873 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 

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.

top 27 comments
sorted by: hot top controversial new old
[–] Ti_Ka@lemmy.blahaj.zone 7 points 1 year ago

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

[–] Thefancyyeller@lemmy.world 6 points 1 year ago (1 children)

I can tell it's godot script _simply_by_the_snake_case

[–] nothendev@sopuli.xyz 5 points 1 year ago (1 children)

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

[–] animelivesmatter@lemmy.world 5 points 1 year ago (1 children)

Definitely gdscript, furthermore I'm going to guess you're making a Hotline Miami-like game

[–] Ti_Ka@lemmy.blahaj.zone 3 points 1 year ago (1 children)

Here's your cookie πŸͺ

I’m going to guess you’re making a Hotline Miami-like game

What made you guess that?

[–] animelivesmatter@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (1 children)

One of the only functions I could think of that would fit the name and structure is one that handles the cocking of a gun. I know that Godot is primarily for 2D games, and Hotline Miami-likes are the most common 2D shooters I've been seeing recently.

[–] Ti_Ka@lemmy.blahaj.zone 3 points 1 year ago

Oh wow you actually got pretty close then XD. It's not a Hotline Miami like game but the code is indeed for cocking a gun (or rather for playing the sound for it).

[–] Obsidiman@lemmy.fmhy.ml 4 points 1 year ago (1 children)

Looks like GDScript to me. Pretty sure that's a screenshot from the Godot code editor

[–] closet@lemmy.blahaj.zone 4 points 1 year ago (1 children)
[–] marioandweegee3@lemmy.ml 2 points 1 year ago
[–] estebiu@kbin.social 3 points 1 year ago (1 children)

python uses def for functions

[–] XPost3000@lemmy.ml 3 points 1 year ago (1 children)

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

[–] Ti_Ka@lemmy.blahaj.zone 3 points 1 year ago (1 children)
[–] XPost3000@lemmy.ml 3 points 1 year ago

Thanks lol Godot developers rise up

[–] vegivamp@feddit.nl 3 points 1 year ago

Don't you mean a cockie πŸ˜‹

[–] ChildEater@iusearchlinux.fyi 1 points 1 year ago (1 children)

Eww dynamically typed GDScript.

This post was made by the Static Typing Gang.

[–] Ti_Ka@lemmy.blahaj.zone 2 points 1 year ago (1 children)

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)

[–] ChildEater@iusearchlinux.fyi 1 points 1 year ago (1 children)

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...

[–] Ti_Ka@lemmy.blahaj.zone 2 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] ChildEater@iusearchlinux.fyi 1 points 1 year ago (1 children)

I love fistful of frags.

For map making you might be interested in Qodot. It's a plugin that let's you use Trenchbroom as your level editor, which while nowhere near as powerful as Blender, is super easy and straightforward to use. It's also quite similar to Hammer which Fistful of Frags definitely used.

[–] Ti_Ka@lemmy.blahaj.zone 2 points 1 year ago* (last edited 1 year ago) (1 children)

I love fistful of frags.

Ayy same, kinda XD. I loved it for a long time but the updates (for a long time now) are just really odd and I feel like the game has massive potential that it just keeps not tapping into properly. Nothing else like it really exists, the closest might be Hunt: Showdown but that is also a Extraction Shooter/Battle Royal so still really different.

For map making you might be interested in Qodot.

Ive seen it before but while it is probably easier im not sure if its a good idea. Fistful of Frags is horrendously outdated for the most part so i at least a bit want to try to modernise it. And going from blocky HL2 style maps with hammer to even blockier Quake style maps with Trenchbroom feels like a downgrade lmao. (But to be fair i haven tried it yet so i might be wrong there).

I think ill try with blender for now. E.g. enabling snapping and quad view gets blender closer to hammer in feeling already (at least from what i remember from using hammer a bit forever ago). Otherwise i hope i can make it somewhat usable using import flags on blender objects and mayb having to write a tool script in godot to replace specially named empties form blender with instances of gameplay related scenes or sth.

[–] ChildEater@iusearchlinux.fyi 1 points 1 year ago (1 children)

Ayy same, kinda XD. I loved it for a long time but the updates (for a long time now) are just really odd and I feel like the game has massive potential that it just keeps not tapping into properly. Nothing else like it really exists

I havent played in years so if they added some weird stuff I have no idea about it.

going from blocky HL2 style maps with hammer to even blockier Quake style maps with Trenchbroom feels like a downgrade lmao. (But to be fair i haven tried it yet so i might be wrong there).

As a retro shooter fanboy this is heresy.

mayb having to write a tool script in godot to replace specially named empties form blender with instances of gameplay related scenes or sth.

Why did I never think of that. My level designer is gonna be so excited if I ever remember to write something like that myself.

[–] Ti_Ka@lemmy.blahaj.zone 1 points 1 year ago

mayb having to write a tool script in godot to replace specially named empties form blender with instances of gameplay related scenes or sth.

Why did I never think of that. My level designer is gonna be so excited if I ever remember to write something like that myself.

I think this even has some direct support from Godot to automate it. The EditorScenePostImport class is supposed to be used for stuff like this i believe but im not entirely sure (i haven't tried or had to try anything like this yet never mind automate it, i just found this while looking through the documentation on 3D scene importing).

load more comments
view more: next β€Ί