Code Monkey home page Code Monkey logo

madness's Introduction

Basic guidelines

Unity

Objects Naming conventions

Affixes (end of the name)

  • _Wrapper
    • An Empty GameObject (nothing more than "transform" basic component in the inspector), used to position/separate sub-game-objects
  • _Gfx
    • A GameObject used to display any kind of graphic (icons), can be Sprite or Image (or animation or video, etc...). Should never be coupled with other affixes and should never have any childrens in the hierarchy to avoid dependencies on such a "variable" GameObject
  • _Display
    • Used to display variables to the end-user, should always be a Text GameObject
  • _Btn
    • A GameObject that should do something when clicked/tapped by the user. Must come with childrens, childrens could be _Gfx or _Display or Text GameObject named Text (Text is used for never changing text)
  • _Window
    • A Special kind of _Wrapper, it's an Empty GameObject used to switch the User Interface currently displayed, should always cover the whole canvas
  • _Tab
    • A Special kind of _Wrapper, it's an Empty GameObject used to switch the User Interface currently displayed, It never replace the whole canvas, used to keep some common elements in the current _Window while switching other sub-elements
  • _Script
    • Special Empty GameObject that comes with a Script component, used to run some code

Special Affixes cases

  • _Window_Btn
    • A button used to trigger the display of a window must end with this suffix. The triggered {name}_Window element {name} must coincide with the _Window_Btn. ( E.G. Shop_Window will have a corresponding Shop_Window_Btn elements that triggers the display )
  • _Tab_Btn
    • A button used to trigger the display of a tab must end with this suffix. The triggered {name}_Tab element {name} must coincide with the _Tab_Btn. ( E.G. Electric_Tab will have a corresponding Electric_Tab_Btn elements that triggers the display )

madness's People

Contributors

doblesantos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.