Let's go ahead and settle on variable/file naming conventions... #12
Replies: 3 comments 5 replies
-
|
I've been using a lot of camelCase for the variable names, a lot of the file names are just like that because they were ported directly over like that from sonic worlds or just from what I was given. You can tell which sprites were the ones I created based on that. and I used the snake_case for function names to make them easier to identify. |
Beta Was this translation helpful? Give feedback.
-
|
Just a heads up I'll accept changes that don't fundamentally change how any of the mechanics or gimmicks work from the core unless it's a bug fix or slight changes to make it more accurate to the games. Had a situation where someone tried submitting an update that changed how the bust-able walls worked to match sonic CD instead of adding/coding it in as a variation. I just wanna make that clear because I don't want people to think I'll reject any pushes, I just want to keep the framework consistent. |
Beta Was this translation helpful? Give feedback.
-
|
Hey, would you all mind if I got access to edit the wiki for this repo? And maybe project management too. I figure documenting how things work from the perspective of someone just coming into the engine could be useful and I also noticed that we have some projects that should be moved to the 'In Progress' section... and wouldn't mind adding my own projects to the list as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm seeing a fair few cases of variable and file names not following any kind of rigid rules, frequently in the same category of assets.
Sometimes we stick to camelCase, sometimes we use PascalCase, and sometimes we snake_case, and the situations for when and where are more or less random. This complaint is a little bikesheddy I know, but I'd like to go ahead and get this formalized before I start writing scripts. We can go back and correct what's already there later.
(for what it's worth, I have a habit of leaning towards snake_case since I'm mostly a C programmer these days, but obviously this isn't C and it may be way more appropriate to go with a modern language style naming convention. (PascalCase for major elements, camelCase for minor elements))
Beta Was this translation helpful? Give feedback.
All reactions