Share your repls and programming experiences

← Back to all posts
day 2 of 100 of my text based game
[deleted]

enjoy what i have added so far i have now added a character selection choice for players with there generated stats comment below if i need to change there stats if they are not good enough or something
credits
@JBYT27 clearing screen and text scrolling
@RYANDTADIPARTHI game idea
@techde fixing one of my errors
@Coder100 for endless battles until you die

Comments
hotnewtop
JBloves27 (1519)

Nice start! Maybe do this:

import time, os
#later on...
os.system('clear')

What it does is that it clears the screen. You might want it to make the text RPG clear-er. Hope this helps!

[deleted]

ok thanks ill add you to the helping part [email protected]

[deleted]

i credited you now @JBYT27

[deleted]

and do you know how to make the text appear at different times and not all at once like the letterswould show up right after another letter [email protected]

[deleted]

i just realised i gained 2 cycles over night from my 2048 post haha now i have [email protected]

[deleted]

im so famous [email protected]

JBloves27 (1519)

that would be the scroll text. Let me give you the code :)

import sys...
...
time1 = 0.04
def sp(str):
  for letter in str:
    sys.stdout.write(letter)
    sys.stdout.flush()
    time.sleep(time1)
  print()

Hope this helps!
@aboutthelol

[deleted]

thanks also if you wanna give me ideas for monsters for the character to fight that would be helpful to im trying to get the repl people for character ideas and [email protected]

[deleted]

i upvoted itso i remember that code so i dont [email protected]

JBloves27 (1519)

And sure, ill give you ideas, later! :) @aboutthelol

[deleted]

ok i just added evilwarlord and goons [email protected]

JBloves27 (1519)

lol, nice! sry, but i gtg. cya! @aboutthelol