Skip to content

Nerfer-Titi/role_playing_game_js_exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Role Playing Game

Welcome to the Role Playing Game (RPG) project! This project is part of the freeCodeCamp curriculum and is designed to help you practice JavaScript fundamentals by building an interactive game. This README will guide you through setting up the project, understanding its structure, and contributing to its development.

Table of Contents

Project Overview

This RPG project involves creating a simple role-playing game using JavaScript. The game will allow players to choose characters, battle enemies, gain experience, and progress through various levels. It is an excellent opportunity to reinforce your understanding of JavaScript concepts such as objects, arrays, functions, and control structures.

Features

  • Choose from multiple character classes (e.g., Warrior, Mage, Archer)
  • Battle enemies with turn-based combat
  • Gain experience points (XP) and level up
  • Equip weapons and armor to enhance abilities
  • Save and load game progress

Getting Started

Prerequisites

To run this project locally, you will need:

  • A modern web browser (e.g., Chrome, Firefox, Edge)
  • Basic knowledge of JavaScript, HTML, and CSS

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/role-playing-game.git
  2. Navigate to the project directory:
    cd role-playing-game
  3. Open index.html in your web browser to start the game.

Project Structure

role-playing-game/
├── index.html
├── style.css
├── script.js
└── README.md
  • index.html: The main HTML file that contains the game layout.
  • style.css: The CSS file for styling the game.
  • script.js: The JavaScript file containing the game logic.
  • README.md: This README file.

Usage

Once you have the game running in your web browser, you can start playing by selecting a character class and beginning your adventure. Follow the on-screen instructions to battle enemies, collect items, and level up your character.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, please follow these steps:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-name
  3. Make your changes and commit them:
    git commit -m "Add new feature"
  4. Push to the branch:
    git push origin feature-name
  5. Open a pull request on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for more information.


Thank you for checking out this RPG project! We hope you enjoy building and playing the game. Happy coding!

About

MIT license exercise: Role playing game (HTML/CSS/JS)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published