Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rohittcodes/last-hope


https://github.com/rohittcodes/last-hope

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# The Last Hope - A Text based RPG Game

The Last Hope is a text based RPG game where you can choose your own path and make decisions that will affect the outcome of the game. You will be faced with challenges and obstacles that you must overcome in order to survive. Do you have what it takes to be the last hope?

## Why did we build this game?

We built this game to provide an interactive and engaging experience for players who enjoy RPG games, but with a unique twist. The Last Hope allows players to make choices that will impact the outcome of the game, making it a truly immersive experience. The story path is not linear and is generated randomly based on the player's choices, using LLM (Large Language Model) technology.

## Features

- Choose your own path and make decisions that will affect the outcome of the game
- Face challenges and obstacles that you must overcome to survive
- Engaging storylines that are generated randomly based on your choices
- Immersive gameplay experience that will keep you on the edge of your seat, learn from your mistakes and try again
- Multiple endings based on the choices you make throughout the game

## Technologies Used

- Next.js
- React.js
- Tailwind CSS
- Zustand
- Vercel
- Gemini API

## Installation

To play The Last Hope, you will need to have Node.js or any other JavaScript runtime installed on your machine. You can download Node.js from the official website: https://nodejs.org/

Once you have Node.js installed, you can clone this repository using the following command:

```bash
git clone https://github.com/rohittCodes/last-hope.git
```

After cloning the repository, navigate to the project directory and install the required dependencies by running the following command:

```bash
npm install
```

## Usage

Copy the `.env.example` file to `.env` and update the `NEXT_PUBLIC_GEMINI_API_KEY` with your Gemini API key. You can get your API key by signing up on the Gemini API website: https://aistudio.google.com/

```bash
NEXT_PUBLIC_GEMINI_API_KEY=your_api_key
```

To start the development server and play the game, run the following command:

```bash
npm run dev
```

This will start the game on your local server, and you can access it by opening the following URL in your browser:

```bash
http://localhost:3000
```

## Contributing

If you would like to contribute to The Last Hope, please fork the repository and submit a pull request with your changes. We welcome contributions from the community and appreciate any feedback or suggestions you may have related to this project.