Guest User

Untitled

a guest
Feb 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Controller.extend({
  4. appName: 'Ember Twiddle',
  5.  
  6. squareSize: 10,
  7. y: 0,
  8.  
  9. movePacMan(direction, amount) {
  10. this.incrementProperty(direction, amount);
  11. },
  12.  
  13. actions: {
  14. moveUp() {
  15. this.movePacMan('y', this.get('squareSize'));
  16. },
  17. moveDown() {
  18. this.movePacMan('y', -this.get('squareSize'));
  19. },
  20. }
  21. });
Add Comment
Please, Sign In to add comment