Because I took an indefinite break from programming and wanted to spend more time on my other hobbies – a good book or geocaching – no new article has appeared here for an unusually long time. I would like to make up for that now, since this is a good opportunity.
Originally I planned to go to the Beskydy mountains today, but I walked to the neighboring village, sat down in front of the municipal office to check my connections, and on my Windows Phone the Store wasn’t working, so I couldn’t download WMM Jizdni rady, and on my Android phone, for a change, the internet didn’t work at all. A proxy problem.
I knew the proxy is set in Android, but I hadn’t changed anything, so I thought the problem was somewhere else – maybe right at Vodafone. But for anyone to talk to me, I needed to know the PIN for My VF, and I had written it down on a piece of paper that was at home. So I went back. Tomorrow I’ll just go on a one-day geocaching trip, on Wednesday I’ll stay at home, it will pour and storm, and on Thursday hopefully everything will be great again and I will finally make this little dream of mine come true.
When I created the Ants, I of course tested how they worked in Dartium, and when everything worked correctly, I transpiled it to JS, uploaded it to the hosting and tested it there. Everything was fine, so I wasn’t ashamed to share it on G+. However, one of the members there pointed out that the game works, but there are lots of E404 errors shown in the Google Chrome console.
Today I fixed it, but there are still 2 errors in Chrome (and in IE there is such a serious error, most likely created by Dart2Js, that only a blank screen is displayed):
1)ants.dart not found – I don’t know whether WebStorm does this, but it probably does, because when I transpiled it in Dart Editor, it always put the *.dart files into the build/web folder as well. Now there are only 2 files there – ants.html and ants.dart.js.
2)’webkitAudioContext’ is deprecated. Please use ‘AudioContext’ instead. – The game works as it should, I’ll fix it next time, and I hope Chrome won’t cut off that Web API. It just seems to me that the game’s sound responses are very slow. I don’t know whether it’s possible to load more WAV files into memory; I managed only one or none. But maybe it’s just our slower internet. It used to seem much faster to me. Who would like to play ?! 🙂