Class: App

markus.elements.App

Main class for the entire visible tree of elements.

new markus.elements.App ()

Example
app
 @w 1280
 @h 720
 @color 0xFFFFFF
 @smooth off

// activate children presets
mark.get('app').init();

Extends

  • PIXI.Application

Mixes In

Members

this.childList Array.<Element>

Childs list

color number

Renderer backgroundColor

this.element string readonly

Element name

height number

Height game view

this.id string readonly

Element id

this.mark markus.View

Root view class

this.parentElement Element

Parent node

this.presets markus.View

Presets list

this.props Array.<function()> readonly

Element properties from markus markup

resolution number

Resolution coef

smooth bolleon

Smooth textures in pixi

this.tags Array.<string>

Element tags

this.ticks Array.<function()>

Аrray of functions called every tick

width number

Width game view

Methods

addTag (props)

Add tag to tags list and app mixin props

Name Type Description
props string

tagName

addTick (cb)

Add function to ticks array

Name Type Description
cb funciton

Every tick is called

init ()

Initial app elements

removeTag (props)

Remove tag from tags list and reuse mixins props

Name Type Description
props string

tagName

setProps (props)

Set props to element

Name Type Description
props Object

Props object