Blossomforth

Camera Object Constructor

Jul 16th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Location Set
  2. x = room_width / 2;
  3. y = room_height / 2;
  4.  
  5. //Speed in pixels how far will travel per step
  6. pan_speed = 100;
  7.  
  8. //Zoom Scale
  9. zoom_scale = 1;
  10.  
  11. //The scale adjustment per tick
  12. zoom_tick = 0.1
  13.  
  14. //Maximum Zoom Scale
  15. zoom_scale_max = 1;
  16.  
  17. //Minimum Zoom Scale
  18. zoom_scale_min = 0.1;
Advertisement