Monpals - A Monster Battling RPG

Monpals.hex (77.8 KB)
Link to Github
Monpals is a rpg that is much like Pokemon and Monster Rancher.

There are 15 total monsters in the game that have one of three types: Nature, Mystic, Synth.

AUDIOUSE%20FRONT Audiouse
BEETHRONE%20FRONT Beethrone
BUBBLUE%20FRONT Bubblue
BUNNERINA%20FRONT Bunnerina
CHLOROSAUR%20FRONT Chlorosaur
KRIBBIT%20FRONT Kribbit
MICRUNT%20FRONT Micrunt
OKARD%20FRONT Okard
PECAW%20FRONT Pecaw
POLTERGRAB%20FRONT Poltergrab
SERPURNT%20FRONT Serpurnt
SLUGAMMA%20FRONT Slugamma
SPYMERA%20FRONT Spymera
SQUEAMASK%20FRONT Squeamask
XENAUNCER%20FRONT Xenaucer

Let me know what you think of the game and any other opinions you may have, or if you find any bugs or have any suggestions for reducing code size also let me know! By the way, the code isn’t the most clean looking since I’m still not very good at C++ and all the code is contained within one .ino file, so I apologies for that in advance. Thank you! :slight_smile:

10 Likes

It’s not the worst I’ve ever seen.
At least you’ve got a struct in there and the names are generally good so it’s readable (although the lack of indentation makes reading it a bit harder than it should be).

How many suggestions are you willing to take in one go?

I’ll start with a simple one:
Make your loop counters local variables instead of global variables.

CPUs have a kind of on-board fast memory called ‘registers’ that are faster than RAM,
and local variables can be assigned to registers when possible.
Global variables can’t be assigned to registers,
they have to live in ‘RAM’, which is (sometimes) slower and needs more CPU instructions to be accessed.


I think slugamma is my favourite in terms of design,
with Bubblue in second and Kribbit or Poltergrab third.
Extra points for using portmanteaus for naming.

(I’m guessing Kribbit is a portmanteau of ‘kero’ and ‘ribbit’?
Okard and Spymera are the only ones I’m having trouble deciphering.)

1 Like

10 posts were split to a new topic: Monpals - Bugfixing and improvements

Wow this is great, a pet battling game. People always ask if Arduboy has Pokemon on it but this is pretty similar! Now I can recommend people to check this game out.

5 Likes