_actors = [[NSMutableArray alloc] initWithCapacity:10];
_world = [[QQWorld alloc] init];
- [[[QQTank alloc] initAtX:50 y:50 width:50 height:50 color:0xFF0071] autorelease];
- [[[QQUnit alloc] initAtX:75 y:100 width:50 height:50 color:0x4596FF] autorelease];
+ CGSize screen = [UIScreen mainScreen].bounds.size;
+ float wMax = screen.width / _world.scale;
+ float hMax = screen.height / _world.scale;
+ [[[QQTank alloc] initAtX:wMax/6 y:hMax/6 width:50 height:50 color:0xFF0071] autorelease];
+ [[[QQUnit alloc] initAtX:wMax/3 y:hMax/2 width:50 height:50 color:0x4596FF] autorelease];
[self addEventListener:@selector(onEnterFrame:) atObject:self forType:SP_EVENT_TYPE_ENTER_FRAME];
}