UFO-Scripts/Datatypes/V SHAPE BIG

From UFO:AI
Jump to: navigation, search

V_SHAPE_BIG

The V_SHAPE_BIG value defines a rectangle given by the upper left corner and dimensions. A container can have several shapes that are added to the final container form.

i.e. several entries of a V_SHAPE_BIG datatype can be grouped together to create more complex masks.

shape "x y w h"
shape "x y w h"
...

To position the various shapes (width x height) you need to use the first two values (x and y position).

Currently the maximum size of a container is 32 width x 16 height, please keep that in mind when assembling shapes. This means that (x+w < 32) and (y+h < 16).

Examples

shape	"0 0 3 1"
shape	"0 1 1 1"
  • shape 3x1 positioned in the first row (0) first place (0)
  • shape 1x1 positioned in the second row (1) first place (0)
111
2..
shape	"1 0 3 1"
shape	"0 1 5 2"
  • shape 3x1 positioned in the first row (0) second place (1)
  • shape 5x2 positioned in the second row (1) first place (0)
.111.
22222
22222
shape	"0 0 3 1"
shape	"0 1 1 1"
shape	"2 1 1 1"
  • shape 3x1 positioned in the first row (0) first place (0)
  • shape 1x1 positioned in the second row (1) first place (0)
  • shape 1x1 positioned in the second row (1) third place (2)
111
2.3

You can find examples of shapes with no position (x=0, y=0) here: V_SHAPE_SMALL

Links