The devil's advocate: Status quo of HTML5 gaming

Discussion and feedback on Construct 2

Post » Sat Sep 14, 2013 3:30 pm

I really don't want to be provocative, but some might get that impression when reading this. Please bear in mind that I'm a kind guy

So, I was a fanatic for Construct Classic. When CC was said to be retired, I withdrawed from the CC forums. C2 was lacking too many features I was used to. Instead I concentrated on my music.

Starting with r139 I gave it another try. After a few weeks of playing around, testing this and that, my impression is:
HTML5 has still a long way to go before consistent gaming is feasible.

It's not Scirra's or Ashley's fault, on the contrary, without C2 it would be much more worse.

The main aspect in gaming is to provide the same gaming experience to every gamer. It's this consistency that I miss in HTML5/Javascript gaming.

Just a simple example: You use a short loop sample and play it looped using the audio plugin. The gamer who's using Chrome will hear what you intended. The gamer using Firefox will hear a large gap between consecutive plays of the loop. Why? Because Chrome fully supports Web Audio, while Firefox doesn't.

Another one: For every audio used in your game, you need 3 files. The original, a ogg and a aac version. Why? Because IE and Safari forces AAC and Firefox ogg. Chrome, thank god, doesn't care and just supports all.
But this doubles the amount of data needed for your game.

And a third one: Chrome supports WebGL, Firefox partly (at least not on my system), and IE will never ever support it, as long as DirectX exists.

There are many more issues, and I'm sure most of you already stumbled upon them. That's where encapsulated solutions like flash have an advantage. It's unimportant on which browser or system the game runs, it's always using the same features/technologies.

And to be honest: As long as HTML5 gaming is subject to a stupid trial of strength between just 4 companies (Microsoft, Apple, Google, Mozilla), that hinder the progress of HTML5 gaming for all people around the world, I just can't hop on the train. Too many obstacles that just aren't needed.

If all developers of HTML5 games would act as one big voice, well, that could possibly be power enough to enforce uniform standards, like ogg support, WebGL support, etc.

But I'm afraid it will keep being a 4 companies' struggle.
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Sat Sep 14, 2013 4:07 pm

@tulamide

There is absolutely nothing wrong in playing devil's advocate as it can stimulate healthy debate.

I do agree with many points you make, but then, I was an early adopter in support of CC, not C2.

As it is, I honestly (my opinion here) think that the way the industry is going in just targeting the transient mobile market is a mistake, that will ultimately destroy the game industry. There is just not enough profit in it for the number of people targeting it.

There is also a ridiculous amount of generic cloning taking place, meaning innovation is seriously hindered.

Luckily, I was never in this for financial reasons, but as an enthusiastic amateur.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
87
Posts: 5,492
Reputation: 60,270

Post » Sat Sep 14, 2013 4:43 pm

One of my favorite sayings is "You don't go to war with what you want, you go with what you have."
That being said, you just have to know when to pick the fight.
The tools are there, you have to approach things differently.
You plan out every little detail.
Pick a platform, and if you can extend to others so be it.

For example, memory is limited, so you do things small.
Casual games are usually pretty small, but things like rts, and rpg's are huge. One way to deal with that is make the game in parts, episodic if you will. The net is perfect for that, once more that can work fairly well with Node-Webkit.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

Post » Sat Sep 14, 2013 5:57 pm

On the one hand, I like the concept of HTML5 games, but there will always be the browser wars that interfere with one consistent platform. I had wanted to make a game for my friends and family relating a family tale while playing. it was a great idea, and it was running great in Chrome. I didn;t test it in IE or FireFox because who uses those crummy browsers, right? Turns out most of my family did, and the game had horrible performance and lags. True, it's purely my fault for not testing in those browsers, but it's such a PITA juggling multiple browsers.

And this isn't a new thing either. browsers have always had, and probably always will have major incompatibilities. IE, being a Microsoft product tries to set their own standards, which the rest of the industry does their best to either avoid or side-step (understandibly so).

As long as the browser battles/wars continue, I just don't see HTML5 as a stable enough platform to try and develop for/with.
B
14
S
6
G
1
Posts: 143
Reputation: 1,800

Post » Sat Sep 14, 2013 7:47 pm

And Safari, lets not forget Safari, damn offline cache!! damn f***** lack of sound!
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Sat Sep 14, 2013 8:31 pm

