Skip to content

Instantly share code, notes, and snippets.

@AlexJWayne
Created March 9, 2009 05:21
Show Gist options
  • Save AlexJWayne/76120 to your computer and use it in GitHub Desktop.
Save AlexJWayne/76120 to your computer and use it in GitHub Desktop.
texture = [[Texture textureNamed:[data objectForKey:@"texture"]] retain];
pos.x = [[data valueForKeyPath:@"position.x"] floatValue];
pos.y = [[data valueForKeyPath:@"position.y"] floatValue];
size = [[data objectForKey:@"size"] floatValue];
angle = (GLfloat)(rand() % 360);
opacity = [[data objectForKey:@"opacity"] floatValue];
drag = [[data objectForKey:@"drag"] floatValue];
energyRegen = [[data objectForKey:@"energyRegen"] floatValue];
shieldRegen = [[data objectForKey:@"shieldRegen"] floatValue];
armorRegen = [[data objectForKey:@"armorRegen"] floatValue];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment