GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ferluchin/javascript-rpg: RPG game I made using Next-level Javascript

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
image/README
image/README
 
 
public/images
public/images
 
 
.DS_Store
.DS_Store
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
Character.js
Character.js
 
 
README.md
README.md
 
 
data.js
data.js
 
 
index.css
index.css
 
 
index.html
index.html
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
utils.js
utils.js
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

🇺🇸 English | 🇪🇸 Español


English

JavaScript RPG Game

🎮 Play the Live Demo

1752083779188 A simple, turn-based, browser-based fantasy role-playing game (RPG) where you play as a wizard against a series of monsters.

🚀 Features

  • ⚔️ Turn-Based Combat: Engage in classic turn-based battles.
  • 🎲 Dice Roll Mechanics: Damage is determined by dice rolls, adding an element of chance.
  • 💚 Dynamic Health Bars: Visually track health for both the hero and monsters.
  • 👹 Multiple Monsters: Fight through a sequence of different monsters.
  • 🏆 Game Over Screen: Clear victory or defeat messages at the end of the game.
  • 🔧 Modern JavaScript: Built with ES6 Modules for organized and maintainable code.
  • ⚡ Fast Development Environment: Uses Vite for a quick and efficient workflow.

💻 Technologies Used

  • Frontend: HTML5, CSS3, JavaScript (ES6)
  • Build Tool: Vite

🎮 How to Play

  1. Open the game in your browser.
  2. Click the "Attack" button to initiate a combat turn.
  3. Both your wizard and the current monster will roll their dice.
  4. The damage dealt is subtracted from the opponent's health.
  5. Keep attacking until you defeat all the monsters or your wizard is vanquished!

🛠️ Local Installation and Execution

To run this project on your local machine:

  1. Clone the repository:

    git clone <YOUR_REPOSITORY_URL>
    cd javascript-rpg
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

    This will launch a local development server. Open the URL provided in your terminal (usually http://localhost:5173) to view the project.

📁 Project Structure

  • index.html: The main entry point and page structure.
  • index.css: Styles for all game components.
  • index.js: The main game logic, including the game loop, attack handling, and end conditions.
  • Character.js: A Character class that serves as a template for the hero and monsters.
  • data.js: Contains the data and stats for all characters.
  • utils.js: Utility functions for game mechanics, like dice rolls.
  • images/: Contains the character avatar images.

Español

Juego RPG en JavaScript

🎮 Jugar la Demo en Vivo

1752083779188 Un sencillo juego de rol (RPG) de fantasía, por turnos y basado en navegador, en el que juegas como un mago contra una serie de monstruos.

🚀 Características

  • ⚔️ Combate por Turnos: Participa en batallas clásicas por turnos.
  • 🎲 Mecánica de Dados: El daño se determina mediante tiradas de dados, añadiendo un elemento de azar.
  • 💚 Barras de Salud Dinámicas: Sigue visualmente la salud tanto del héroe como de los monstruos.
  • 👹 Múltiples Monstruos: Lucha a través de una secuencia de diferentes monstruos.
  • 🏆 Pantalla de Fin de Juego: Mensajes claros de victoria o derrota al final del juego.
  • 🔧 JavaScript Moderno: Construido con Módulos ES6 para un código organizado y mantenible.
  • ⚡ Entorno de Desarrollo Rápido: Utiliza Vite para un flujo de trabajo rápido y eficiente.

💻 Tecnologías Utilizadas

  • Frontend: HTML5, CSS3, JavaScript (ES6)
  • Herramienta de Compilación: Vite

🎮 Cómo Jugar

  1. Abre el juego en tu navegador.
  2. Haz clic en el botón "Attack" para iniciar un turno de combate.
  3. Tanto tu mago como el monstruo actual tirarán sus dados.
  4. El daño infligido se resta de la salud del oponente.
  5. ¡Sigue atacando hasta que derrotes a todos los monstruos o tu mago sea vencido!

🛠️ Instalación y Ejecución Local

Para ejecutar este proyecto en tu máquina local:

  1. Clona el repositorio:

    git clone <URL_DE_TU_REPOSITORIO>
    cd javascript-rpg
  2. Instala las dependencias:

    npm install
  3. Inicia el servidor de desarrollo:

    npm start

    Esto iniciará un servidor de desarrollo local. Abre la URL que se muestra en tu terminal (normalmente http://localhost:5173) para ver el proyecto.

📁 Estructura del Proyecto

  • index.html: El punto de entrada principal y la estructura de la página.
  • index.css: Estilos para todos los componentes del juego.
  • index.js: La lógica principal del juego, incluyendo el bucle del juego, el manejo de ataques y las condiciones de finalización.
  • Character.js: Una clase Character que sirve como plantilla para el héroe y los monstruos.
  • data.js: Contiene los datos y estadísticas de todos los personajes.
  • utils.js: Funciones de utilidad para la mecánica del juego, como las tiradas de dados.
  • images/: Contiene las imágenes de los avatares de los personajes.

About

RPG game I made using Next-level Javascript

javascript-rpg-delta.vercel.app

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.