Share your repls and programming experiences

← Back to all posts
Rooftop Rodent
PythonHTML5

This is the game I entered in for Kajam! It’s simple and fun, and it took me a while to make. If there are any problems with it, please let me know. Hope you enjoy!

Voters
PythonHTML5
WILLIAMBAEWER
sojs
CyberHacker101
Yoplayer1py
ruiwenge2
Coder100
cookingthesauce
CoderGautamYT
Comments
hotnewtop
Yoplayer1py

Laggy

PythonHTML5

@Yoplayer1py It may be your computer or Wi-Fi. Mine was lagging also, but when i switched to a different computer, it was much smoother.

Yoplayer1py

@PythonHTML5 60 mbps n fast pc wht's wrong ?

PythonHTML5

@Yoplayer1py What kind of computer are you using? Chances are, though, it’s the game. However, I did everything I could to speed it up(like .convert() and killing the sprites if they aren’t on the screen)

Yoplayer1py

@PythonHTML5 wht kind of computer? Win 10 ? 4 cores 8gb ram x64 1 gpu?

PythonHTML5

@Yoplayer1py The game is slow for some people and fine for others. I can’t seem to find out the problem

Yoplayer1py

@PythonHTML5 ok sir...

PythonHTML5

@Yoplayer1py I think I’ve reduced the lag. Try it out if you want and let me know how it goes :)

Yoplayer1py

@PythonHTML5 K will do sire.

Yoplayer1py

K it's good n faster BUT controls lag... Like I press space at the very last moment but I fall.. Tested it on the first roof jump lagged. FIX IT!!! @PythonHTML5

PythonHTML5

@Yoplayer1py Look in the code and see which building is causing the problem. They’re labeled Building1 Building2 etc.

Yoplayer1py

@PythonHTML5 Buildings 7, 4, 1 and the staring building?

PythonHTML5

@Yoplayer1py ok thank you. I will take care of it shortly.

Yoplayer1py

@PythonHTML5 ok sire np

PythonHTML5

@Yoplayer1py I adjusted the code. If you have any more questions just let me know.

Yoplayer1py
Yoplayer1py

@Yoplayer1py still the same. Like I always last min jump. but as soon as I press space when I reach the edge of the building but I fall down then jump ? Tht's definitely a bug right?

PythonHTML5

@Yoplayer1py So you mean when you jump at the last second off of a building, you fall, and then you jump while you’re falling? Or is it just you jump at the last second, but it doesn’t work?

PythonHTML5

@Yoplayer1py Also, when you jump make sure that more than the area of just the squirrel’s tail is on the building. I made it to where you need to be mostly on the building to jump to make it more realistic and challenging. Part of the squirrel(Like the front or head) can be off the building, but more than the tail has to be on the building in order to jump.

Yoplayer1py

@PythonHTML5 Jump up while falling ? like I fall then jump up (skipped 1 building last time.)

Yoplayer1py

@PythonHTML5 more than the tail was there ? like the legs

PythonHTML5

@Yoplayer1py I can’t seem to replicate the issue. Before I published the game, I made sure that a jump from every building to another building was possible so it gave you the chance and didn’t make it impossible. I also made sure that it let you jump even when you’re on the very edge of the building. I think you are jumping too late. You can jump before that and still make it. Thats the whole meaning of the game, you can’t jump too late or too early. Every jump from one building to the next is perfectly fine for me

Yoplayer1py

@PythonHTML5 I like to last min jump , But I didn't jump too late almost 7 times?

PythonHTML5

@Yoplayer1py Every jump from one building to the next without having to jump too late is possible. The only questionable one is the jump from building 1 to another building 1, which is possible, it’s just harder than the others.

Yoplayer1py

@PythonHTML5 ok no late jumps..

Yoplayer1py

@Yoplayer1py also now I got 1 game with all the buildings joined and I didn't jump so I kinda glitched in the roof of building 6 n fell (walking frm building 5 to 6) I tried to take ss but the game restarted as soon as I clicked the alt key?

PythonHTML5

@Yoplayer1py I don’t know… It’s not doing it for me?

Minh-SonSon3

its fun

PythonHTML5

@Minh-SonSon3 Thank you for your feedback!

Coder100

Wow! This is so cool!

PythonHTML5

@Coder100 Thank you!

CyberHacker101

Awesome game, If I were you I'd speed it up a little bit to make it a tiny bit harder. @PythonHTML5

PythonHTML5

@CyberHacker101 I will add that as soon as possible. Thanks!

CyberHacker101
sojs

Ah yes. the good old pygame. Takes forever to boot.
love the following of replits general art theme, very nice.

PythonHTML5

@sojs thank you! :)

MrVoo

Art is nice, but it's way too slow

PythonHTML5

@MrVoo Yeah I tried to fix that. I did .convert() on everything, which helped a lot. It was slow for me, but I think it was just the computer I was using

DeclanC1

@MrVoo agree

CoderGautamYT

Nice!

PythonHTML5

@CoderGautamYT Thanks :)