Giter Club home page Giter Club logo

defend_the_castle's Introduction

alt text

  • Defend the Castle is a fast-paced arcade-style video game, with a twist on the classic tower defense genre.
  • An evil wizard has opened portals that are spawning malicious creatures on your King's island. Defend the castle from attacking bats at all costs!
  • The engine and game are written from scratch in JavaScript, and it runs right in your browser.

In Game Screenshot:

alt text

How To Play

  • movement: WASD or Arrow Keys (up, down, left, right)
  • to attack: run sword in to a bat!
  • portals will spawn more bats
  • bats will charge the castle
  • red arrows indicate offscreen enemies approaching
  • game over when Castle Strength depletes

alt text

Running it locally

To get it up and running locally, you'll need to have a local http-server. I use http-server

Once you have http-server installed then:

  • Clone this repo.

  • From the root directory of it, run: $ http-server In your browser, open: http://localhost:8080 and http-server will automatically load the index.html from that directory.

  • Leave http-server running, and whenever you change the code, you can do a hard refresh to run the newly saved code.

ETC

  • Feel free to download this code, play with it, and add to the game, etc!

  • res/textures/tiles.png and snow_expansion.png have a ton of extra assets to crop and insert in to the game!

  • If the leaderboards ever gets fubar, use res/leaderboard/leaderboard.json as a template. (and/or submit an issue so that I know!)

defend_the_castle's People

Contributors

mccordgh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.