An Angular JS Pokemon battle game.
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
-
This project was generated with Angular CLI version 1.6.6.
-
Utilizes the RESTful API, PokeAPI
From (Wikipedia)[]:
- Set X to a random integer between 64 and 255.
- For each step in plains, decrement X by 4. For each step in forest, swamp, or desert, decrement X by 8.
- 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.