Giter Site home page Giter Site logo

dota-data's Introduction

Dota Data

Distilling scattered walkthroughs around programatically obtaining information related to the video game Dota 2 using JavaScript.

This focuses on obtaining hero information including their portrait images, but the methods and resources used contain much more information. The source code is simple and can serve as a starting point for other operations.

Steps

  • Clone this repository.
  • With Volta installed, run node src/index.js at the root of the directory.

Files will be saved to the ./data/ directory.

Notes

  • Most data was intentionally stripped from the data file. If you want the raw data, remove the .map() method call from getHeroData.js
  • Attack range has been converted from type (Melee / Ranged) and distance (a number) to the following:
    • "Melee" - Unchanged. Note one oddity: there are a couple of Ranged heroes with shorter range than the longest-range Melee hero, Monkey King.
    • "Short" - Ranged attacks w/ range 400 or less.
    • "Medium" - Ranged attacks w/ range 401 to 600.
    • "Long" - Ranged attacks w/ range over 600.

Missing Vertical Portraits

The official Dota 2 CDN used to provide square-ish portrait images for all heroes. This is no longer the case for the two most recent heroes: Dawnbringer and Marci. I prefer this old portrait style for my purposes, so I created my own Dawnbringer and Marci portraits in this same style. You can find them at the repository root.

Acknowledgements

dota-data's People

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.