quantumpotato
|
|
« on: January 29, 2016, 02:05:37 PM » |
|
Hi, how does HTML5 work with consoles? Steam? Controller integration?
I saw that Nintendo offers an HTML5 devkit, which is promising.
I've been developing 2 Player Javascript games that I'd love to port to Steam & consoles without re-writing the code, only adding in support for controllers.
|
|
|
Logged
|
|
|
|
|
InfiniteStateMachine
|
|
« Reply #2 on: February 03, 2016, 05:46:37 PM » |
|
Using their browser won't be an option. Those are standalone applications.
theoretically you could use one of the solutions that converts javascript to code or a framework that has a web context widget
|
|
|
Logged
|
|
|
|
Cheezmeister
|
|
« Reply #3 on: February 03, 2016, 09:50:12 PM » |
|
You can run Javascript without a monumental effort by dropping v8 into your game. It's something I've been meaning to try, using JS to drive game logic. Though now that I think about it, I'm unsure whether v8 would compile to consoles.
HTML5 on the other hand, is not so easy. Basically, at that point you're talking about shipping a browser. Browsers are not easy things to make--let alone for unusual hardware.
|
|
|
Logged
|
|
|
|
Vadinci
|
|
« Reply #4 on: February 04, 2016, 04:26:59 AM » |
|
I don't know about consoles, but for Steam (and likely any desktop distribution system), you can use wrappers such as Electron. Basically it is a standalone browser using node.js, so you get some cool additional features to utilize the power of desktop apps. It should also run on any major OS with no to little changes in your codebase! (just download the wrapper for the appropriate platform and feed it your app) Greenheart Games made GameDev Tycoon using HTML5, and it runs on desktop in a similar fashion (afaik, Electron didn't exist back then). They also open sourced the libary they used to connect to the Steamworks API through node.js: Greenworks. I know some projects got controller input working in browsers, so getting it to work in a desktop app should be very doable.
|
|
|
Logged
|
|
|
|
quantumpotato
|
|
« Reply #5 on: February 04, 2016, 09:20:03 AM » |
|
I don't know about consoles, but for Steam (and likely any desktop distribution system), you can use wrappers such as Electron. Basically it is a standalone browser using node.js, so you get some cool additional features to utilize the power of desktop apps. It should also run on any major OS with no to little changes in your codebase! (just download the wrapper for the appropriate platform and feed it your app) Greenheart Games made GameDev Tycoon using HTML5, and it runs on desktop in a similar fashion (afaik, Electron didn't exist back then). They also open sourced the libary they used to connect to the Steamworks API through node.js: Greenworks. I know some projects got controller input working in browsers, so getting it to work in a desktop app should be very doable. Thank you, both useful repos! @Cheez - Javascript, I follow you there with V8. I'd love to just draw directly to a canvas... Chromium, maybe?
|
|
|
Logged
|
|
|
|
Polly
Level 6
|
|
« Reply #6 on: February 04, 2016, 10:34:39 AM » |
|
I'd love to just draw directly to a canvas... Chromium, maybe? As mentioned by Vadinci, there are a slew of applications which let you wrap a HTML/CSS/JS project into a standalone executable .. and even though i can't recommend the applications* i have experience with anymore, it seems like AppJS ( Chromium-based ) is a popular choice nowadays. *Mozilla Prism has been abandoned & Appcelerator Titanium has become paymium.
|
|
|
Logged
|
|
|
|
Cheezmeister
|
|
« Reply #7 on: February 04, 2016, 09:26:21 PM » |
|
Greenheart Games made GameDev Tycoon using HTML5, and it runs on desktop in a similar fashion (afaik, Electron didn't exist back then). They also open sourced the libary they used to connect to the Steamworks API through node.js: Greenworks.
Woah, that's amazing! That gives me warm fuzzies and makes me want to throw money at Greenheart.
|
|
|
Logged
|
|
|
|
quantumpotato
|
|
« Reply #8 on: February 06, 2016, 10:45:44 AM » |
|
I'd love to just draw directly to a canvas... Chromium, maybe? As mentioned by Vadinci, there are a slew of applications which let you wrap a HTML/CSS/JS project into a standalone executable .. and even though i can't recommend the applications* i have experience with anymore, it seems like AppJS ( Chromium-based ) is a popular choice nowadays. *Mozilla Prism has been abandoned & Appcelerator Titanium has become paymium. Yeah app.js looks great, thanks! I'm not sure the difference between app.js & electron.js, anyone? I found a brief description here http://www.tivix.com/blog/nwjs-and-electronjs-web-technology-desktop/ saying app.js comes with more built-in routing. So.. big question... how about controller support? Is the Gamepad API any good?
|
|
|
Logged
|
|
|
|
quantumpotato
|
|
« Reply #9 on: August 20, 2016, 09:54:17 AM » |
|
UPDATE: Yes the Gamepad API is fantastic. Minus one annoyance that you have to press a button before the controller will register (an anti-fingerprint mechanism, I haven't bothered trying to override). I'm yet to publish on Steam but I've uploaded zipped binaries to itch.io no problem. Xbox & PS4 look to be non HTML from what I've gathered. Nintendo offers an HTML5 kit for Wii, but I've been unable to register as of recently https://forums.tigsource.com/index.php?topic=57340.0.
|
|
|
Logged
|
|
|
|
Amirai
|
|
« Reply #10 on: August 21, 2016, 02:00:30 PM » |
|
From what I understand, it seems that HTML5 games are possible on the Xbox one.
|
|
|
Logged
|
|
|
|
quantumpotato
|
|
« Reply #11 on: September 01, 2016, 04:34:39 PM » |
|
From what I understand, it seems that HTML5 games are possible on the Xbox one.
Wow, thanks! It looks like they haven't supported the Gamepad API yet, which.. um...
|
|
|
Logged
|
|
|
|
|