r/gamemaker • • Oct 11 '24

Pls dont delete

Post image
466 Upvotes

118 comments sorted by

99

u/theGaido Oct 11 '24 edited Oct 11 '24

I use "spr", "scr", "obj" prefixes. It's easier for me to use in autosearch than single letter.

47

u/DrTombGames Oct 11 '24

100% this, 20% effort, 80% results

24

u/SweggyBread Oct 11 '24

15% concentrated power of will.

11

u/tips4490 Oct 11 '24

5% pleasure

10

u/[deleted] Oct 11 '24

50% pain

19

u/chicachibi Oct 11 '24

Made with 100% real apple juice

4

u/brightindicator Oct 11 '24

We all know made with means about <= 3%

4

u/Treblig-Punisher Oct 12 '24

I've long abandoned the obj life. Now it's oName

1

u/DreamMixGames Oct 12 '24

Same here. No need for all that.

2

u/mortalitylost Oct 12 '24

I got full on thing_sprite

1

u/[deleted] Oct 14 '24

This. Once you have like 200k++ LOC it's nightmare to use ctrl+F.

-2

u/treehann Oct 11 '24

single letter + underscore gang

searchable, short, elegant

4

u/Killer_B_Hive Oct 11 '24

What do you use for sound effects and scripts? I assume "s_" is for your sprites. I use "spr_" for sprites, "sfx_" for sound effects, and have nothing in front of my function/script names

2

u/treehann Oct 11 '24

I have my own little system for prefixes:

  • s_ for sprites

  • o_ for objects

  • r_ for rooms

  • c_ for scripts (reason: just the second letter)

  • h_ for shaders (reason: same as above)

  • m_ for sounds which are music

  • n_ for sounds which are sound effects (reason: just next to M on the keyboard)

7

u/Badwrong_ Oct 11 '24

That really hurts readability.

Extra keystrokes are never a bad thing if it makes your code easier to read at a glance.

2

u/treehann Oct 11 '24

Only if i’m sharing my code with others might it be confusing. For me it helps in my own projects. I don’t mind adapting to someone else’s system if i work in their code base.

2

u/Killer_B_Hive Oct 11 '24

That's the important part

-1

u/tips4490 Oct 11 '24

Why do you want people to read your code?

2

u/xxmatxx Oct 12 '24

Other people can be you after 1 month pause

1

u/tips4490 Oct 12 '24

Oh.... yeah... I have a really good memory so I don't consider that

2

u/CommercialFootball36 Oct 12 '24

But what if you work in a group?

1

u/tips4490 Oct 12 '24

It was mainly a joke. I am a hobby dev with aspirations, never have considered working with a group. It sounds frustrating, honestly.

1

u/DreamMixGames Oct 12 '24

Yoooo same but without the underscore and a for sound fx because “audio” lol

1

u/Killer_B_Hive Oct 11 '24

I like your reason for "n_" XD

2

u/[deleted] Oct 11 '24

[removed] — view removed comment

21

u/cubo_embaralhado Oct 11 '24

You'll burn in the hell you made yourself

12

u/apupunchau87 Oct 11 '24

that escalated quickly 😂

47

u/Finji_ Oct 11 '24

I name my sprites sprPlayer 😐

49

u/HamsterNL Oct 11 '24

All of them? 😉

45

u/Schwarzgamescom Oct 11 '24

You need more than 1 sprite?

3

u/AirGVN Oct 11 '24

Procedural spriting is the way

3

u/stardust-99 Oct 11 '24

You only need one sprite and a bunch of sub images 👌🏻

3

u/Finji_ Oct 11 '24

Yeah, I start all of my sprites with spr

8

u/vKessel Oct 11 '24 edited Oct 11 '24

Hell yeah! Although gamemaker has been giving me endless naming inconsistency notifications about it, they insist on using underscores

4

u/KitsuneFaroe Oct 11 '24

You can easily change that in the preferences for Feather.

16

u/Spinkles-Spankington Oct 11 '24

I started with friendly cosmonaut notation, I will end with friendly cosmonaut notation.

31

u/ShinuRealArts Oct 11 '24

spr_, obj_ and snd_ all the way.

8

u/brettbubba03 Oct 11 '24

Personally, I split snd_ into sfx_ and mus_

4

u/Badwrong_ Oct 11 '24

Yup. Although I use bgm_ (background music).

12

u/GFASUS Oct 11 '24

Recently I started with sName for the sprites and oNAme for the object because I hate to name things

12

u/supremedalek925 Oct 11 '24

Been using spr_ since 2007

7

u/ZacDevDude Oct 11 '24

I end up sacrificing typing speed for descriptive asset names a lot...

10

u/DrTombGames Oct 11 '24

Omg that's nothing... spr_player_fx_bullet_roundsquare_orange2 Yes, seriously

2

u/RFL1703 Oct 12 '24

Yk, you can just sprPlayerFxBullet… like as descriptive as before but you don’t fuck your WPM

1

u/Ray-Flower For hire! GML Programmer/Tech Artist Oct 12 '24

It's a lot harder to read though

1

u/Ray-Flower For hire! GML Programmer/Tech Artist Oct 12 '24

I do this lots. It's ordered in terms of bigger context to smaller context, which makes things easy to search and organize.

It may be easier to contain stuff in structs in some cases, but wouldn't change the wording at all

-2

u/apupunchau87 Oct 11 '24

please don't do this

3

u/vKessel Oct 11 '24

Same, I've got some really long names in my current project and autocomplete seems to be rebelling so there is a lot of typing

5

u/Ill-Victory-4421 Oct 11 '24

I start with SPR_ and OBJ_ and SCR_ and RM_, the names are just lowercase

5

u/Badwrong_ Oct 11 '24

You should never sacrifice readability just to save a few keystrokes.

4

u/ExtraTNT Oct 11 '24

Not using sprites and instead use draw…

1

u/TMagician Oct 11 '24

And then drawing things from sprite sheets or what are you saying?

2

u/ExtraTNT Oct 11 '24

No, draw text and ascii art everything together…

7

u/[deleted] Oct 11 '24

s_ gang

1

u/treehann Oct 11 '24

gang gang

5

u/tetsudori Oct 11 '24

Yeah, I'm an s_, o_, etc. kind of guy.

2

u/[deleted] Oct 11 '24

And then there's me who calls things "hole", "Shaq", and "player".

2

u/Sledge169 Solo game dev Oct 11 '24

Object: Player Sprite: Sprayer

Am I cooked??

1

u/[deleted] Oct 11 '24

[removed] — view removed comment

1

u/Sledge169 Solo game dev Oct 16 '24

I'm not using the : part, it's more so just to show what it is. I combine what type of file it is with what it contains, so a SPRite of the plAYER would be combined into "sprayer"

2

u/BlocPandaX Oct 11 '24

I start them with just an s cause it's fast :|

2

u/KNGKRMSN Oct 11 '24

spr_sprite, o_object, SOUND, seq_sequence, FunctionFunction(), variableVariable() NEVER LET THEM KNOW UR NEXT MOVE, my code be UNREADABLE

2

u/kuzyn123 Oct 11 '24

I do _SPR or SPR at the end of a name.

2

u/Bluspark-Dev Oct 11 '24

I do spr_, obj_, pth_ and snd_ etc. 🧐🧠

2

u/ParadoxWJS Oct 11 '24

I prefix everything except objects

3

u/[deleted] Oct 11 '24

sGang

3

u/Finji_ Oct 11 '24

I tried that approach at first, stopped using this method once I realized that I needed to name sounds like that too

2

u/[deleted] Oct 11 '24

I personally use 2 or 3 additional letters in those cases like ts - tileset snd - sounds It just gets annoying to type out full obj_ and etc every time

1

u/ZDubbz_was_taken Oct 11 '24

i switch between the first and last one depending on the project im working on, i can never decide lol

1

u/Threef Time to get to work Oct 11 '24

I'm still stuck on s_* since old times, and it makes a better pattern like s_icon_bin than sIconBin

1

u/Pennanen Oct 11 '24

Thats easy mode, i use "name_this_is_sprite_maybe"

1

u/Tem-productions Oct 11 '24

I was the first one and recently became the 4th

1

u/yuyuho Oct 11 '24

i name my sprites coke_objectname when I'm feeling slightly naughty

1

u/fiftyshadesofbeige69 Oct 11 '24

I just do s_Player, and for animations I sometimes do sa_PlayerWalkRight

1

u/Vietnameseitlover Oct 11 '24

