Skip to content

Naub Spec

Hendrik Sollich edited this page Feb 5, 2012 · 3 revisions

Naubino Naub Specification

Rendering

The current implementation is a bit static.

current state

Naubs implement most of the moving and graphing functionality. The are all in an object in the Layer game called objs. A Naub has a Shape. Ball implements Shape. Every Naub currently has a Ball.

Change this to

Every Naub should be very specific. They should use Mixins. A Naub should have a static rendering method that respond to the following calls:

  • render() renders into buffer so that draw repeatetly draws the buffer
    • can be buffered, but can also be repeated over and over
  • play() sets to continuous rendering or animation

By default a Naub is not live rendering, only when its enabled globally or the Naub is animated.

also:

  • onClick()
  • and so on

Joinable Mixin

  • makes the Naub a graph vertex
  • draws joins
  • access to joined objects

Moveable Mixin

  • makes the Naub touchable and moveable

Special Features

Naubs should be Capable of displaying different contents. These may be animated. Therefore a Naubs has to have a state and a timer.

Currently a Naub is The @content property currently contains a function that draws into the Naubs buffer.

States

As opposed to its current implementation a Naub should have state. Means it show be :

  • animated or static
  • buffered or rendered live

There should be a shape that describes its touchable area.

Clone this wiki locally