Do the Maze! (Check description)
Welcome to the Maze!
You might have guessed it, I got this idea from @CHRISTOPHERTIPP , go check out his post here
Go through each level, all the while looking for secrets in the walls! This currently has 16 levels, but I plan on it having 30+. You can also change the colors of the walls and of the goal/treasure if you would like!
Controls
You play as the square box, and your goal is to reach the treasure, which is the T!
The Player:
To move the player, you can use WASD and the arrows keys to move! Make your way through the many levels and collect the 'T'!
Each level has one secret.
Each of these secrets are in the walls of the maze, they are pretending to be 'X's but they are not......
Collect all of them for a little prize :D
There are many types of wall!
W: Walls that can be 'eaten'(Its fun), they are collapsing walls
X: These are normal walls, but some Xs might just be fake! In some levels(Dont worry it isnt that bad), there are some fake Xs!
In one level there is also a fake treasure :)
Fixes
The secret things were not working, I put them in a .env....
Now it should! Getting all of the secrets will tell you what to do!
If you wouldn't mind, could you tell me how you got player input without pausing the code? I have looked it up, but have been unable to find it anywhere.
@ZetaCommand actually the entire maze technically freezes until each button press....
But the way i did it in my game The Truth is by using the Threading module. Basically Threading allows you to have a function running while the main program runs, so you can put user input in a function and run that, and have it change a global variable.
Threading thing (my example): https://replit.com/@Muffinlavania/how-it-feels-to-use-threading#main.py
(I did it by having a variable saying whether or not a button has been pressed, and variable that says what key you pressed, and in the main program it waits for the variable that says when you pressed a key, then interprets the other variable.)
And if your really confused i can show you lol
oh yea and my game is https://replit.com/@Muffinlavania/The-Truth#main.py if you really wanted it
Thank you so [email protected]
@ZetaCommand anytimeeeee
@NoNameByProgram oh god when did that happen
@Muffinlavania level 6 happened 3 times actually
@NoNameByProgram whatttttt lol for me it works fine
@Muffinlavania well it fricked my gameplay up
@NoNameByProgram sorrry also i see what you mean
@NoNameByProgram Also are you sure about the level 6 thing? It worked for me no problem
@Muffinlavania on some specific parts
Cool! It's kinda laggy though due to clearing the screen. Try setting up curses for a smoother console. @CSharpIsGud made a cool tutorial on that
i see you have learned the true wisdom of key inputs
@NoNameByProgram dude i released this literally 50 seconds ago, but is it fun?
@NoNameByProgram and also yea, getkey for the win
@Muffinlavania secret one complete
@NoNameByProgram The secrets are Ys
@ch1cken ummmmm it works fine for me, i dont know what could have happened.. its supposed to say You got them all! Then a sentence on the secret stuff.. :(
@ch1cken ok, it should work now!