Skip to content

markliu2013/tank-war

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Tank War Game

This is a Tank War Game written use JavaScript. try to play. If you have any suggestion or bug to post, click here.

I built my own jQuery library in this project. How to build your own js library?

Installing

This is only static html files, it is very easy to install. You don't even need a web server like apache or tomcat to run. Just download the files, open index.html with your browser application, we suggest Chrome.

Building GruntJS Task

GruntJS is a JavaScript Task Runner, there are many plugins can help you make your project from development to production. I have created a grunt file, contains min css and javascript, change html link, deploy to server. How to run GruntJS? Firstly, you need install nodejs >= 0.8.0.

  $ npm install -g grunt-cli
  $ git clone https://github.com/markliu2013/tank-war.git
  $ cd tank-war
  $ npm install
  $ grunt #compile all files
  $ grunt deploy  #compile and deploy

NOTE: You should change the ftp configuration.

Grunt Plugin List :

  1. grunt-contrib-concat
  2. grunt-contrib-cssmin
  3. grunt-contrib-uglify
  4. grunt-processhtml
  5. grunt-contrib-htmlmin
  6. grunt-contrib-clean
  7. grunt-contrib-watch
  8. grunt-ftpush

Browser Supported

Your browser should support document.querySelectorAll :

License

(The MIT License)

Copyright (c) 2014 Mark Liu < markliu2013@gmail.com >

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.