GithubHelp home page GithubHelp logo

3ahat0p / strangetextrpg Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 2.0 1.39 MB

This is just try to made a Text-based RPG with strange scenario =)

Home Page: https://t.me/StrangeTextRPGBot

JavaScript 0.45% TypeScript 98.41% Dockerfile 0.18% Shell 0.05% HTML 0.92%
rpg text-game text-rpg

strangetextrpg's Introduction

StrangeTextRPG


⚠️ Внимание! ⚠️

Мы ищем людей, кому нравится этот проект и хотели бы его развивать.

Если тебе это интересно пиши мне в телеграм @ikostyakov или на почту [email protected]

Strange Text RPG Discord

Strange Text RPG Discord Invite Link


Prod

Telegram Bot @StrangeTextRPGBot


Development

For start

  1. copy .env.template.json to .env.json

  2. fill up .env.json

  3. run docker-compose up -d to start containers in detach mode

  4. run docker exec -i strpg-main npm run db:seed:up to fill database by seed

  5. run docker attach strpg-main to attach current terminal to node container (In case you want use NODE_UI)

  6. run docker logs strpg-main -f --tail=0 for get logs from the server

  7. ...

  8. profit


Production

For deploy on prod we need:

On Local Machine

VERSION_TAG=3.0.0
docker build -t strpg-main-prod -f Dockerfile.prod .
docker image tag strpg-main-prod:latest ik0s/strange-text-rpg:$VERSION_TAG
docker login
docker push ik0s/strange-text-rpg:$VERSION_TAG
docker logout

On Production VPS

docker login
docker pull ik0s/strange-text-rpg:latest
docker logout
docker-compose -f docker-compose.prod.yml down
docker-compose -f docker-compose.prod.yml up -d

Helpful links

Name (actors, armor, etc.) generators Bestiary


Support

Игра бесплатна. Проект развивается на энтузиазме создателей. Если тебе нравится, что мы делаем, ты можешь поддержать проект.

Задонатить разово

Become a Patron!

strangetextrpg's People

Contributors

3ahat0p avatar a-azashikov avatar alakril avatar dependabot[bot] avatar e-sulimenko avatar i-kostyakov avatar k-efimov avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

strangetextrpg's Issues

Implement space in the battle

For now, battle engine work only with short distance weapon and attacks.

We need ideas how we can do ranged attacks and weapon

Rules

  1. Название и описание задач и предложений на английском языке
  2. Обсуждение в комментариях можно на русском
  3. Обсуждение в комментариях приветствуется, особенно на задачах с лейблом "idea", "help wanted"

Create list botanic list

В мире растут растения.
В планах добавить возможность подбирать траву.
но мы не знаем что это за растения, пока не прочитаем или нам не расскажут.
а-ля "коричневая колючка" - "шиполист"

Split all actions to two types

Permanent (FAQ, Inventary, etc) and situatable/local (move, attack, ).
For Telegram we can place permanent actions on the keyboard.
But local actions as the inline buttons.

Implement attributes system

  • Strength (Сила) - Influenced to attack damage (each weapon type should have a formula), max bag size (weight). It's required for some types weapon and armor.

  • Constitution (Телосложение) - Influenced max Hit Points, max bag size (weight). It's required for some types weapon and armor.

  • Dexterity (Ловкость) - Influenced to attack damage and crit chance (each weapon type should have a formula), dodge chance. It's required for some types weapon and armor.

  • Intelligence (Интеллект) - Influenced to dialogs, some perks/traits (TBD)

  • Charisma (Харизма) - Influenced to prices at merchants, NPC's attitude.

  • Luck (Удача) - Influenced to chance trigger some events (for example to find gold or to be attacked by enemies)

Create our template engine

For work with some number different UI we need to implement custom template language and use this templates in interactions.
In the UIs we get template and render it how we need

Add narrotive in the enemies drop

From GiantRat couldn't drop gold.
When we have knife we could cut tail, cut paws, pull out a tooth.
In the other case we could only pull out a tooth.

From the Skeleton we could get skull and loot which had this skeleton (sword, shield, axe) but with very bad quality (I think we could work on quality later)

Implement common NPC class

We need common fabric for creating NPC.
NPC could be:

  • Simple character - Have 2-5 some phrases which it saying when Player interact with him
  • Merchant - Have 2-5 phrases for dialog. Have some goods for selling and it could buy some goods from Player (not everything)

Add movement speed for going through mapspot

Every spot could have different surface. Some surface easy to way, but some not.
We can hold user on the spot some time (1s, 5s, 10s) this is related to difficult / comfy terrain

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.