tank-war:JavaScript坦克大战游戏

  • l9_111210
    了解作者
  • 14.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-15 02:33
    上传日期
JavaScript坦克大战游戏 这是使用JavaScript编写的Tank War Game。 。 如果您有任何建议或错误要发布,。 我在这个项目中建立了自己的。 正在安装 这只是静态html文件,非常容易安装。 您甚至不需要运行apache或tomcat之类的Web服务器。 只需文件,然后使用浏览器应用程序打开index.html,我们建议使用 。 构建GruntJS任务 GruntJS是一个JavaScript Task Runner,有许多插件可以帮助您使项目从开发到生产。 我创建了一个grunt文件,包含min css和javascript,更改html链接,部署到服务器。 如何运行GruntJS? 首先,您需要安装 。 $ npm install -g grunt-cli $ git clone https://github.com/markliu2013/tank
tank-war-master.zip
  • tank-war-master
  • css
  • master.css
    1.8KB
  • package.json
    851B
  • index.html
    4.1KB
  • js
  • Game.js
    7.2KB
  • Tank.js
    4.2KB
  • Grid.js
    516B
  • jQuery.js
    4.7KB
  • util.js
    746B
  • TankContainer.js
    408B
  • Bullet.js
    4.6KB
  • NPCTank.js
    2.2KB
  • MyTank.js
    1.6KB
  • LICENSE
    1KB
  • Gruntfile.js
    1.8KB
  • .ftppass
    60B
  • .gitignore
    66B
  • README.md
    3.5KB
内容介绍
# JavaScript Tank War Game This is a Tank War Game written use JavaScript. [try to play](http://demo.whlcsj.com/tank-war/index.html). If you have any suggestion or bug to post, [click here](https://github.com/markliu2013/tank-war/issues/new). I built my own [jQuery library](https://github.com/markliu2013/tank-war/blob/master/js/jQuery.js) in this project. [How to build your own js library?](http://net.tutsplus.com/tutorials/javascript-ajax/build-your-first-javascript-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](https://github.com/markliu2013/tank-war/archive/master.zip) the files, open index.html with your browser application, we suggest [Chrome](https://www.google.com/chrome/browser/). ## 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](http://nodejs.org/download/). ```sh $ 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](https://www.npmjs.org/package/grunt-contrib-concat) 2. [grunt-contrib-cssmin](https://www.npmjs.org/package/grunt-contrib-cssmin) 3. [grunt-contrib-uglify](https://www.npmjs.org/package/grunt-contrib-uglify) 4. [grunt-processhtml](https://www.npmjs.org/package/grunt-processhtml) 5. [grunt-contrib-htmlmin](https://www.npmjs.org/package/grunt-contrib-htmlmin) 6. [grunt-contrib-clean](https://npmjs.org/package/grunt-contrib-clean) 7. [grunt-contrib-watch](https://www.npmjs.org/package/grunt-contrib-watch) 8. [grunt-ftpush](https://www.npmjs.org/package/grunt-ftpush) ## Browser Supported Your browser should support [document.querySelectorAll](https://developer.mozilla.org/en/docs/Web/API/Document.querySelectorAll) : - [Chrome](https://www.google.com/chrome/browser/) - [IE9+](http://www.microsoft.com/en-us/download/internet-explorer-10-details.aspx) - [Firefox](https://www.mozilla.org/en-US/firefox/new/) - [Safari](https://www.apple.com/safari/) - [Opera](http://www.opera.com/) ## License (The MIT License) Copyright (c) 2014 Mark Liu < [markliu2013@gmail.com](mailto: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.
评论
    相关推荐
    • apache模块 合并多个js/css 更新64位版本
      apache模块mod_concatx 合并多个js/css,有效提高js/css加载速度,有源码和dll,和说明文档。 更新64位的Apache2.2和Apache2.4版本
    • apache模块 合并多个js/css 支持gzip
      apache模块mod_concatx 合并多个js/css,有效提高js/css加载速度,有源码和dll,和说明文档。 支持Apache2.2和Apache2.4 32位/64位版本,支持gzip
    • CSS教程
      CSS教程,对我的帮助很大,大家看看吧:)
    • apache-tomcat
      apache-tomcat适用版本,亲测可用,是比较稳定的版本了
    • apache模块mod_concatx 提高js/css加载速度
      apache模块mod_concatx 提高js/css加载速度,有源码和dll,和说明文档
    • 压缩 jscss
      此工具使用人数很多,作者也很卖力,所以恭喜下作者获得了广大同学的一致好评,所以我把他分享给更多的同学,希望方便大家的使用
    • css制作工具
      css制作工具css制作工具css制作工具css制作工具
    • css样式框架
      这是一些不错的css样式框架,一般比较通用。
    • CSS Menu Generator
      CSS Menu Generator 个人建站 实例借鉴
    • twitter css 框架
      twitter的后台css框架,相当漂亮和方便,极简设计。