1

I thought it would be cool and easy to make a game in a chrome app, but I wan't my app to open in a new window, like Spelunky HTML5. Here is a picture of what it looks like: Spelunky HTML%

The app is run in a unique chrome window, and it is made with HTML5. Is there any way to do this with manifest.json? If not, I'm open to anything.

Community
  • 1
  • 1
Mashpoe
  • 504
  • 1
  • 9
  • 27

1 Answers1

1

Use chrome.app.window.create:

chrome.app.window.create('index.html', {
    id: "MyApp",
    outerBounds: {width: 500, height: 300}
});

Make sure to examine the official step-by-step tutorial and the demo app.

wOxxOm
  • 65,848
  • 11
  • 132
  • 136
  • funny, I had the demo app page open in a separate tab when I posted this question, but I didn't care to look at it until this morning, thanks! – Mashpoe Sep 24 '15 at 14:36