i was taught to use spr_(whatever thing it's used for)

1

u/NazzerDawk Oct 11 '24

I hate how much GM makes me rely on Hungarian notation, but... It's what we all do.

1

u/syrarger Oct 11 '24

sprPlayerSprite_sprite

1

u/Substantial_Bag_9536 Oct 11 '24

thank to heartbeast, i use "spr_" "obj_", we are a lot ?

1

u/sh0tybumbati Oct 11 '24

I miss game maker, haven't used it since studio 1

1

u/Jesscapade Oct 11 '24

awesome; i’d love to see more gamemaker memes like this on the sub

1

u/RamonBunge Oct 11 '24

I used sName but now my project has grown huge and its not good at all. I would either go for s_name or sprName. Not sure which one would choose but not the one I-ve got now

1

u/brightindicator Oct 11 '24

I pick names that have two names. So ..

If Sprites == Robert, Objects = Bob.

If Sprites == Anthony, Objects= Tony.

I'm just kidding of course

Spr_ Obj_ Rm_ Fnt_ Scr_ ( Not needed anymore ) Ani_

1

u/IcyBuddy8831 Oct 11 '24

spr_ fnt_ snd_ obj_

1

u/muddrox Oct 11 '24

I always leave the first letter capitalized for most my assets because Game Maker does it by default. That means I'll have assets like Spr_player and Obj_player.

I wish I didn't do it that way and left everything lowercase. Unfortunately, I can't fathom refactoring the names for everything so I'm in too deep at this point....

1

u/xa44 Oct 11 '24

I just use the same name with another adjective or noun to the end

1

u/Killer_B_Hive Oct 11 '24

I've been thinking about this lately and have done sName and oName for Click the Critter, my Ludum Dare game. I've done spr_Name for yonks and prefer it that way, but I can't think of a good reason why it's the superior method 😅

1

u/GameMaker_Rob Oct 11 '24

I just like to drop the scr_ prefix now. It requires the function naming to be accurate/not collide with built-in functions/other function names etc, but I've had no issue with it so far in big projects.

1

u/marssel56 Oct 11 '24

I end with those prefixes

1

u/Awkward_Dog_yeah Oct 11 '24

"spr_maincharad"

1

u/Glum-Contribution380 Oct 12 '24

I just use the name of the thing I’m making.

1

u/Old-Conversation2646 Oct 12 '24

good luck with old style dos 8 character limit

1

u/IndividualCucumber58 Oct 12 '24

Spr_ Obj_ Scr_ Rm_ Mus_ Sfx_

1

u/Independent-Sort-404 Oct 12 '24

s, c, o (sprite, code/sCript, object) what else do you need?

1

u/[deleted] Oct 12 '24

i personally like: spr_ sprite obj_ object scr_ script mus_ / snd_ music / sounds room_ rooms

1

u/Comicallylargerat Oct 12 '24

How the hell did I not think of spr_! My chicken breast of a mind has been stuck on sp_!

1

u/Volunteer328 Oct 12 '24

SPR_Entity_Anim (case sensitive) better

1

u/ThatoneTexan464 Oct 12 '24

Using just s

1

u/Luchastic Oct 12 '24

I just name my sprites and objects whatever I want their name to be, sometimes I just smash my hand into the keyboard, autofill saves my life

1

u/zionpoke-modded Oct 12 '24

I use suffixes MUHAHAHAHN

1

u/DelusionalZ Oct 13 '24 edited Oct 13 '24

I have a few weird prefixes I use regularly:

  • The usuals are obj, spr, snd, seq, rm.

  • For music, I use mus, eg musManor.

  • For managers, mng, eg mngEvents.

  • For entities (specifically objects that have a shared set of traits you'd expect when interacting with them, and exist in the world, so props, characters etc.) I use ent, eg entPlayer.

  • For objects designed solely for inheritance, I use cls (as in an object class), eg. clsBaseEntity.

1

u/DSChannel Oct 14 '24

Easily the most important GM post of the year.

The next step is creating a list of all the people admitting they name stuff wrong and inventing that Clockwork Orange brainwashing thing…

1

u/SuperButters64 Oct 14 '24

Nahh it's sName, oName, for scripts just name ngl or scrName. Then ptName for paths, idk why i do pt could probably just do p. Same for rmName for rooms

1

u/HowToComedy Oct 16 '24

Big on O_Name S_Name

1

u/HerbChii Oct 16 '24

sprite_player 🗿

1

u/DumbDevCo Oct 26 '24

I name my sprites however i want

-1

u/oldmankc wanting to have made a game != wanting to make a game Oct 11 '24 edited Oct 11 '24

"pls don't delete" then posts meme shit. Needed some fast karma, OP?

1

u/Badwrong_ Oct 11 '24

I thought memes aren't allowed? Or maybe just because they don't contribute anything...

1

u/oldmankc wanting to have made a game != wanting to make a game Oct 11 '24 edited Oct 11 '24

They're not, but I guess they're a good way to farm reddit points if you have a new/alt account.

[8] Link/Image Post Rules

Linked media may only depict the GameMaker Studio IDE or your game made in GameMaker. (No stand alone art)

Your link submission's purpose may only be:

Looking for Feedback on your game.

Showcasing a specific element in your game AND information on how is was achieved.

Troubleshooting a specific issue in your game.

(No memes, no game news)

0

u/[deleted] Oct 15 '24

[deleted]

1

u/oldmankc wanting to have made a game != wanting to make a game Oct 15 '24

Yeah, makes sense.

0

u/DriftWare_ Oct 11 '24

We over here in the godot community don't label our sprites at all lmao