Giter Club home page Giter Club logo

woodlandwarriors's Introduction

ABOUT THE GAME

This is a basic fighting game I developed in vanilla JavaScript, using no libraries, just HTML canvas.
Player 1: Can only attack towards right. Use a,w,d for movement and Shift to attack.
Player 2: Can only attack towards left. Use up,left,right arrow keys for movement and Space to attack.
Health potion bottles spawn randomly, jump around to grab them before your opponent does, or before they disappear!
Whoever stays alive wins, or if 60 seconds elapse, whoever has more health at the end of timer wins.

Note: Many important controls, such as gravity, speed, max health, attack power, etc, can be controlled using the consts which are defined at the beginning of script.js.

I made this game just to practice and learn JavaScript! Contributions are very welcome!

CREDITS

Audio:

  • Background audio: Lost Woods Lofi Remix by Mikel (GameChops)
  • Get Item, Game Over (death), and Get Hit sounds: The Legend Of Zelda (Nintedo)
  • Sword slash and arrow fire sounds: Zedge

Sprites:

  • Background forest sprite: edermunizz via itch.io
  • Player sprites: LuizMelo via itch.io
  • Health potion bottle sprite: LornENT via itch.io

Animation:

  • I leaned quite a lot on ChrisCourses' YouTube for animating the sprites, health bar feature, and more.

woodlandwarriors's People

Contributors

haadiyeah 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.