Skip to content

nathan-barrett/PokemonJS

Repository files navigation

PokemonJS

January, 2018. Epicodus Javascript Team Week.

An Angular JS Pokemon battle game.

Gameplay

screen shot of start screen

screen shot of map screen

screen shot of battle screen

Authors

Setup Instructions

Clone from GitHub

$ git clone https://github.com/nathan-barrett/PokemonJS.git

From project directory. Install NPM packages.

$ npm install

Launch local server.

$ ng serve --o

Install Allow-Control-Allow-Origin Chrome Plugin

Built with

  • This project was generated with Angular CLI version 1.6.6.

  • Utilizes the RESTful API, PokeAPI

Random Encounter Logic

From (Wikipedia)[]:

  1. Set X to a random integer between 64 and 255.
  2. For each step in plains, decrement X by 4. For each step in forest, swamp, or desert, decrement X by 8.
  3. When X < 0, a fight ensues. Go to step 1.

This logic will require counting the number of squares the player character moves and decrementing a variable in the game object with each one.

About

Pokemon mini game using Angular JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •