Code Monkey home page Code Monkey logo

monster_killer's Introduction

Monster Killer

This project is a simple game called Monster Killer implemented with HTML, CSS, and JavaScript. The game allows the player to fight against a monster by attacking, using strong attacks, and healing. image

Files

  • index.html: The main HTML file that contains the structure and layout of the game interface.
  • assets/styles/app.css: The CSS file that defines the styles for the game elements.
  • assets/scripts/vendor.js: The JavaScript file that includes external libraries or dependencies (not provided).
  • assets/scripts/app.js: The main JavaScript file that implements the game logic.

Usage

To play the game, open the index.html file in a web browser that supports JavaScript. The game interface will be displayed, showing the monster's health bar, the player's health bar, and control buttons.

Controls

  • ATTACK: Clicking this button performs a regular attack on the monster.
  • STRONG ATTACK: Clicking this button performs a stronger attack on the monster.
  • HEAL: Clicking this button allows the player to heal themselves.
  • SHOW LOG: Clicking this button prints the battle log to the console.

Gameplay

  • The player and the monster start with a maximum health level of 100.
  • Each attack or heal action will result in a change in the respective health bars.
  • The game will end when either the player or the monster reaches 0 health.
  • The battle log records the events of the game, including attacks, heals, and the game outcome.

JavaScript Files

app.js

The app.js file contains the main game logic implemented with JavaScript. It includes functions for attacking, healing, calculating damage, and handling game events. It also defines constants and variables to track the game state.

vendor.js

The vendor.js file is not provided and should include any external libraries or dependencies required by the game. If you have any dependencies, make sure to include them in this file.

CSS File

app.css

The app.css file contains the styles for the game elements, including the health bars, buttons, and overall layout. You can modify this file to customize the game's appearance according to your preferences.

Acknowledgments

The Monster Killer game is a simple project created for learning purposes and based on a tutorial or personal project. If you used any external resources or followed a tutorial, provide the appropriate credits and acknowledgments here.

License

This project is licensed under the MIT License. You can find the full text of the license in the LICENSE.md file.

monster_killer's People

Contributors

eleoxda avatar

Stargazers

 avatar  avatar Roman avatar Lena Shukur  avatar Looper the Devel∞per 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.