Skip to content
Sign upLog in
Profile icon

ColePete

@ColePete
I code with Python, HTML, Javascript, and CSS. I love to code and I am open to all ideas.
  • [GAME] The Mighty Hero V.1.4

    Cover page
    Made with Python

    In this game, you will go against different monsters and defeat them to save your village. Can you figure out how to do it and survive?

    Recent comments (2)
    VitalinaTsybuln
    VitalinaTsybuln
    6 months ago

    eww eror doesnt work

    Pial-ShahaShaha
    Pial-ShahaShaha
    1 year ago

    line 230 has a error

Repls
Community
ColePete
ColePete
shared a Post
1 year ago
1
Why is line 238 not working?
I have looked at this for the past 30 minutes and still can't figure it out... maybe ya'll can tho image Please help and thx if you do
[GAME] The Mighty Hero V.1.4
Python
CosmicBear
CosmicBear
Add a ) at the end of line 234.1 year ago
ColePete
ColePete
shared a Post
2 years ago
1
In my website about me, why is the title of my creations messed up?
RYANTADIPARTHI
RYANTADIPARTHI
Solution i think your hrefs may have something with it. Your href's are not defined properly. You are missing ' and = [Game] The Mighty Hero V 1.4 [Game] Brick Breaker" 4 Function Calculator Dice Roller like that. That should work2 years ago
TimothyRowell
TimothyRowell
Its your font.2 years ago
btfuss
btfuss
if its because of the fact that it is underlined... https://www.tutorialspoint.com/How-to-remove-underline-from-a-link-in-HTML2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
In my repl, I am trying to center a UL in HTML. I want the bullet points to line up in the center of the page. Plz help.
InvisibleOne
InvisibleOne
First off, you should put a closing `` after your list. Then try adding this to the css ul { text-align: center; width: 300px; margin: auto; } `2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
I am coding a website, and my style.css file won't edit the look of my website. How do I fix it?
19ecal
19ecal
I think you need to do in ``2 years ago
SixBeeps
SixBeeps
You need to add a to the stylesheet on the page: `2 years ago
LuckyOreos
LuckyOreos
It works for me maybe something on your end?2 years ago
ColePete
ColePete
shared a Post
2 years ago
5
[GAME] The Mighty Hero Version 1.4! Directions In this game, you will go against different monsters and defeat them to save your village. Can you fig
[GAME] The Mighty Hero V.1.4
Python
TheCheeseCoder
TheCheeseCoder
@ColePete really good > Just a question, how many levels are there2 years ago
tankerguy1917
tankerguy1917
Hey that is pretty nice. Only thing i can thing to add is spells maybe. Other than that, its pretty good.2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
The question is pretty simple: does pygame work on repl.it?
19wintersp
19wintersp
As far as I know, yes.2 years ago
ColePete
ColePete
shared a Post
2 years ago
2
[GAME] The Mighty Hero Directions In this game, you will go against different monsters and defeat them to save your village. Can you figure out how t
[GAME] The Mighty Hero V.1.4
Python
PRANAVBINOY
PRANAVBINOY
i cant select game mode i type easy it says err invalid script 8 months ago
MemeManMeme
MemeManMeme
yeah all im getting is a syntax error. It sucks, but it might just be a chromebook issue11 months ago
VincentMcIff
VincentMcIff
Screenshot 2021-08-20 11.03.25 AM please fix this because I would like to try this out, I am on chrome1 year ago
ColePete
ColePete
shared a Post
2 years ago
3
This is an updated version of my original calculator. This is a standard 4 function calculator for all to use for their math. DISCLAIMER: I am sure
RhinoRunner
RhinoRunner
very cool, I like the big text at the top!2 years ago
ColePete
ColePete
shared a Post
2 years ago
9
This is a standard 4 function calculator. Just follow the instructions, and finish your math homework. Please leave an upvote if you like it. (It is a
Calculator V2.0
Python
YuvanVighnesh
YuvanVighnesh
image2 years ago
JBloves27
JBloves27
Hello, This is pretty cool but: Dont ask for upvotes even if it does boost your morale Nice project Have a good day Thanks! -JBYT272 years ago
ColePete
ColePete
@RhinoRunner @ReyesP @InvisibleOne I just posted an updated version that can be found here: https://repl.it/talk/share/Calculator-V12/869182 years ago
ColePete
ColePete
shared a Post
2 years ago
1
In this repl, you can roll dice. You will get a random number each time, and you can do it as many times as you like. Have fun!
Dice Roll
Python
ColePete
ColePete
shared a Post
2 years ago
1
In this repl, you can choose from 4 sided dice, a 6 sided dice, and an 8 sided dice. It is all random and you can do it as many times as you want. If
Dice Roll
Python
ColePete
ColePete
shared a Post
2 years ago
1
This is a standard 4 function calculator for all to use for their math. Please read the README file before using. Leave an upvote if you like it.
Calculator V2.0
Python
williham
williham
well if youmake the functions your self then the funtions in the custom functions count too, but if you'd like i have my own that's four lines in all1 year ago
williham
williham
cool1 year ago
ColePete
ColePete
shared a Post
2 years ago
10
[GAME] Monster Fighting Game V.1.2 Upvote if you like this please, it took forever to make. How to play Please READ the README file to learn how to
[GAME] The Mighty Hero V.1.4
Python
ElanRodriguez3
ElanRodriguez3
THIS IS LIKE ONE OF THEEE BEST games in the world. No joke. Thanks @ColePete2 years ago
ColePete
ColePete
@Whippingdot @rush22 @chillcafe @clrmist21lukasz @JasonLiu19 @ElanRodriguez3 I just posted V1.3, you can find it here: https://repl.it/talk/share/Game-The-Mighty-Hero-V13/871572 years ago
ElanRodriguez3
ElanRodriguez3
good but error2 years ago
ColePete
ColePete
shared a Post
2 years ago
3
In this game, you will go against different monsters and defeat them to save your village. Can you figure out how to do it and survive? Please read t
[GAME] The Mighty Hero V.1.4
Python
ColePete
ColePete
Please leave an upvote if you like it, and leave a suggestion on what to do next. Thanks!2 years ago
ColePete
ColePete
@bowmand117 @whippingdot, this the V1.2 BUGFIX. (BUGFIX means that it is V1.2, but with all the known bugs fixed.) (Also, V1.2 means Version 1.2)2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
Look at the change from level 1 to two. Then look at the change from two to three. Why is it different? I want them to both be like the change from le
[GAME] The Mighty Hero V.1.4
Python
RYANTADIPARTHI
RYANTADIPARTHI
To answer you're question, it's because if you were using functions, you would put the first function calling at the very end of every Single function. Since all the functions, would run. But for the second to third, you just call it on each other, like this: def first_func(): code second_func() # calling second function here def second_func(): code third_func() # calling third one here. and so on def third_func(): code first_func() # calling That's the reason2 years ago
ColePete
ColePete
@MocaCDeveloper @whippingdot I feel bad always asking ya'll for help, but, I am stuck.2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
Any ideas on how to fix this error message? I can't figure it out. image
[GAME] The Mighty Hero V.1.4
Python
BD103
BD103
Maybe how you keep on setting the same variable to a different random integer? Array indexing starts at 0, something like this: [0, 1, 2, 3, 4] Maybe your random int is out of range.2 years ago
ColePete
ColePete
@Whippingdot @MocaCDeveloper Any ideas on how to fix?2 years ago
ColePete
ColePete
PLEASE HELP ME2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
Whenever you start level two, the monster's name stays the same as the first level. Any ideas on how to fix?
[GAME] The Mighty Hero V.1.4
Python
RYANTADIPARTHI
RYANTADIPARTHI
You have to update it like when it comes to level 2, make the name = to this name.2 years ago
ColePete
ColePete
so where and what should I put it2 years ago
Coder100
Coder100
You forgot to reassign! Remember, you put the name outside of the while loop so the name won't change!2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
In this game, you will go against different monsters and defeat them to save your village. Can you figure out how to do it and survive? Please read t
[GAME] The Mighty Hero V.1.4
Python
ColePete
ColePete
Please consider leaving an upvote if you like it. Upvotes really help me out by showing me if people like it and that all of my work was worth it.2 years ago
ColePete
ColePete
shared a Post
2 years ago
5
In this game, you will go against different monsters and defeat them to save your village. Can you figure out how to do it and survive? Please Read t
[GAME] The Mighty Hero V.1.4
Python
ColePete
ColePete
@bowmand117 @InvisibleOne @techde @MocaCDeveloper @VMTU I just posted V1.3, you can find it here: https://repl.it/talk/share/Game-The-Mighty-Hero-V13/871572 years ago
Whippingdot
Whippingdot
This is actually soooo good, even if I helped you, it is good. Just try to print some other random stuff to create a story line. And you can have a counter telling you how many turns it took to take the monster down. Finally you can have a limited amount of times you can do a move. Try to do this by yourself, it is simple. (Hint for counter: ++counter adds one to counter)2 years ago
ColePete
ColePete
shared a Post
2 years ago
1
How do I make the monster name a random one of my names in the monster_names section? And how do I make it to where that name is not chosen again?
[GAME] The Mighty Hero V.1.4
Python
Whippingdot
Whippingdot
First, change monster names from {} surrounding it to [] surrounding it. Then you have to add this: import random and this in the while loop before the if bow or sword: monsternames2 = monsternames random_name = random.randint(0, 4) del monsternames2[randomname] randomname = monsternames[random_name] monsternames = monsternames2 and you have to replace: monster = {"attack": 16, "health": 100} in both places with: monster = {"attack" : 16, "health" : 100, "name" : random_name} `2 years ago
MocaCDeveloper
MocaCDeveloper
use the random module. Example: import random names = ['bob','jeff','bobby','jeffy'] name = random.choice(names) last_name = [] last_name.append(name) now, use this if statement to make sure the current name is not the last name if name == lastname[len(lastname)-1): print("do some stuff here to update the new name") But yeah, for a random name use the random module. And to make sure the random name is not the same as the last one, i'd probably make a list and append each new name to the 2 years ago