Adventure Game!
have you ever wanted to kill a dragon, well you can now... kind of... I guess
bt good game
Pee Pee Poo Poo Check ?
i died
good
I'm making a game similar, can you help me on my game? I'm new at Python.
im a co creator of this he asked me to ask you to invite him to your game as he can not talk :)@qwertyuiop1111
@brendanryba1 Thank you kind sir. Tell thanks to the main creator.
@brendanryba1 I added him btw.
and if you need extra set of hands im here :)@qwertyuiop1111
thanks mate. @brendanryba1
@brendanryba1
Please don't forget to tell Jackson my discord. Its qwertyuiop#8145, and you can friend me too :)
i don't know if he has discord but i could ask and [email protected]
@brendanryba1
I love this. It's great and I need to use some of your code. I'm a noob and I have a massive project from my learning institute which if I don't do, there will be no more proof that I've been in any school for the past 9 years. So I need to take some of your code and reshape to mine. By that, I mean I'm going to leave your defs and your clear()s but change virtually everything else. I'd like to know if that's okay. He'll get his due credit. Is that okay?
you have a green :) @TheRealJarTroll
@brendanryba1 Thanks a lot! I can't describe how relieved I feel seeing that.
@brendanryba1 Wanna code?
Terminal games are a waste of time. Try using pygame
@PyCoder01 No need to be such a downer >:(
@PyCoder01 yea pycoder
@HYPR if you wanna clear the terminal, import replit as repl
then use repl.clear()
@2plus2is4hoi there are also some vanilla ways of doing that, such as making a function
from os import system, name
# import sleep to show output for some time period
from time import sleep
# define our clear function
def clear():
# for windows
if name == 'nt':
_ = system('cls')
# for mac and linux(here, os.name is 'posix')
else:
_ = system('clear')
# print out some text
print('hello geeks\n'*10)
# sleep for 2 seconds after printing output
sleep(2)
# now call function we defined above
clear()
@HYPR I'm not a downer. I'm suggesting something LOL.
@SqueezyS The most basic way to clear is-
from os import system
#Command to clear screen
system('clear')
Right, the one i showed you was meant to be for both windows and other platforms
@SqueezyS replit runs on linux
yes, i know that. I was saying that the example was for all operating systems that use a command prompt or a form of bash
@SqueezyS like windows, linux, macos
@PyCoder01 ACTUALLY the most basic way is:
print('\n' * 1000)
@TommyVictory lol no dum dum. If you do that your thing will print at the bottom.
@TommyVictory and replit runs not linux not windows LOL.
@PyCoder01 As I said. Basic
@TommyVictory O yeah. Also the creator will get banned off repl talk cause he's under 13 https://storage.googleapis.com/replit/images/1610074715837_6b468921c432d9aabf2a8e47c9da0f57.png
ACTUALLY the most basic way is:
print('\n' * 1000)
haha, (no os) (still not so basic tho):
import sys
import time
def clear():
sys.stdout.write('\x1b[1A')
sys.stdout.write('\x1b[2K')
########## FOR DEMO ################
if __name__ == "__main__":
print("this line will be cleared after 2 seconds")
time.sleep(2)
clear()
@PyCoder01
i personally think this is the most basic way to clear the console:
@TommyVictory
import time
print("hi")
time.sleep(1)
print('\033c')
he's only a beginner @PyCoder01
I used to have a way to clear the screen but I forgot what it was... Maybe
import os
os.clear()
?? Also if you print 100 lines on slow systems that could crash the system...I think @ridark
I remember what it was, you can just type exit() and that works... at least for me. @ridark
Also if you print 100 lines on slow systems that could crash the system...I think
wdym?
but yes that is true
@Whippingdot For me, its os.system("clear").
@ReyesP For stopping I just import sys and sys.exit().
@PyCoder01 Oh ffs name one person who follows that rule
@PyCoder01 stop hate commenting
its a waste of time
@PyCoder01 Pygame is impossible to use in repl.it
It worked bruh... You blind?? It is supposed to say that, if it was an error it would give an error. exit() worked in the pic. @ridark
@PyCoder01 hate comments are a waste of time.
@PyCoder01 but that doesnt stop you!
@PyCoder01 Only early 80's kids remember when terminal games were pretty much the only game.
@PyCoder01 honestly what is with you?
im having touble understanding most of your code
Aight, I love this. It's great and I need to use some of your code. I'm a noob and I have a massive project from my learning institute which if I don't do, there will be no more proof that I've been in any school for the past 9 years. So I need to take some of your code and reshape to mine. By that, I mean I'm going to leave your defs and your clear()s but change virtually everything else. I'd like to know if that's okay. You'll get credit for this.
Can I get a R.I.P?
I failed BABY mode...
I WON HARD MODE :) nice game
lol i deid and
Traceback (most recent call last):
File "main.py", line 414, in <module>
beg1c()
File "main.py", line 275, in beg1c
sys.eixt("game over")
AttributeError: module 'sys' has no attribute 'eixt'
I think there is a better way to generate this game- not saying Its bad, I love it. But you could've made a list of events, randomly select something from the list, and design functions for the events. make a bunch of if statements and fut the functions in there, then:
Put it all in a for loop.
@gjirtngisnt again, love the game, just a suggestion :)
this is awesome! thanks!
It is tedious to lay out the path of the game as a long chain of if statements. It is better to store them in a file like I did in my most recent repl. It's very crude, I will admit, but I am just starting to figure things out.
This is a great program though.
All this hate circling around the repl.it community is the number one reason why I'm not active
Very Cool!!
That's a LOT of lines of code, more than I have coded.
so good
love it
nice game
cool game
thank you for the positivity from the creator and delivered by co creator @Lenora
but i do like the game
it stops at
1. fight him
2. try to sneak and attack him
3. try to bargain with the dragon
does that mean that I'm dead because I put 1 in and then it does the weird orange arrow and then I don enter again and it says Keybordinterrupt pls help
its rally anoying
thank you for letting us know sincerely jackson and brendan @NoahSeiffert
for me it's not working .-.
could you tell me the what does it say the problem [email protected]
@brendanryba1 yup, ya know when it says what difficulty do you want? i typed it in and then it does nothing.
i will fix the problem thanks for the feed [email protected]
thanks for the pointer and we fixed it thanks to you:)@TheCheeseCoder
@Jacksontrex Sorry you're not old enough to use replit. You will be banned off repl talk. So you won't be able to post or comment until you're 13. In replit TOS you have to be over 13 to use replit.
@PyCoder01 He doesn't state his age, how can you tell?
elementary school @RowanFromBJC
@PyCoder01 dont be a @#!##[email protected]
it was a typo and we didn't notice it until you got him [email protected]
@Whippingdot Oh, I see.
#Thank you so much for 30 upvotes! This is my first big coding project and im glad so many people like it! also i hate you pycoder1 all i wanted to do was code but now youve banned me and I can't reply to any of my comments for three years because of you.
@brendanryba1 @RowanFromBJC he can easily be unbanned by simply emailing [email protected] to appeal as it says. I assume you know them as you are speaking on their behalf so would you please tell them that.
ok thxs :)@CodingCactus
@CodingCactus I don't really know anyone on repl.it irl
Nice game, I have a few suggestions though.
.lower()
at the end out your word input statements. That way, it doesn't matter if the user "yes","YES","YeS",or "yEs"\n
in your print statements or addingprint("")
@FloCal35 .upper is also an option
@FloCal35 I mean .upper()
@PyCoder01
.upper
sucks@NoNameByProgram nope
I use .upper() @NoNameByProgram
@FloCal35 YES
thanks for the tip :)@FloCal35
@FloCal35 I did the same in my game which is oddly similar to this one lol.
@NoNameByProgram
i agree