Another approach: rather than relying on browsers, use wrappers like node-webkit and coccoonjs. This is a different deployment model, but at least its consistent.
B
12
S
3
G
4
Posts: 57
Reputation: 3,186

Post » Sat Sep 14, 2013 8:32 pm

So CC output consistently between all the platforms and that is what you miss?
B
240
S
62
G
33
Posts: 903
Reputation: 40,589

Post » Sat Sep 14, 2013 9:11 pm

[QUOTE=tulamide]Just a simple example: You use a short loop sample and play it looped using the audio plugin. The gamer who's using Chrome will hear what you intended. The gamer using Firefox will hear a large gap between consecutive plays of the loop. Why? Because Chrome fully supports Web Audio, while Firefox doesn't.[/QUOTE]
I've not run into this problem myself, and I'd be interested in seeing an example. I bet 50p I can fix it :D

On a side note, when developing on Windows Phone, this issue even occurs with native development.
[QUOTE=tulamide]Another one: For every audio used in your game, you need 3 files. The original, a ogg and a aac version. Why? Because IE and Safari forces AAC and Firefox ogg. Chrome, thank god, doesn't care and just supports all.
But this doubles the amount of data needed for your game.[/QUOTE]
It doubles the filesize, but only the relevent audio is downloaded by the user. When packaging as native you can just remove the unnecessary audio files.
[QUOTE=tulamide]And a third one: Chrome supports WebGL, Firefox partly (at least not on my system), and IE will never ever support it, as long as DirectX exists.[/QUOTE]
IE does now support WebGL and I've not had issue with Firefox myself (FirefoxOS on the other hand...).

So yeah, I'd contest your points :)
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,940

Post » Sat Sep 14, 2013 10:54 pm

@newt

The download size for an rpg or rts game may be a bit on the larger size, however the memory usage can still be greatly optimized. I'm currently making an rpg and have very low memory usage (I'll be posting a demo soon). There is potential but even so, C2 isn't as strong as your generic programming language but it does provide multiple exports which is why I like to use it. Also one thing to note is that Html5 is advancing and is still considered "new technology" which is why it hasn't yet been used to its full potential.

@tulamide
I'm currently not using any webgl effects but am still able to get decent results in terms of what I want to do. As for sound I guess I can see where your getting at but there are methods to work around with it and get similar results on all browsers.

B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Sun Sep 15, 2013 1:45 am

I will contest the points.

1. Apparently HTML5/JS can't create the same gaming experience. I will contest this. Language is not relevant to gaming experience. Developers and what they can manage with the tools they have hand matter. I assure a good team can provide some fantastic gaming experience with HTML5/JS. Keep in mind that Unity was in the same situation in the very early days. No one used Unity for "serious" games until a few major releases came and developers really picked up the steam.

2. HTML5/JS are not browsers. They are languages. The complaint is the run time environments(RTE) of the language. This is valid. however if you abandon the idea of supporting different RTEs and instead focus on a single RTE(NodeWebkit, CocoonJS...) you will make life easier. If you MUST abide by the limitations of supporting many RTEs.

However keep in mind that this is the same problem across ALL video games. PC is not the same language as PS3, 360(close), Linux, Wii, GC, DS..... all of these different hardwares give the developers who seek cross distribution the same headache... actually in fact using the browser RTE is less of pain as it's shared language. Just use common denomination of browser RTE and your good to go.

Keep in mind that there were game programmers working with with only 256kb disc storage, 640kb ram, 16 colours(and i'm being generous). If people can make robust RPG's that founded companies like Sqaure, Enix... so on. Then I'm pretty sure that everybody here can overcome the hurdles of browser RTE with 2gb+ram, 256mb+gpu, 2terabyte hard drives, digital distribution.

so I contest all the points. These trials of 4 mighty groups aren't just in the browsers, they are in hardware, OS and even API's as well. If other developers can overcome this hurdle to provide excellent gaming experiences. I don't see how an already fantastic cross platform technology is the limiting factor. When in face of what other companies need to deal with. Is the only tiny bump for us in comparison.

Though i will agree with another point. There is nothing wrong playing devil's advocate. it's really important. The discussion of examning idea's is super important. Getting people to evaluate there stance is important. It brings more innovation and thought.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,038

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests