News for hackers. Stuff that matters.
Re:I made an iPhone game with PhoneGap and won't do it again by rogueSkib on Saturday November 26, 2016 @10:53PM (#13047603)
OP - I've been working with the Game Closure team on the HTML5 devkit for quite a while now, and we have yet to find an engine that gets better performance out of 2D JS games on native. The view hierarchy, rendering, and animation are written in both JS (web builds) and C (native builds), connected by a Java Android stack and an Objective-C iOS stack. The docs are a bit out-of-date but the tech is really powerful. It supports WebGL and canvas rendering in web builds, but there's no 3D support yet.

Github: https://github.com/gameclosure/devkit Docs: http://docs.gameclosure.com/

Re:I made an iPhone game with PhoneGap and won't do it again by lazerwalker on Sunday November 27, 2016 @12:01AM (#13047815)
Does Game Closure provide / require you to use its own game engine, or just provide a canvas-compatible rendering context?

I'm trying to improve performance of my ImpactJS-based game on Android, but none of the other canvas reimplementations I've played with (e.g. Cocoon, Crosswalk) are meaningfully more performant than a regular old web view.

If Game Closure will let me drop my existing canvas-based game into an optimized canvas context, a la Ejecta on iOS, I'd be super interested in checking it out. The docs are making it hard for me to figure out what it actually provides.

Re:I made an iPhone game with PhoneGap and won't do it again by rogueSkib on Tuesday November 29, 2016 @04:58PM (#13066591)
That would be tough; the accelerated piece in native is mostly coupled to the JS API - specifically the view hierarchy and animations. It's pretty straightforward to port games to it though, and it's generally easy to pick up and move fast. The easiest way is to take a look at some example code. Here's a game I built for the Global Game Jam 2015. Cheers!

Source: https://github.com/rogueSkib/orcrun Playable: http://rogueskib.github.io/orcrun/

Re:I made an iPhone game with PhoneGap and won't do it again by lazerwalker on Wednesday November 30, 2016 @02:37AM (#13069112)
Is that supposed to control via the arrow keys? Seems to not respond to keyboard input on my machine (macOS 10.12.1, both Safari and Chrome)
Re:I made an iPhone game with PhoneGap and won't do it again by rogueSkib on Thursday December 01, 2016 @07:25AM (#13078902)
Oh no, it's just swipes. We were designing for mobile, and desktop suffered O.o