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

Function init

assets/js/joystick.js:2–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1//Initialize
2function init(){
3 //Character Intitialization
4 objImage = document.getElementById("charr");
5
6 // Shoot Initialization
7 s = document.getElementById('shoot');
8
9
10 leftl = document.getElementById("lleg");
11 rightl = document.getElementById("rleg");
12 bod = document.getElementById("body");
13
14 // Character position
15 objImage.style.position='relative';
16 objImage.style.left='0px';
17 objImage.style.top='0px';
18
19 //Shoot position
20 s.style.position='relative';
21 s.style.left='0px';
22 s.style.top='0px';
23 }
24
25// Move audio{
26 function moveAudio(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected