GithubHelp home page GithubHelp logo

xxatsushixx / html5-tower-defense Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bubbafat/html5-tower-defense

0.0 0.0 0.0 1.06 MB

HTML5 tower defense

Home Page: https://oldj.net/static/html5-tower-defense/td.html

License: MIT License

JavaScript 92.78% Python 3.33% CSS 0.63% HTML 3.25%

html5-tower-defense's Introduction

HTML5 Tower Defense Game

Run

Enter the src or build directory and open td.html with a browser (such as Chrome, IE9) to run the game.

Or check Online Demo.

Description

  1. This game is completely implemented using HTML5 / JavaScript / CSS, and does not use Flash, SilverLight and other technologies.
  2. This version does not use pictures, all the objects in the game are drawn using HTML5.
  3. Some parts of this version have been specially optimized for IE9 and can run normally under IE9.

Table of Contents

/build Compressed and publishable files
/screenshorts screenshot
/src source code
    /css style sheet
    /js JavaScripts source file
/tools gadgets, scripts
/README.md this file

Cheating method

To facilitate testing, this game has several cheating methods built in, just execute the following command in the command line:

  1. Add 1 million money: _TD.cheat="money+"; (press 'm' when is_debug is true)
  2. Double the difficulty: _TD.cheat="difficulty+";
  3. Difficulty is halved: _TD.cheat="difficulty-"; (press 'd' when is_debug is true)
  4. Health restoration: _TD.cheat="life+"; (press 'l' when is_debug is true)
  5. Reduce the health value to the lowest: _TD.cheat="life-";

Note that the above cheating methods are mainly designed for testing, please use them as appropriate during the normal game process, otherwise it may reduce the fun of the game.

Update history

  • 2021-01-04 (bubbafat) Added keyboard shortcuts (upgrade, sell, 1-9 map to the building build mode), updated missile radius (was not useful before)
  • 2020-12-29 (bubbafat) Add missile (area damage) and reverting lasers back to normal (random) targetting
  • 2020-11-20 (bubbafat) Add quicksand (slows monsters), some cleanup, and changed targeting so lasers target weakest-first
  • 2015-09-06 Support retina display.
  • 2011-01-01 Adjusted the parameters, and based on the suggestions of netizens, added checks when building new buildings, and it is forbidden to surround monsters with buildings (v0.1.14).
  • 2010-12-29 According to the suggestions of netizens, add the function of automatic life recovery (5 points of life recovery every 5 waves, 10 points of life recovery every 10 waves). Adjust the parameters to reduce the range of the laser gun and increase the power of the heavy machine gun (v0.1.12).
  • 2010-12-18 Add a new weapon "Laser Gun" (v0.1.8.0).
  • 2010-12-12 Suspend the development of the image resource version branch, continue to optimize and develop the circle version (v0.1.7.0).
  • 2010-11-28 The first image resource version (v0.2.1.3267).
  • 2010-11-23 released circle version (v0.1.6.2970).
  • 2010-11-14 The first version is released online.
  • 2010-11-11 Start writing this game.

Development Plan

  • Added a new weapon "Cannon". Features: When hitting a monster, it will explode, causing a surface attack.
  • Added level editor.
  • Add the function of saving progress.

html5-tower-defense's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.