Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Controller.extend({
- appName: 'Ember Twiddle',
- squareSize: 10,
- y: 0,
- movePacMan(direction, amount) {
- this.incrementProperty(direction, amount);
- },
- actions: {
- moveUp() {
- this.movePacMan('y', this.get('squareSize'));
- },
- moveDown() {
- this.movePacMan('y', -this.get('squareSize'));
- },
- }
- });
Add Comment
Please, Sign In to add comment