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 🤔
the basic wasd controls:
░: 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!
Every time you open a chest, it can either take away 8 points or give you 10 points.
🥖 🥖 🥖 🥖 🥖
A python game that controls a player
I made one a while ago, one suggestion i got was instead of
(it doesnt flash as much)
btw this is my old one if you want to take a few things from it
@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")
@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
.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.
@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.
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.