GAME DEVELOPMENT WITH JAVASRIPT

Choosing Tools For Game Development

➤  MS Dos machines for playing games hardware, PC games have developed so much over those years and stayed in trend for a long time now. JavaScript games on the other hand fairly neglected.
➥  But HTML5  created a high speed internet connectivity for making web browser games. ➥JavaScript based games have added merits of platform independent and run across devices.




PHASER IS ONE OF THE MOST USED  DEVELOPMENT TOOL


⏩ WHY CHOOSING PHASER FOR WORK ?
Phaser is quick fast, open source benefits and easy to get started with it.  It facilitates the creation of 2D game framework for making HTML5 games for desktop and mobile. In comparison with other like Defold it is much better than defold.

➤ INSTALLING A WEB SERVER 
➫  For windows - WAMP or XAMPP servers for Windows platform. WAMP install an icon into our system we can modify it or stop or restart  and can download a web server on its own. but a problem in WAMP server IE11 causes freeze.

For OS X - MAMP or WAMP also have nice interface, recommended strongly MAMP

simple HTTP server with python and you need a quick server. python comes with easy built in HTTP servers, can serve files from any local folder. Only need to install python in pc

HTTP server for node-js  - http server is a simple , zero configuration command line http server for node.js. it is simple and hackable enough to be used for testing, local development and learning.

php 5 built in web server - PHP 5.4 provides a built in web servers. It is only really suitable for development purposes and serves all files sequentially, but is easily power-ful enough for testing HTML5 games. It is invoked from a single command line call...


CHOOSING AN EDITOR

You will need to prepare the java script code. There are many options 
Subline text - Sublime considered as extremely powerful text editor rather than an IDE. It is also used by phaser company for editing text.

Atom -  atom is a free source code platform text editor from the team at GitHub. This tool is very costly, It is not possible to gain any feature in this tool.

Visual studio code - Visual studio code is one of the most powerful and popular editing tool which is available for windows, mac OS, Linux.  It comes with built in support with java script, type script and Node.js and rich extension for other languages like c++, c£, java, python, php, go.



DOWNLOAD PHASER

It is freely available on GitHub website
Go to - https://github.com/photonstorm/phaser/tree/v3.15.1
        as GitHub provides option to download whole resource as ZIP or tar file.

LOADING FIRST SCREEN 

Create a file called index.html inside of the web root and add  the code in localhost/or 127.0.01/into your browser. Then specify a port number depends on the server. It displays demo on the browser.









GAME DEVELOPMENT WITH JAVASRIPT GAME DEVELOPMENT WITH JAVASRIPT Reviewed by Rock on August 01, 2019 Rating: 5

No comments:

Powered by Blogger.