Pokémon Higher or Lower Game in JavaScript (From Generator to Game)

I Turned My Old Pokémon Generator Into a Higher or Lower Game

I recently made a small Pokémon Higher or Lower game, and the idea for it actually came from something I built a long time ago.

A few days ago I realized that I can embed my GitHub projects directly into my Blogger site. That made me go back and look through some of my older projects, and one of them was my Pokémon random generator. That project is already a few years old, maybe two or three years, but it still works and it was a good base to build something new on top of it.

I wanted to make something simple and fun, not a big project, just something quick that I could finish in a short time. The idea that came to mind was a classic Higher or Lower game. It fits really well with Pokémon because every Pokémon has stats, so you can easily compare them.

So I built a small game where you get two Pokémon and you have to guess which one has the higher total stats. After each round you get a new comparison and just keep going.



The whole project was actually very quick. I think it took me around two hours or something like that. It was not about building something complex, it was more about getting back into web development again and using something I already had.

What I liked about this is that it connects directly to my Pokémon generator. Instead of starting from zero, I could reuse the idea and the data and turn it into something interactive.

If you are interested in the original generator, you can check it out here:

I also wrote a separate post about the Pokémon generator itself and how it works:

The source code for both projects is also available if you want to look into it:

While building this game, I also ran into a problem with how I handled API requests. At first, the game was making a lot of fetch requests, which is not great if more people start using it. I ended up changing the whole approach to make it more efficient.

I will write a separate post about that, because that part is more technical and worth explaining properly.

For now, this project was mainly about getting back into building things, reusing an old idea, and turning it into something simple and fun.

Comments

Popular posts from this blog

How to Burn a CD on Windows 11 (Step-by-Step Guide for Beginners)

I built a random Pokémon generator while learning JavaScript

How to Use APIs in a Web Game (Pokémon Example with JSON Optimization)