Skip to content
Open navbar menu
Sign UpLog In
Profile icon

I am William Lindenberg

@WilliamLindenbe
print("\u001b[35m\u001b[105mhehe\u001b[0m")
  • The Twin Crystals

    Cover page
    Made with Python

    This repl is a python text adventure game. (Updating regularly)

    Recent comments (23)
    Muffinlavania
    Muffinlavania
    2 years ago

    not gonna lie, this is probably cooler than half the stuff on repl trending lol anyway heres some stuff i think can make it even cooler (if you are still working on this i guess) 1)

    import sys,time
    def printt(thingggg,dela=.04,poo=False):
    for i in thingggg:
    sys.stdout.write(i)
    if poo==True:
    print(random.choice(['','',"\a",'']),end='') #This is for a random noise thing lol, put the 3rd thing as true if you want it
    sys.stdout.flush()
    time.sleep(dela)
    print('')

    after popping that at the top of your code, basically just say printt('something') and it will print out 'something' letter for letter the other two things are optional, printt('something',.1,True) has a .1 second between each letter, and the True makes it have a chance to print out a little sound after each letter (cool for boss fights or something)


    1. if you want to save a lot of lines of code, you could put stuff in functions a really easy one is making this:
    def c():
    os.system('clear')

    which just lets you say c() instead of os.system('clear') everytime

    another thing i noticed is you have a LOT of characters (we dont talk about HACKS AGAIN), and an easy way to make a character would to put this at the top of your character select:

    def character(t1,t2,t3,t4,t5):
    global patk,hp,matk,sc,schp #makes it so you can edit the variables in the function
    patk=t1
    hp=t2
    matk=t3
    sc=t4
    schp=t5

    so instead of typing all these lines: patk=90 hp=80 matk=45 sc='Ninja' schp=80 to make the ninja, you could just do character(90,80,45,'Ninja',80)


    this is probably way too long to read, and you might have stopped working on this, but i was bored so yea lol also i see you used cprint for colors, you can use python color codes for like 250+ options (https://replit.com/@Muffinlavania/some-colors-lol for example)

    zuw
    zuw
    2 years ago

    This is sick bro

    GreenHexagon
    GreenHexagon
    2 years ago

    Heres a bug (at least for me.) It doesn't leave enough time for actually naming.

    MalachiHenson
    MalachiHenson
    2 years ago

    It was too easy and it wasn't long enough.

    meijeronfire
    meijeronfire
    2 years ago

    great game! after a while I did get an error however,

    Traceback (most recent call last): File "main.py", line 2329, in dr=random.randint(1,patk) #patk=physical attack File "/usr/lib/python3.8/random.py", line 248, in randint return self.randrange(a, b+1) File "/usr/lib/python3.8/random.py", line 226, in randrange raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width)) ValueError: empty range for randrange() (1, 1, 0)

    GreenHexagon
    GreenHexagon
    2 years ago

    Uhoh. an error

    File "main.py" , line 2195 in atk = atk+10 NameErrror: name 'atk' is not defined

    GreenHexagon
    GreenHexagon
    2 years ago

    A bug, I was fighting a person and attacks show up as orc hits you for {damage}

    Its really nice!

  • WIREMESH ANIMATION-2

    Cover page
    Made with HTML, CSS, JS

    Animation of coloured wiremesh cubes in three.js

    Recent comments (0)
  • Physics Dodge

    Cover page
    Made with 3D Rendering with Three.js

    Physics Dodge! A game where physics meets a classic obstacle avoiding game. Fly your cube up while avoiding orbs of varying colours and damage. Comment your highscore and any bugs or recommendations below. [UPDATE 1] High score is now remembered for each time you play. New Animated Skins to pick from. New Background Decoration. [UPDATE 2] Game is basically done. Attributes for shaders have been given. Disco light for non-shadered background.

    Recent comments (6)
    GoldDerFox
    GoldDerFox
    6 months ago

    My high score was 73

    bqini
    bqini
    2 years ago

    image

All Repls