-
Notifications
You must be signed in to change notification settings - Fork 2
Naub Spec
The current implementation is a bit static.
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.
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
- makes the Naub a graph vertex
- draws joins
- access to joined objects
- makes the Naub touchable and moveable
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.
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.