Git Product home page Git Product logo

pokegame's Introduction

Title: PokeAssist
Description: PokeAssist is a Pokemon index where you can get basic information of your favorite pokemon. It includes a turn-based battling system where two pokemon battles until one wins. This is fun little game where you get a randomize pokemon to battle, and the best part is that all the moves are randomized!!! But you could pick your own pokemon!

MVP:

  1. used axios to grab data from the PokeAPI/
  2. PokeAPI to grab the Pokemon and the moveset for each Pokemon.
  3. Created user and Opponent Pokemon API calls while nesting another API call to get the moveset for that Pokemon
  4. Relationally compared the moveset API data with the Pokemon API data to get move specific to that Pokemon
  5. Created a search bar inorder to search for the Pokemon, they could be search by name or index number
  6. Created HTML code to neatly layout all the data for that Pokemon
  7. Stylize with CSS with grid.

Post-MVP

  1. With the data grabbed from the API, I created two Pokemon object: Opponent and User
  2. Each Pokemon Object contained an Object stats, and an array of moves
  3. The Opponents move is set on a random number generate from 0-3(index of the array), that will determine the
    attack and damage dealt to the user
  4. Created Buttons to allow the users to choose the move, information will be sent to a function caled Battle()
  5. Everytime a move is press, Battle() will be called and that specfic attack will be used to calculate the user damage
  6. The damage calculution is done with the officical pokemon calculation, but without the damage type multipliers
  7. The user will attack first, then the opponent. The speed attribute will have no effect, however the attack and
    defense attribute was calculted.
  8. The button will appear and disappear with logic order, for user experience
  9. Condition was set to when a pokemon reach 0 or low Hp, a winner is chosen
  10. The battle was framed with HTML and styled with CSS

API: https://pokeapi.co
The API used is the PokeAPI, it was called individual for Pokemon and moveset
The App is built with Javascript, CSS and HTML using axios to extract data from PokeAPI, for the Data organization, I used Grid. This app work with all mediaqueries, however, it is optimal with computers. This will be hosted on surge.

FrameWork: FrameWork is in the FrameWork folder in the git.

http://pokeassist.surge.sh/index.html

pokegame's People

Contributors

bliu104 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.