showing results for - "movement of objects in javascript"
Valeria
05 May 2020
1var x = 0;
2var y = 0;
3
4if(right.arrow == pressed){
5Math.add(this.position.x + 10);    
6}    
7    
8if(left.arrow == pressed){
9    Math.sub(this.position.x - 10);
10}