Provides a handy API to interface nodeGame with the browser window, and to load nodeGame widgets.
npm install nodegame-window
|1||downloads in the last week|
|44||downloads in the last month|
|Version||0.3.5 last updated a year ago|
|Keywords||nodegame, window, browser, widgets|
|Dependencies||JSUS, NDDB, commander, smoosh|
GameWindow provides a handy API to interface nodeGame with the browser window.
Creates a custom root element inside the HTML page, and insert an iframe element inside it.
Defines a number of predefined profiles associated with special configuration of widgets.
Depends on nodeGame-client and JSUS. GameWindow.Table and GameWindow.List depend also on NDDB. Widgets can have custom dependencies, which are checked internally by the GameWindow engine.
You can create a custom nodegame-window build using the make.js file in the bin directory.
node make.js build -a // Full build, about 20Kb minified node make.js build -B // Bare (minimal) build, about 8Kb minified
Usage: make.js [options] [command]
Commands: clean Removes all files from build folder build [options] [options] Creates a nodegame-window custom build Options: -h, --help output usage information -V, --version output the version number Usage: build [options] [options] Options: -h, --help output usage information -B, --bare bare naked nodegame-window (only core) -a, --all full build of nodegame-window (default) -C, --clean clean build directory -A, --analyse analyse build -o, --output <file> output file (without .js)
Copyright (C) 2012 Stefano Balietti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.