four walls complete

git-svn-id: svn://anubis/dwscr/trunk@95 5bef9df8-b654-44bb-925b-0ff18baa8f8c
This commit is contained in:
josh 2008-11-13 04:35:50 +00:00
parent 8e0ed9b3f3
commit 2b43b1c10f

View File

@ -13,7 +13,7 @@ using namespace std;
#define SIZE 5
#define STRIDE_MULTIPLIER 1.0;
#define ZOOM 10.0
#define ZOOM 14.0
LightBounceBox::LightBounceBox(LogoBox * lb,
float x, float y, float z,
@ -61,8 +61,21 @@ LightBounce::LightBounce(SSMain * _SSMain) : SSMode(_SSMain)
new LogoBox(), x, y, -half_size, 0, 0, rot ? 90.0 : 0
);
m_boxes.push_back(box);
x += box_stride;
box = new LightBounceBox(
new LogoBox(), half_size, y, x, 0, 90.0, rot ? 0 : 90.0
);
m_boxes.push_back(box);
box = new LightBounceBox(
new LogoBox(), x, y, half_size, 0, 180.0, rot ? 90.0 : 0
);
m_boxes.push_back(box);
box = new LightBounceBox(
new LogoBox(), -half_size, y, x, 0, 270.0, rot ? 0 : 90.0
);
m_boxes.push_back(box);
rot = !rot;
x += box_stride;
}
y += box_stride;
}