Show HN: Scrambled – An iOS Game in HTML5
scrambledapp.com
scrambledapp.com
Just a minor issue on the code you have on [1]:
imagesToPreload.forEach(function(src) {
var img = new Image();
img.src = src;
img.onload = hasLoaded;
img.onerror = hasError;
})
The onload and onerror callbacks would be best to be assigned prior to setting the image's src attribute so as to make sure they are always called.Also, on your Element.hasClass method have you considered a non-regex approach, like this.className.split(' ').indexOf(c)? That would most probably be faster. Same goes for removeClass where something like this.className.split(' ').reduce(...).join(' ') may do the trick.
element.classList.add('classname')
element.classList.remove('classname')
element.classList.contains('classname')
element.classList.toggle('classname')An Android release is also questionable. Not such a big market money wise, and they would have to port the rest of the environment too (the native hooks), AND take into account the various screen sizes and OS versions (50% of Android users still use 2 year old versions). Might as well don't bother at all.
(Or do you mean the iOS browser? Still, doesn't matter. If you want to sell an iOS, there's just no comparison between the monetization facility of the App Store compared to the browser).
Not saying it's not an issue the app should try to work around a broken iPhone, but if the iPhone's silence switch can't be trusted to do the simple job of silencing the phone, it's a problem with the device.
I tend to always have my phone on silent so it's not a distraction if I get an email or text while talking to someone, but if I play a video I want it to actually make some noise. Google's YouTube app doesn't play audio if switched to silent, and it's frustrating having to frequently switch silent off.
Whether background music is initiated by the user or not is debatable. I'd say it isn't.
Btw, the Youtube app did give me audio while the phone was set to silent.
EDIT: More random tapping and swiping got me to the "Achievements" screen which scrolls vertically but I have no idea how to get off this screen and back to the game.
A barrage of UI events ("swiping and tapping all over the screen") rarely helps when an app has stuck.
>Heading back to my "desktop" and back into the app leaves me at the same "frozen" screen. I-phone 4 with 5.1.1
Tried killing the app? Open the list of open apps (double click the home button), and "X" it to death. Open again.
I downloaded the app too (on iPhone 5), and had no such problems as of now (I've only played for like 30 minutes though).
EDIT: Me stupid: http://www.scrambledapp.com/articles/for-developers/
[1] http://www.scrambledapp.com/articles/for-developers/ [2] http://davidwalsh.name/classlist [3] http://caniuse.com/classlist
Anyone know why web apps are getting so good lately? Hardware power, browser optimisations, or what? Looks like there's a bright future ahead anyway.
Also, where is an android app? It should be easy to port to an android app since android also uses webkit browser?
I want to pay for an app up-front, or maybe get it free and pay one fixed fee. Anything else and I will not even try it. I realize I'm in a minority right now, but I think this trend in games needs to go away.
- Alpha blending (which GIF doesn't have, only has simple transparency).
- More than 256 colors (which GIF doesn't have. You have to dither to get a semi-acceptable gradient and the like).
Why are there two "D" in the following screenshot?