Guest User

Untitled

a guest
Oct 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Easy::Actor.create{
  2. @sheet = Easy::SpriteSheet.new(path_to_sprite_sheet, width_of_a_tile, height_of_a_tile)
  3.  
  4. @animations = {
  5. :standing_side => [0],
  6. :standing_front => [3],
  7. :standing_back => [6],
  8. :running_side => [0, 1, 0, 2],
  9. :running_front =>[3, 4, 3, 5],
  10. :running_back => [6, 7, 6, 8]
  11. }
  12. }
Add Comment
Please, Sign In to add comment