Please look at my 60s code! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please look at my 60s code!

I cannot get the code to work on a mobile. It’s got something to do with sound and images not being found. https://code.sololearn.com/W54u7o812TBp/?ref=app

18th Jul 2018, 10:42 PM
ThThinka
ThThinka - avatar
10 Answers
+ 2
or i must have misunderstood your codename from which i thought it should be written in 60 seconds but the game is called 60s
18th Jul 2018, 10:53 PM
Roel
Roel - avatar
+ 2
cyk sorry😔 forgot about it, deleted my post edit*because of that and because of i understand now how the name is really ment* and hope im not gonna forget it anymore
19th Jul 2018, 12:14 AM
Roel
Roel - avatar
+ 1
yes, it’s called 60s
19th Jul 2018, 12:29 AM
ThThinka
ThThinka - avatar
+ 1
ThThinka yeah and the image problem is because you used files saved on your pc, so its searching for a folder named images, which i do have, but than you picked a image name which i dont have so my pc wont see it, so its better to use online images or upload your images to a cloud
19th Jul 2018, 12:31 AM
Roel
Roel - avatar
+ 1
and there is no <audio> or <video> so there is no way there is sound in your code
19th Jul 2018, 12:33 AM
Roel
Roel - avatar
+ 1
yeah, dropbox should work and for the audio https://www.sololearn.com/learn/HTML/2193/ or did i just misunderstood your question again
19th Jul 2018, 9:02 AM
Roel
Roel - avatar
+ 1
wait how do you want the audio to play
19th Jul 2018, 10:16 AM
Roel
Roel - avatar
0
I know it is a local file that’s what i’m asking for. the best way to link to an outside file? dropbox? and, how should i incorporate the <audio>?
19th Jul 2018, 5:08 AM
ThThinka
ThThinka - avatar
0
okay, that is for html, but does it work on javascript
19th Jul 2018, 9:48 AM
ThThinka
ThThinka - avatar
0
when the ball hits something, when the user presses start, and when the user presses a directional button. this code works perfectly on my PC (granted i change the urls for images and audio to local file names). i cant get it to work on a phone or over the web. so it has to be the files. i tried linking to my dropbox but i feel im doing something in the process wrong.
19th Jul 2018, 9:25 PM
ThThinka
ThThinka - avatar