An open API service indexing awesome lists of open source software.

https://github.com/pianopia/onefilerpg


https://github.com/pianopia/onefilerpg

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# A Simple RPG

This is a simple 3D RPG created with HTML and Three.js.

## Features

* **3D First-Person Perspective:** Explore a 3D world.
* **Combat System:** Attack enemies by clicking.
* **Leveling System:** Gain experience points (XP) by defeating enemies and level up. Your stats increase upon leveling up.
* **Quest System:** Receive quests from NPCs. Track your progress in the quest log.
* **Basic Exploration:** Move around, jump, and interact with objects and characters.
* **Enemy AI:** Enemies will pursue the player and attack when in range.
* **Player Health:** Take damage from enemies. If HP reaches zero, it's game over.
* **Enemy Respawn:** Defeated enemies will respawn after a short period, ensuring continuous action.

## How to Play

1. Open the `index.html` file in your web browser.
2. Click on the screen to start the game and lock the mouse pointer.

### Controls

* **W, A, S, D:** Move
* **Space:** Jump
* **Mouse:** Look around
* **Click:** Attack
* **E:** Interact with NPCs
* **ESC:** Reset the game (reloads the page)

## Game Objective

* Talk to the NPC to get a quest to defeat 10 slimes.
* Explore the forest, find and defeat the slimes.
* Report back to the NPC after completing the quest to receive a reward.
* Defeat enemies to level up and become stronger.
* Survive enemy attacks and manage your health.