MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / goJump

Function goJump

assets/js/joystick.js:128–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126
127// Jump
128function goJump(){
129
130 var jump = new Audio();
131 jump.src = "../assets/sounds/joystick/Jump.mp3";
132 jump.play();
133 objImage.style.top = parseInt(objImage.style.top)-50 +'px';
134
135 setTimeout(
136 //Making the character back to position
137 function(){
138 objImage.style.top = parseInt(objImage.style.top)+50 +'px';
139 },
140
141 450);
142
143
144}
145
146// Shoot
147function goShoot(){

Callers 1

getKeyAndMoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected