Slicer-n-Sprinkles
No description provided.
# Slicer & Sprinkles
A fruit-ninja-like in the theme of bakery. You cut ingredients to make a cake at the end of the round.
Engine
The game is made with Unity 3D.
Standards
Code
C# code is formatted with Rider settings. Braces are on a new line. 140 characters per line. Tab size is 4 and is used for indentation.
Use var when possible. Do not use explicit types when it can be inferred. Use short syntax for getters. Use LINQ when possible.
Naming conventions:
- Automatic properties:
PascalCase - Classes:
PascalCase - Constants:
PascalCase - Delegates:
PascalCase - Enum values:
PascalCase - Enums:
PascalCase - Events:
PascalCase - Fields:
PascalCase - Interfaces:
PascalCase - Methods:
PascalCase - Namespaces:
PascalCase - Private fields:
_camelCase - Private static fields:
_camelCase - Properties:
PascalCase - Structs:
PascalCase - Type parameters:
PascalCase - Variables:
camelCase
Example:
Files & Folders
- Folders are
PascalCase - Files are
PascalCase - Files are named after the class they contain
Assets are organized in folders by type.
AnimationsAudioFontsMaterialsModelsPrefabsScenesScriptsShadersSpritesTexturesUIVideo
Git
- Commit messages are in English
- Commit messages are in the present tense
Structure of a commit message:
type(scope): subject
Closes #issue-number[..., closes #other-issue-number]
Types :
chore: updating build tasks, package manager configs, etc; no production code changedocs: changes to documentationfeat: new featurefix: bug fixperf: performance improvement*refactor: refactoring production codestyle: formatting, missing semi colons, etc; no code changetweak: small change to existing feature, like changing a color or a value
Scope is in one or two words, describing the part of the code that is affected by the commit, with a space between the two words and everything lowercase.
Subject is a short description of the change, with a capital letter and no dot at the end.
Closes is used to close issues automatically when the commit is merged, each commit should close at least one issue appart if it is tiny.
Commit regexp:
Example:
feat(ingredients): Add new ingredient.
Closes #42
tweak(bombs): Change time before explosion.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Pierre Roy