Skip to content

Instantly share code, notes, and snippets.

@pavelvlasov
Created July 24, 2018 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavelvlasov/d2142628056d23bf8bc28d1e52551f41 to your computer and use it in GitHub Desktop.
Save pavelvlasov/d2142628056d23bf8bc28d1e52551f41 to your computer and use it in GitHub Desktop.
Player component
<Container>
<Gun top={15} left={18}>
<Tile src={gun} state={0} tile={{ width: 17, height: 17 }} />
</Gun>
<Sprite
src={sideAnimation}
states={4}
tile={{ width: 20, height: 24 }}
scale={1.5}
framesPerStep={8}
/>
</Container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment