Share your repls and programming experiences

← Back to all posts
Pocket Monsters
HarperframeInc

Pocket Monsters

Yeah.... what is this?

I'm not the best at thinking up game ideas, but one day I was looking at code for a
chatroom, and then it struck me! I should make a game that uses a socket-like service
to create my Pokemon clone....THEN I'LL BE RICH!!!

Cough Good for you Cough Cough

Don't look at me like that. I would love to get technical but people will complain, so
I'll just get down to business.

I created a protocol that can let 2 clients send info from and back via a server. So the
game happens on the client and not the server. I know this causes issues but come on, it
is my first multiplayer game.

Does it have graphics?

Ehh.... Yes and No. I used curses - figured out not the way to go. I guess I was lazy
and curses was the only graphical library that was ACTUALLY good (Yeah right Tkinter, your
SO easy, huh?). Pyxel was in my mind but I didn't feel like drawing sprites (in the way
that pyxel wanted.), and pygame....it's literally just tkinter without widgets.

Don't worry! You still get sprites and animations, just not GOOD ones.

Please note, this is REPL.IT - the terminal isn't designed with moving pictures. Expect glitches.

Seems like it has save game functionality, is that true?

Again, yes and no. Even though it says that, it depends on how your using it.
Sometimes it'll save, sometimes it won't. If you want to guarntee your save, I suggest
forking.

With some messing around, I realized that the Repl DB URL is different for everybody.
So I created a system that automatically logs you in. Issue here is that your information
is lost if your viewing it somewhere that's not the editor. It's almost like a "meta" DB.

Plan to add a color or pyxel release?

This isn't actually a bad idea, but I'm not planning another one unless there is high
community support or help from others.

Can you tell me more about multiplayer functionality?

There are codes which you can keep private or post it on a public board. Don't expect
me to keep the public board up. The game was intended for private connections, so
there are going to be a bunch of hackers and bad people in general. Other than that, not
much.

Awesome, I'm gonna start playing.

Voters
ColinKirsch
Kookiez
LuckyOreos
IntellectualGuy
programmeruser
TsunamiOrSumth
JKE010
HarperframeInc
Comments
hotnewtop
KhShahid


How to join a game

HarperframeInc

@KhShahid The game doesn't exist. Play it in the editor. Find someone to play with in the board.

KhShahid

It’s online? @HarperframeInc

HarperframeInc

@KhShahid Yeah!

KhShahid
IntellectualGuy

@HarperframeInc

??? Why is this there?

IntellectualGuy

@HarperframeInc

Can't join someone else's game

HarperframeInc

@IntellectualGuy 1. Not a bug, why you keep scrolling? (just don't scroll, side effect.) 2. The person's game was closed, I need to fix that. (okay I fixed it now)

IntellectualGuy

@HarperframeInc Maybe you should do frontend HTML/CSS/Javascript

HarperframeInc

@IntellectualGuy How would that work?

LincolnTran

isn't pocket monsters literally the longer version of Pokémon?

HarperframeInc
programmeruser

Also, with the REPL_OWNER check, it actually returns the current user running the repl instead of the actual repl owner.

HarperframeInc

@programmeruser Yeah I know. I actually configured it to change it into debug mode when I'm running it.

JasonLiu19

Traceback (most recent call last):
File "main.py", line 4, in <module>
from better_profanity import profanity
ModuleNotFoundError: No module named 'better_profanity'
???

HarperframeInc

@JasonLiu19 huh let me fix that.

HarperframeInc

@JasonLiu19 Do CTRL-SHIFT-S and do poetry install

JasonLiu19

@HarperframeInc it worked, but i had to fork it

HarperframeInc

@JasonLiu19 Yeah this game will need you to fork it.