【发布时间】:2015-10-21 12:02:07
【问题描述】:
我的光:
self.light = [[SKLightNode alloc] init];
self.light.categoryBitMask = 0;
self.light.falloff = 1;
self.light.ambientColor = [UIColor whiteColor];
self.light.lightColor = [[UIColor alloc] initWithRed:1.0 green:1.0 blue:0.0 alpha:0.5];
self.light.shadowColor = [[UIColor alloc] initWithRed:0.0 green:0.0 blue:0.0 alpha:0.3];
self.light.zPosition = 200;
[self.world addChild:self.light];
在更新时,我将灯光位置更改为角色位置。
我什么都试过了,就是看不到我的光芒。
【问题讨论】:
标签: ios sprite-kit sklightnode