Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
249

python: I made a game I guess

SeamusDonahue
SeamusDonahue

I'm not really sure what to call this.
this is a game where you push boxes to goals, but with a sorta pseudo story.

wasd to move. walk into boxes to push them. r to reset

the goals are Os and have no collision
the boxes are blue # and only have a collision if you can't push them.

have fun, and have a nice day.

ps: expand the console size so it works properly

this really blew up! thank you all!
ps: to those saying "it sucks!" or "it's broke!" please either explain or give constructive feedback

I'm getting reports of IndexError's, you get out of bounds intentionally but you are going farther than intended. please only go as far as you need to.

2 years ago
You are viewing a single comment. View All
2
Coder2195
Coder2195

I glitched out the game, and went beyond the borders oof
Traceback (most recent call last):
File "main.py", line 90, in
p.update()
File "main.py", line 55, in update
if i.y == self.y + vmove and level[self.y+(vmove*2)][self.x] != "#" and self.x == i.x:
IndexError: list index out of range

2 years ago
1
ProCatGuy
ProCatGuy

@Coder2195Text
Please look at other comments more. You went out of the map too far.

2 years ago
2
Coder2195
Coder2195

@AndrewMarkarian
You should make a try and catch and then when the player goes out, you tp them back

2 years ago
1
ProCatGuy
ProCatGuy

@SeamusDonahue
I think someone has a suggestion for you.

2 years ago