Skip to content

Contributing

Caroline Joy Bell edited this page Feb 29, 2020 · 3 revisions

Rules:

  1. Import this formatting style to your IDE, and set it to default for any project related to halotroop.
  2. Always use symmetrical curly braces!
    • If there is only one line of code between them, put them on the same line like this: { code(); }
    • If there are multiple lines between them put them on separate lines like this:
{
	codeHere();
	moreCodeHere();
}
  1. Change your "Organize Imports" preferences to use .* imports after only 2 imports are used, (instead of the ridiculous default 99). Organize Imports preferences on Eclipse

Guidelines:

  1. Avoid adding large bits of code to the game!
    • If there's something big you want to add, look for a library first!
    • If you must write one feature that's more than 1000 lines, and it doesn't depend on parts of the main game code, make your own library and import it through Maven.
    • If you want to add a smaller feature, less than 1000 lines, and you already have GPLv3 compatible code for it from another project, you may add it under its original package name to this project.
    • Anything that doesn't fit the above criteria can just be added to the Litecraft package.
    • If you're not sure what to do after reading these, ask @halotroop2288 how to proceed.
Clone this wiki locally