Share your repls and programming experiences

← Back to all posts
45
👮Cops And Robbers💰

Welcome to Cops And Robbers!

This game was created as a last minute project for Game Jam, as the creator heard about it last minute. He is a Freshman, and has been using REPL since the 7th grade.

What is it?

It is a simplistic game in which you are maneuvering a single robber through a building, collecting coins, while dodging cops, lasers, and spikes.

How do I use it?

Simple. Use WASD or the arrow keys to maneuver the robber, P to pause and R to restart. (Restarting won't affect your score) Also, you can use Esc to exit, as well as the X on the window. Remember that before you can play, you have to sign up or login with a username or code to save your status. (The game window won't open until you do.)

What's the story?

The Robber is a man named Eric Lee who was fired from his job for speaking against his boss, who was illegally ripping off customers. Meanwhile, his daughter is in a critical condition at the hospital, and he cannot afford to buy medicine. So, against his conscience, he decides to rob his old company.

Is it done?

No! Again, this was last minute, so the developer had no time to add important things, like a story. Hopefully in the future, he will finish and submit it, maybe for a 2nd Game Jam.

Best way to play?

Using a normal Python 3 interpreter and Pygame. While the REPL online Pygame system is very good, this game has a slow frame rate on the browser. Also, on REPL, don't use the .run link. Pygame doesn't work there. Instead, drag the borders to make it bigger.

Where to play?

Right Here!

Commentshotnewtop
6

Best game yet! 10/10

3

you should vote for three ways btw....

3

This is pretty good! Nice job! It is kinda addictive.

3

Cool concept and game. I also like that you used pygame cause our small game called VOL 2D was also made in pygame.

3

This game is very cool, the ai mechanics are good and the levels are intriguing!👌👍😄🤩

3

Epic game! Was laggy on browser but following instructions went to desktop and worked fine.

3

Awesome game,
Started playing, and tried for an hour to beat the 15th level.

2

pretty trash -1/10 just kidding really good game i would come back

3

@Chalo1981 Wow. That was scary. But thanks for giving a good comment.

2

Great game, challenging and fun to play!

2

Great Game! Can you make it so that You can create levels? That would be great!

3

@BenicioEnriquez I suppose you already can, by editing maps.json.

1

@BenicioEnriquez, I’m glad you like it. Also, that was the goal. However, again, I didn’t have enough time to create a well-done level editor. I future updates, I will put in the level editor.

1
[deleted]

supper fun

1

why are you talking in third person in this post

1

this is a realy cool game. can you just make it not lag. it gets really annoying

1

11/10. Very good from a professional point of view. I would be quite happy to make this into a real app. It is, unfortunately, a tad slow.

colorlist = [(255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 255, 0), (255, 0, 255), (0, 255, 255), (100, 100, 0), (0, 100, 100), (100, 100, 0)]
for y in range(len(list)):
    for x in range(len(list[y])):
        if list[y][x] == " " or list[y][x] == "":
            pass
        elif list[y][x] == "x":
            dict["Cops"].append({"Rect": pygame.Rect(x*50+5,y*50+5,40,40).inflate(-5, -5)})
        elif list[y][x] == "*":
            dict["Robbers"].append({"Rect": pygame.Rect(x*50+5,y*50+5,40,40).inflate(-5, -5)})
        elif list[y][x] == "o":
            dict["Exit"].append({"Rect": pygame.Rect(x*50,y*50,50,50), "Active": False})
        elif list[y][x] == "#":

that could be improved.

1

Thanks for the feedback! I will try to shorten and improve that section, as well as improve the speed.

1

@Benny_3 Good idea and your very welcome.

1

I think it might be a bit too ​hard.

1

@vlad94568 Sorry. I may make it easier in the future, but it was supposed to be hard, so..

1

Would definitely play again. Finished the game and I felt satisfied.

0

Sad lagging on the server. But still good content.