Full name : Visual-js GUI for windows Multiplatform 2d Game engine
creator : Nikola Lukic 2017
2018 open source
Visual-js project parts :
-2D PART :
Js framework with windows GUI editor and game instance creator.
( + server engine tools + server part of web apps )
-3D PART :
webgl based on three.js engine
-3D PART :
webGL2 based on glmatrix 2.0
-2D PART (new):
This is TypeScript based game engine (client part ts).
With strong connection with webpack
Physics done with (matter.js) matter ts
This part is removed from this project. New link is : https://github.com/zlatnaspirala/visual-ts-game-engine
Basic licence rules :
1) Each file in this project has its own license , be careful , do not violate the basic rules.
2) You are free to use any version of Visual JS library in any other project (even commercial projects)
as long as the copyright header is left intact Except for plugins on sale and graphics that come with
them (they have special commercial licence).
3) Please read the following terms and conditions before using this application:
Disclaimer of warranty
'Visual js' is provided "as-is" and without warranty of any kind, express, implied or otherwise,
including without limitation, any warranty of merchantability or fitness for a particular purpose.
In no event shall the author of this software be held liable for data loss,
damages, loss of profits or any other kind of loss while using or misusing this software.
External licences in this project :
Webcam NUI control is under : Created by Romuald Quantin. http://creativecommons.org/licenses/by-nc-sa/3.0/
WEBRTC - webcam communication is under :
Creator Muaz Khan
Socket.io.js - http://socket.io/download/ ( also implemented intro build.js )
webgl2 based on : Copyright (C) 2014 Tappali Ekanathan Keestu (email@example.com) GNU General Public License
OBJ loader : https://github.com/frenchtoast747/webgl-obj-loader
Textures download from http://textures.com
More texture downloads http://www.textures4photoshop.com/
Female Body v3.blend this file has been released by AndresCuccaro under the following license: Creative Commons Attribution 3.0
About GUI for windows (canvas2d part only) :
windows GUI application version 1.0 (using visual-js 0.9 lib)
Important : you will need NET 4.5.2 minimum also redistribution pack for c++
How to start project ?
1) Click CREATE APPLICATION
2) Enter new application name in input prompt
3) Select folder for server part of application (important : www is not secure place)
4) Select folder for client part of application ( any path in www)
5) New app name will appear in project list , select and click OPEN APPLICATION
6) Open your server folder :
Install node.js modules
One way - Use windows bat-s file (in server root folder with prefix install_ )
Second way - open cmd terminal and enter next command :
- npm install mysql
- npm install delivery
- npm install express
- npm install mkdirp
- npm install socket.io
- npm install firstname.lastname@example.org
Very easy installation and project files generator .
Now you can use On-Page-Editor (nice for visual setup , checking positions and dimensions - not for logic ) . manual start from cmd : server_folder/node editor.js
After starting On-Page-Editor open browser icon to open internet browser in editor mode . See video explanation :
If you use editor.js to visual create game object method , you must start ***node build_from_editor_to_visual_js_file.js*** on the end of work.
This tool will create visual.js in folder starter/ with all your game object was created in editor style .
or you can use Visual-JS Source editor.
Visual-JS Source editor (2d part only)
is new and better way .In future visual staff will be better (real time simulator will be implemented).For now this place is good for coding .
Visual-js works direct with project files , no need for build .
Add->New game object (form dialog for define type of new game object )
Add->Quick code (make your work faster - add usually code blocks)
Resources - explorer view for images and audios , you can drag or edit also need to execute node build_resources for creating resources object for engine.
Inserting new code will be always at current line selected intro editor .
Save on drop menu or better with ctrl+s before testing in browsers.
Adding new script explanation :
After adding new script and save script if you have extra changes , open starter/run.js and you will found line :
Use from menu Run->Choose browser for testing . - important safari not working at the moment
chrome , firefox , opera
Tutorial - Pencil (Animation path) :
How to use Pencil tool to create PATH object . Path object can be saved intro localhost , you can collect object and put it direct source code .
File location : starter/templates/paths.js Templetes are made from visual-js core also . See source code : paths.js
Online demo examples at :
Demo slot mashine basic demo at :
Help about new 2d part - implementation of matter.js based typescript .
I make strong relation with webpack and project . build folder is full vendor nature. Html css and resources come from dependency logic taken from source.
To make all dependency works in build proccess we need some plugins.
Tile's background draw for images (alias sprite - but for now there's no sprite and frame by frame animation methods).
Small engine config .
Some option in aspect view like
npm install typescript
npm i clean-webpack-plugin --save-dev
npm i html-webpack-plugin --save-dev
Possible fix :
npm i webpack --save-dev
npm i extract-text-webpack-plugin --save-dev
Fix code format :
tslint -c tslint.json 'src/**/*.ts' --fix
Download project link :