I am William Lindenberg
The Twin Crystals
Made with PythonThis repl is a python text adventure game. (Updating regularly)
Recent comments (23)Muffinlavania2 years agonot 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,timedef 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 itsys.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)
- 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 ofos.system('clear')
everytimeanother 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 functionpatk=t1hp=t2matk=t3sc=t4schp=t5so instead of typing all these lines:
patk=90 hp=80 matk=45 sc='Ninja' schp=80
to make the ninja, you could just docharacter(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)
zuw2 years agoThis is sick bro
GreenHexagon2 years agoHeres a bug (at least for me.) It doesn't leave enough time for actually naming.
MalachiHenson2 years agoIt was too easy and it wasn't long enough.
meijeronfire2 years agogreat 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)
GreenHexagon2 years agoUhoh. an error
File "main.py" , line 2195 in atk = atk+10 NameErrror: name 'atk' is not defined
GreenHexagon2 years agoA bug, I was fighting a person and attacks show up as orc hits you for {damage}
Its really nice!
WIREMESH ANIMATION-2
Made with HTML, CSS, JSAnimation of coloured wiremesh cubes in three.js
Recent comments (0)Physics Dodge
Made with 3D Rendering with Three.jsPhysics 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.