Animation Low-Level

Treenimation can be used to make multiplayer animated games. Non-programmers can use the Level Editor and the Vector Editor to create simple animated games, and programmers can add functionality to these games, using a built-in scripting language called Treescript.

 

The following low-level components are the basic building blocks of animated games, otherwise known as “atoms.”

 

Coord: 

Point on screen

·      x – floating-point number (float)

·      y – float

 

Rect: 

Rectangle

·      x – float

·      y – float

·      width – float

·      height – float

·      color

·      mouse – yes/no

·      collision – yes/no

·      border – yes/no

·      visible – yes/no

 

Quad: 

Rectangle with fill color

·      x – float

·      y – float

·      width – float

·      height – float

·      pen-color

·      fill-color

·      mouse – yes/no

·      collision – yes/no

·      border – yes/no

·      visible – yes/no

 

Ellipse: 

Circle or oval

·      x – float

·      y – float

·      width – float

·      height – float

·      color

·      mouse – yes/no

·      collision – yes/no

·      border – yes/no

·      visible – yes/no

 

Disc: 

Ellipse with fill color

·      x – float

·      y – float

·      width – float

·      height – float

·      pen-color

·      fill-color

·      mouse – yes/no

·      collision – yes/no

·      border – yes/no

·      visible – yes/no

 

Polyline: 

Set of connected line segments

·      x – float

·      y – float

·      coord-list – list of coordinates

·      color

·      trajectory – yes/no (parent vector)

·      mouse – yes/no

·      collision – yes/no

·      border – yes/no

·      visible – yes/no

 

Shape: 

Set of connected line segments (polygon with fill)

·      x – float

·      y – float

·      coord-list – list of coordinates

·      pen-color

·      fill-color

·      mouse – yes/no

·      collision – yes/no

·      border – yes/no

·      visible – yes/no

 

Bitmap: 

Rectangular array of pixels (colored dots)

·      x – float

·      y – float

·      width – number

·      height – number

·      plane-count – no. of bit planes

·      array of pixels

·      transparent – yes/no

·      mouse – yes/no

·      collision – yes/no

·      visible – yes/no

 

Text: 

Label containing text

·      x – float

·      y – float

·      width – number

·      height – number

·      pen-color

·      fill-color

·      caption – string

·      font

·      transparent – yes/no

·      mouse – yes/no

·      collision – yes/no

·      visible – yes/no