Code Monkey home page Code Monkey logo

survival-game-js's Introduction

survival-game-js

Mini survival game writed in javascript

Live app:

Survival Game

1.- Installation

git clone https://github.com/marceb1296/survival-game-js.git
  1. Docker:

     $ cd survival-game-js
    
     $ docker compose up
    

    Open the given url by docker

  2. Non Docker:

    Create env with python

     $ python3 -m venv myenv
     
     $ source myenv/bin/activate
    

    Install node with pip

     $ pip install nodeenv
     
     # or, install latest version of nodeenv
     
     $ pip install -e git+https://github.com/ekalinin/nodeenv.git#egg=nodeenv
    
     $ nodeenv --version
     0.6.5
     
     # add a node virtual environment to this existing myenv:
     
     $ nodeenv -p
    

    Install package & start project

     $ cd survival-game-js/frontend
    
     $ npm i --production=false
    
     $ npm start
    

    Open the given url by console

2. Game

  1. Tools

    • When you use a Tool, the life of itself will be reduced randomly
    • You will receive extra materials with the correct tool
  2. Materials

    • Trees have a 30% probability to show up.
    • Rocks have a 20% probability to show up
    • Material obtained by killing an animal is 50% probability
  3. Animals

    • Animals have a 20% probability to show up
    • if there's an animal and you go forward, you will receive extra damage
  4. Food

    • Raw meat has a 50% probability to make you seek
  5. Night

    • You will receive 50% more damage from animals

survival-game-js's People

Contributors

marceb1296 avatar dependabot[bot] avatar

Watchers

 avatar

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.