Skip to content
Open navbar menu
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
    2 years ago

    eww eror doesnt work

    Pial-ShahaShaha
    Pial-ShahaShaha
    2 years ago

    line 230 has a error

ColePete
ColePete
shared a Post
2 years ago
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.2 years ago
ColePete
ColePete
shared a Post
3 years ago
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 work3 years ago
TimothyRowell
TimothyRowell
Its your font.3 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-HTML3 years ago
ColePete
ColePete
shared a Post
3 years ago
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; } `3 years ago
ColePete
ColePete
shared a Post
3 years ago
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 ``3 years ago
SixBeeps
SixBeeps
You need to add a to the stylesheet on the page: `3 years ago
LuckyOreos
LuckyOreos
It works for me maybe something on your end?3 years ago
ColePete
ColePete
shared a Post
3 years ago
[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 there3 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.3 years ago
ColePete
ColePete
shared a Post
3 years ago
The question is pretty simple: does pygame work on repl.it?
19wintersp
19wintersp
As far as I know, yes.3 years ago
ColePete
ColePete
shared a Post
3 years ago
[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 2 years ago
MemeManMeme
MemeManMeme
yeah all im getting is a syntax error. It sucks, but it might just be a chromebook issue2 years 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 chrome2 years ago
ColePete
ColePete
shared a Post
3 years ago
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!3 years ago
ColePete
ColePete
shared a Post
3 years ago
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
image3 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! -JBYT273 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/869183 years ago
ColePete
ColePete
shared a Post
3 years ago
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
3 years ago
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
3 years ago
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
Subroutine
Subroutine
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 all2 years ago
Subroutine
Subroutine
cool2 years ago
ColePete
ColePete
shared a Post
3 years ago
[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 @ColePete3 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/871573 years ago
ElanRodriguez3
ElanRodriguez3
good but error3 years ago
ColePete
ColePete
shared a Post
3 years ago
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!3 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)3 years ago
ColePete
ColePete
shared a Post
3 years ago
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 reason3 years ago
ColePete
ColePete
@MocaCDeveloper @whippingdot I feel bad always asking ya'll for help, but, I am stuck.3 years ago
ColePete
ColePete
shared a Post
3 years ago
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.3 years ago
ColePete
ColePete
@Whippingdot @MocaCDeveloper Any ideas on how to fix?3 years ago
ColePete
ColePete
PLEASE HELP ME3 years ago
ColePete
ColePete
shared a Post
3 years ago
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.3 years ago
ColePete
ColePete
so where and what should I put it3 years ago
Coder100
Coder100
You forgot to reassign! Remember, you put the name outside of the while loop so the name won't change!3 years ago
ColePete
ColePete
shared a Post
3 years ago
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.3 years ago
ColePete
ColePete
shared a Post
3 years ago
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/871573 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)3 years ago
ColePete
ColePete
shared a Post
3 years ago
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} `3 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 3 years ago