Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What have you found to be the biggest pain point to starting an HTML5 game and why? #17

Open
dmose opened this issue May 16, 2012 · 9 comments
Labels

Comments

@dmose
Copy link
Member

dmose commented May 16, 2012

The intent here is to get a sense of what pains are hurting HTML5 game developers most in the real world to help prioritize which ones to address.

@blackjk3
Copy link

I just did a talk on building html5 games for mobile. Slides
For me the hardest issue to get around when starting a game was browser compatibility. Lack of SVG support with older Android, unusable implementation of html5 audio for mobile safari, slow canvas performance, weird css3 transform bugs (again android). Granted mobile is far more limiting however, the same case could potentially be made for desktop browser games as well. It usually means i'm spending a lot of time at the beginning on caniuse or running tests to see what my limitations/possibilities are for each browser. Not really sure what the solution is here. Just thought I would get the ball rolling and possibly spark some conversations.

@nklsrh
Copy link

nklsrh commented May 23, 2012

Having to write all the boilerplate code to begin development. Every game I make, I need to create the same index.html, style.css, game.js, keyboard.js, mouse.js, and other files and fill them with the basic stuff.
Would be nice if, like XNA, there was a prebuilt set of js classes that just let me go "Mouse.X" or "if(KeyDown(Keys.A))" so I can worry less about coding the engine and focus on the game mechanics instead.

@benlanier
Copy link

Haxe/NME is great for building an HTML5 game, but getting the exact same output on different browsers still seems some distance away. With NME I didn't have to write any boilerplate, and the majority of the API works well across platforms. It seems like not many people know about Haxe, but every time it shows up on HN or similar sites, people always seem turned off by the "write once, run everywhere" idea and don't even bother trying it for single-platform projects. Maybe it's because they've been let down by similar technologies in the past and have become prejudiced as a result.

@dmose
Copy link
Member Author

dmose commented May 23, 2012

@blackjk3 I like those slides, both style and content. We've been thinking about spinning up a embeddable benchmarking library for games, which solves some of the issues you mention. What process do you typically go through when starting a game? Having a design in mind, and then searching for which mobile platforms will support that design? Or picking platforms ahead of time and designing to them? Or something else?

@nklsrh That makes sense. It might be that this template by itself solves some of the problems you're hitting (index.html, style.css) and makes others easier to solve (by adding a framework that does what you want, like "volo add craftyjs"). Of course, that would require you to find and select the appropriate libraries/frameworks. Alternately, it sounds like you would be better served with a less minimalist and more opinionated/specialized template that could provide more functionality. Your thoughts?

@benlan that does look interesting. Getting the same output everywhere can be complicated, and, I think that "write once, run everywhere" as a slogan (which I first encountered as a sales pitch for Java) sets people up to be disappointed, because it's really "write once, test and customize everywhere", much like the Web.

A question for all three of you (and anyone else who wishes to chime in): is this template project something you think you're likely to use in the future? If not, I'd love to understand more about why not...

@blackjk3
Copy link

@dmose for me it all starts with an idea. Then I would figure out the logistics of what platforms will support that idea. For example, it may be a multiplayer game so figuring out all the different platforms that web sockets are available on or if there are acceptable fallbacks. After figuring out all those questions and compiling a list of available platforms I try to create a quick prototype to benchmark performance. At this point I should know if the game is possible given my researched limitations. If possible, I would then build out the game based on fully designed concepts. My process as described unfortunately leads to a lot of abandoned game concepts. There is probably a better process, and, I would be all ears if it would help go from idea to a polished game with less steps in between.

As for your second question... I would be very interested in using the project. I am already using a require.js approach to structure my games, and I had rolled my own build process using r.js and some ant scripts. So in my mind this looks like a great start for someone.

@dmose
Copy link
Member Author

dmose commented May 23, 2012

@blackjk3 So one thing occured to me is that one could take an embeddable performance library as I described earlier and give it a very thin wrapper so that you could run it on all the hardware you cared about and it could generate a report. I would imagine this could offer at least a start. One could also imagine doing this in tandem with a service such as jsperf.com, and then the submitted benchmarks determined to be the most useful could be included in the library.

Glad to hear you're interested in using the template. If you come up with ways to make it more useful or usable, I'd love to hear them (as a github issue or elsewhere).

@nklsrh
Copy link

nklsrh commented May 23, 2012

I've never installed Node and Volo. I'll try it out and let you know if I
feel like using it still.
I read the install guide and thought, "well, this seems like a lot of
effort. Why don't I just copy paste files from my old project and take it
from there?"
But I'll give it a go as soon as possible. Maybe the process is easier than
I expected it to be...

@blackjk3
Copy link

@dmose that would be unbelievably useful information. Especially if joined with something like jsperf. That way I could have some data up front. Instead of building a prototype and realizing later on that i'm only going to get 6 fps or whatever with canvas before iOS 5 (Mobile Safari 5.1) when HW acceleration was added. Right now the only way I figure these issues out is through trial and error. Again, would love to hear other peoples process. I could easily be missing something here.

@dmose
Copy link
Member Author

dmose commented May 25, 2012

@nklsrh Thanks for giving it a try! I'll be very interested to hear what the experience of actually going through it is like for you.

@blackjk3 Knowing that you'd find that useful is great info, thanks! As far as other folks processes, that's probably a bit out of scope for this "git issue", but it is a very interesting question. The gamedev sub-reddit http://www.reddit.com/r/gamedev/ might be an interesting place to poll for that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants