2012-11-28 14:39:00 -08:00
|
|
|
collections {
|
|
|
|
|
|
|
|
images {
|
|
|
|
image: "bubble-blue.png" COMP;
|
|
|
|
}
|
|
|
|
|
|
|
|
group {
|
|
|
|
name: "example_group";
|
|
|
|
min: 100 100;
|
|
|
|
|
|
|
|
parts {
|
|
|
|
part {
|
|
|
|
name: "background";
|
|
|
|
type: RECT;
|
|
|
|
physics_body: NONE;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
color: 255 255 255 255; /* white */
|
|
|
|
rel1.relative: 0.0 0.0;
|
|
|
|
rel2.relative: 1.0 1.0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
part {
|
|
|
|
name: "red_box";
|
|
|
|
type: RECT;
|
|
|
|
physics_body: RIGID_BOX;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
color: 255 0 0 255; /* red */
|
|
|
|
rel1.relative: 0.55 0.1;
|
|
|
|
rel2.relative: 0.75 0.3;
|
|
|
|
aspect: 1 1;
|
2012-12-03 08:36:32 -08:00
|
|
|
physics {
|
|
|
|
mass: 10.8;
|
2012-12-03 11:47:52 -08:00
|
|
|
restitution: 0.7;
|
|
|
|
friction: 1.0;
|
2012-12-03 08:36:32 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "light" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
physics {
|
|
|
|
mass: 6.66;
|
2012-12-03 11:47:52 -08:00
|
|
|
friction: 1.2;
|
2012-12-03 08:36:32 -08:00
|
|
|
}
|
2012-11-28 14:39:00 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
part {
|
|
|
|
name: "blue_circle";
|
|
|
|
type: IMAGE;
|
|
|
|
physics_body: RIGID_CIRCLE;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
rel1.relative: 0.25 0.1;
|
|
|
|
rel2.relative: 0.45 0.3;
|
|
|
|
aspect: 1 1;
|
|
|
|
image {
|
|
|
|
normal: "bubble-blue.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
part {
|
|
|
|
name: "floor";
|
|
|
|
type: RECT;
|
|
|
|
physics_body: BOUNDARY_BOTTOM;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-12-03 08:36:32 -08:00
|
|
|
programs {
|
|
|
|
program {
|
|
|
|
name: "load";
|
|
|
|
signal: "load";
|
|
|
|
in: 2 0;
|
|
|
|
action: STATE_SET "light" 0.0;
|
|
|
|
transition: LINEAR 0.5;
|
|
|
|
target: "red_box";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-11-28 14:39:00 -08:00
|
|
|
}
|
|
|
|
}
|