Share your repls and programming experiences

← Back to all posts
Labyrinth
h
RhinoRunner (646)

The evil glitch orbs have taken over the terminal!

It is your job to get to the finish, because if you don't, you die 🤔

Controls

the basic wasd controls:

w: up
s: down
a: left
d: right.

Key

: A wall. You can run into it, it just wont do anything.
: A glitch orb. If you run into it, you die :(
: A door. Use this to get to the next area.
: This is you.
There are 6 areas, each one harder than the last

How to spot glitch orbs

You can only see a glitch orb if you are in the same row/column as it.

I am open to suggestions, and please tell me if something is wrong/broken!

Points

Every time you open a chest, it can either take away 8 points or give you 10 points.

🥖 🥖 🥖 🥖 🥖

Comments
hotnewtop
Whippingdot (431)

Don't you love it when this happens?

Also AWESOME LOVE IT THIS IS GODLY JUST BECAUSE I CAN CHEAT HOOOOOORAY

RhinoRunner (646)

@Whippingdot how do you cheat? tell me so i can make sure you dont

EnderMarkoth (7)

@Whippingdot cheat? jhowwww !! TEACH ME YOUR WAYS, MASTER!!!

Whippingdot (431)

I, of course, look in the file and see where the x's are @EnderMarkoth

Whippingdot (431)

i mean the ='s, the glitches basically @RhinoRunner

Bookie0 (5676)

🥖🥖🥖🥖 🥖🥖 🥖🥖🥖 🥖 🥖🥖🥖🥖 🥖🥖 🥖🥖🥖 🥖🥖🥖 🥖🥖🥖🥖 🥖🥖🥖🥖🥖🥖 🥖 🥖🥖 🥖🥖🥖🥖🥖 🥖🥖🥖🥖 🥖🥖 🥖🥖🥖 🥖🥖 🥖🥖 🥖🥖🥖🥖🥖🥖🥖 🥖🥖🥖 🥖.

(Pretty cool!)

RhinoRunner (646)

@Bookie0

🥖🥨🥯🥐🥐🥯🍞🥨🥨🥨🍞🥯🥯🥐🍞🥨🥯🥐🥐🥖🥯

Whippingdot (431)

glitch orb is the definition of @JBloves27 @RhinoRunner

RhinoRunner (646)

@JBloves27 hahahahahahahaha lmao XD XP lol bruh wow
saying any of these contributes nothing no the conversation

Whippingdot (431)

WHY ARE ALL MY FRIEND'S STATUS' SAYING THEY ARE INACTIVE ON REPL TALK??? @TsunamiOrSumth and @JBloves27. Even one of them is inactive on repl talk @RayhanADev.

TheC0derGirl (108)

nothing came up or happened for me

;-;

RhinoRunner (646)

@Rainbowstuff what do you mean. Did the game not work?

TheC0derGirl (108)

@RhinoRunner yeah, nothing came up except

Python 3.8.2 (default, Feb 26 2020, 02:56:10)

RhinoRunner (646)

@Rainbowstuff oh. weird bug, refresh and try again?

TheC0derGirl (108)

i
k n o w
t o o
w e l l

OldWizard209 (993)

Umm, you have to run the repl... @Rainbowstuff

LegendaryWolf (432)

Try doing this in pygame!

RhinoRunner (646)

@LegendaryAlpha That might be hard to do, but I can try

LegendaryWolf (432)

U can easily do it in python turtle, rather than pygame, coz its ezier

RhinoRunner (646)

@LegendaryAlpha The hard part would be creating the grid for the map, which I have no clue how to do.

LegendaryWolf (432)

nope, @RhinoRunner, basic collision checking, and movement knowledge is all needed! no grid needed for a good game, GG!

LegendaryWolf (432)

I can share a link for movement if u want.

LegendaryWolf (432)

I'm that good at collision checking, so I don't think I'll be able to send a link for that

RhinoRunner (646)

@LegendaryAlpha I know how to do movement, but what I don't know how to do is make a grid for the map, so I can use my other maps for it.

LegendaryWolf (432)

I'll invite you to a repl, we can discuss there, @RhinoRunner

Muffinlavania (1444)

Yayyyyyyy
A python game that controls a player
Very epic
I made one a while ago, one suggestion i got was instead of os.system('clear'), use print("\033[H",end="")
(it doesnt flash as much)
btw this is my old one if you want to take a few things from it
https://repl.it/@Muffinlavania/Maze-boi-1#main.py

RhinoRunner (646)

@Muffinlavania I will implement the print("\033[H",end="") in my newer version and see if it works!

Also, I like the game :D

RowanFromBJC (34)

@Muffinlavania Cool, only you still have to use os.system('clear') when you're not just moving the player (so when you enter a door and it asks you if you want to open the chest, you have to use os.system('clear'))

Muffinlavania (1444)

@RowanFromBJC @RhinoRunner yea, the print() version is basically os.system('clear'), but it updates the screen. So if you print out something completely new, you should os.system('clear') before it

Muffinlavania (1444)

@RhinoRunner if you need help on anything (or just want some tips), i could help you if you want

RhinoRunner (646)

@Muffinlavania Im open for suggestions on the game, such as adding new features or fixing a glitch or something

Muffinlavania (1444)

@RhinoRunner well theres not much, and my version is kinda stupid and not as complex, so maybe later today ill take a look and just look at some of the small things

RhinoRunner (646)

@Muffinlavania about your haha maze go brrrrrrrr, I like the fact that you can pick up items, but it always says my inventory be full...
Also, you should make the player on one terminal line rather than 2 because it looks weird when they pick things up

Muffinlavania (1444)

@RhinoRunner also you can detect arrow keys, but i use the getkey module so idk
The getkey module works pretty much the same:

from getkey import getkey, keys
#getkey to get your keypress, keys for arrow keys
print("Press key plz")
z=getkey()
if z=='w' or z==keys.UP:#if you press w or up arrow
   print('UppPPPpppPppPPp')
elif z=='s' or z==keys.DOWN:
   print("dOWNDdnwoDNODNwowD")
elif z=='a' or z==keys.LEFT:
   print("l is for left")
elif z=='d' or z==keys.RIGHT:
   print("REEEEEEEEIGHT")
Muffinlavania (1444)

@RhinoRunner oh lol im still working on that one, its almost done
Also the box character is actually intentional, its so that you dont look as small and i just like a box idk
Theres probably a billion bugs right now but im almost done with it

RhinoRunner (646)

@Muffinlavania the colors are vivid i like it

noway15 (30)

@RhinoRunner why would you want to fix a glitch? this game is pretty much about glitches so the more the merrier amiright?

peternielsen112 (29)

@TheC0derGirl @RhinoRunner lOl

Pog

Pog

Pog

Pog

Pog
Pog
Everyone dies, if you tell the story long enough.
RhinoRunner (646)

@peternielsen112

pog

pog

pog

pog

pog

pog
pog

pog

pog

pog
~pog~

peternielsen112 (29)

@RhinoRunner Let's just say. Very very pog. Looking forward to the sequel!

Everyone dies, if you tell the story long enough.
OldWizard209 (993)

@RhinoRunner This is good and all, But there are literally 200 lines, that are only creating the maps. You should probably put them into a .txt or.json file and open it like:

with open("map.txt", "r") as map:
    map = [line.strip() for line in map.readlines()]

This is going to return a list containing all the maps. You can later iterate over them and put them in the class. This will make your code much cleaner imo.

RhinoRunner (646)

@OldWizard209 Ill do that for the sequel, thanks!

RhinoRunner (646)

@OldWizard209 There's a problem. When I try it, it gives me this:

Traceback (most recent call last):
  File "main.py", line 191, in <module>
    Map.start_map1('1')
  File "main.py", line 58, in start_map1
    current.append(i.copy())
AttributeError: 'str' object has no attribute 'copy'

I think it's because the lists I use are embedded lists, and this just gets a normal one.

RhinoRunner (646)

@OldWizard209 I added you to the sequel repl, wanna help out?

nevermind, i figured it out :D

OldWizard209 (993)

Nice, I really like labyrinth2 mainly because it has colors and the glitch orbs are more visible. Also, the map updates much quicker.. @RhinoRunner

RhinoRunner (646)

@OldWizard209 are the clams good? and any suggestions?

OldWizard209 (993)

Yeah everything is good but IDK y sometimes a wall spawns out of no where, maybe a feature or a bug. ?? What are the calsm? Other than that, the money collection is also great. @RhinoRunner

RhinoRunner (646)

@OldWizard209 These will all be explained in the post... mega suspense moment

OldWizard209 (993)

Do you want to collaborate on a UNO Game that I am making? @RhinoRunner

RhinoRunner (646)

@OldWizard209 came back after not coding for the weekend...

RhinoRunner (646)

@OldWizard209 today I woke up and saw it was at 15

EllieBrown123 (4)

OMG OMG OMG THIS IS FREAKING AMAZING

TheC0derGirl (108)

I can move but it glitches when i move so the maze be like: /\/\/\/\/

RhinoRunner (646)

@TheC0derGirl the glitches don't move, they only disappear if you aren't in the same row/column

TheC0derGirl (108)

@RhinoRunner no i mean a REAL glitch when something on a screen glitches you know?

bchian316 (2)

Maybe you could try:
import cursor
cursor.hide()
to hide the cursor

codealt1 (3)

this is too easy - I won on the third attempt

RhinoRunner (646)

@codealt1 ok, well the sequel will be harder, so look out for that!

BD103 (112)

Nice! You should look into the Blessings Wrapper which allows you to move the cursor to coordinates on the screen. You can use this to only move what is necessary, and prevent the weird pause between screen clears.

RhinoRunner (646)

@BD103 good idea, but im not too familiar with it. Want to help?

TheC0derGirl (108)

now it comes up but it doesn't let me move

WHY DOES IT HATE MEEEE

s a d ;-;

Nanowrimoijk (55)

really fun! my final score was 14

Nanowrimoijk (55)

@RhinoRunner yep, it was a pain though lol

RhinoRunner (646)

@Nanowrimoijk the new game's last levels will be harder...

xXToluwaXx (3)

I bet this is would be better if the glitch orbs dont run into you