Skip to content
gigafiga21 edited this page Feb 23, 2020 · 2 revisions

Class, manages game process.

DOM tree of the class

Here in gray written CSS selectors, in black - links to elements in the class instances.

  • DOM.game contains class DOM
  • DOM.statusbar keeps game info and buttons divided by auto-growing flex element .divider
  • DOM.score shows current score
  • DOM.pauseButton switches screens: from Game to Menu
  • DOM.field is table with Card class instances in cells, when cards are taking (while animation in menu), they are moving in DOM.field element
  • DOM.deskContainer contain cards from DOM.field when they are taking and menu screen appears (presented in Menu DOM tree description)
Clone this wiki locally