![]() ![]() I'd say the main.js file is the important one, as that's basically the start up file. NW. The vanilla package you can download from electron can open an app folder that you drag into it, or be put into the resources folder to open at launch. there's a json file, an index.html file, a main.js file and whatever assets the game came with. Since the game code is all open source it's no big deal.Īll the App data/assets/etc is in "resources/app". import Cap from 'cap-rbfork' //set on a vue. The following four hundred words will deal. ![]() If you want to use native features you'll need javascript code and probably whatever NPM stuff you might want.Īpparently you can also get electron to pack the app a certain way, but I'm lazy and just opted to rename the executable from electron to ping pong. 1 My problem is that I want to import this library on a desktop app based on NW.js (the template is here ). What's the difference between app.js, nw.js and electron - Quora Answer: AppJS v/s ElectronJS But I have tried to write things down in a layman’s language so that non-techie guys find it cool to understand what’s going on here. I edited my post several times because I thought it got kinda long and rambly, but basically electron can open a html file inside main.js, and whatever you throw in that will open up in a desktop window. There's no linux or mac binary provided, but you should just be able to copy the app folder and then run the main.js file yourself with a linux or mac version of electron. I have no idea how the original game works, other then I think it's running a jquery file. Basically just creating the main.js file in resources/app and screwing with the scores so that they would be side by side and not two lines. Original github page here, but I'm too lazy to figure out how to make a github branch. The original license from the example was MIT, so I'm just gonna stick with that. I took an html5 game example made by Thomas Mak, and just did some editing to make it work in a desktop window. After playing around a bit, I made an app folder and managed to make something pretty easily.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |