Skip to content

Instantly share code, notes, and snippets.

@karl-zylinski
Created February 23, 2014 01:29
Show Gist options
  • Save karl-zylinski/9165305 to your computer and use it in GitHub Desktop.
Save karl-zylinski/9165305 to your computer and use it in GitHub Desktop.
self.health_bar_texture.map(|t| {
Sprite::new_with_texture(t).map(|mut s| {
s.set_position(&Vector2f::new(10.,10.));
window.draw(&s);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment