How would i go from here to make a game using python?
please help. i am trying to figure out more about python and i want to make a game, but i dont know how to use the imported replit and i dont know how to use it to create the game. keep in mind that this is my first ever game so i dont know what i am doing XD. any help will be greatly appreciated. the game i am trying to create is an idle game that will continue to run even while the computer/device is asleep or off, and when you come back to it, it will tell you what all has happened while you have been gone. @HunterShyrock
any help would be greatly appreciated. helpers will get credited when i use this for a project and i will upvote them as well. @Coder100 @Highwayman
first think of an idea
next draft it down
next if too hard ask for people to help (like me)
finnaly build your idea
(last step: check for any cheats and fix 'em before posting)
Thats how i do it.
@dominicl645
ok betto's @Leroy01010
@dominicl645 if you're just starting, its good to know about the basics of python, most likely even necessary. I don't know about importing pygame and replit, but when you're stuck on an error or how to do something simple, searching up may be a fast and quick idea. For example, I was stuck on how to capitalize the first letter of a string and I found out about the function, capitalize(). Make a basic outline, try to code it. If you find any mistakes, try to fix them by yourself, but if you're stuck and need a hint, search it up or ask someone if you can't even find the solution online. Also, start with something small and build up, don't immediately work on this humongous hard project.
@ThisUserTaken Btw, to capitalize the first letter in a string its .title()
like 'hi'.title()='Hi'
pygame would be good, but a terminal game works too
can you elaborate? @Coder100
this is pygame and a terminal application is what you already have, @dominicl645
@Coder100 Using import pygame
is better.
so i imported pygame and now it said "Hello from the pygame community. https://www.pygame.org/contribute.html what do i do from here? @Coder100
i just used import pygame @JavaMaster1
@dominicl645 Yeah it's better cuz Pygame is missing a few codes.
@dominicl645 Also, there's no module named python3
. You already are using Python3
well...what do i do from there? i have never used pygame ever so i need helps. @JavaMaster1
just figured that out lmao. @JavaMaster1
@dominicl645 https://repl.it/talk/learn/A-Starter-Guide-to-Pygame/11741 I found it randomly searching tutorials for you.
dumb thing is, i am trying to use my regular python to create the idle game. any suggestions on what i should do to achive that goal? @JavaMaster1
@dominicl645 Well, I don't use Pygame, I enjoy the HTML canvas, but for getting started in Python, I recommend a survival game or an RPG.
oh...ok. ig i can give that a try. @JavaMaster1
@dominicl645 go here for inspiration.
@dominicl645 And ask me for help any time.
@dominicl645 If there's ever an issue in your code, invite me to the repl and I'll be happy to fix it!
ok. i just upvoted every comment on this subject i could. so all of your comments got upvoted. @JavaMaster1
@dominicl645 Wow... thank you.
@dominicl645 But I think Coder100 answered your question. You should select his as the answer.
i wish i could choose 2 correct answers. @JavaMaster1
@dominicl645 Then you select the best answer. Which one helped you the most?
@dominicl645 So, which one is better?
what happened here @dominicl645
ah yes, pygame tutorials?
https://www.javatpoint.com/pygame
https://www.pygame.org/wiki/tutorials
@dominicl645
um...life @Coder100
wait why are you not using a pygame repl @dominicl645
@Coder100 I'm teaching @dominicl645 how to use the HTML canvas to make stuff.
coolio @JavaMaster1
@Coder100 Yes, pygame is a great on for making games.
@dominicl645 Here's some code that will create a screen. From there you will just need to draw shapes and images onto the screen to make a game.
import pygame
pygame.init()
width = 800 # the with of the screen
height = 800 # the height of the screen
screen = pygame.display.set_mode((width, height))
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
# put code bellow here and above the next comment. Here's and example of how to draw a rectangle:
pygame.draw.rect(screen, (0, 0, 0), [0, 100, 5, 30])
# this updates the screen
pygame.display.update()
pygame.quit()
Well if you want something like this Use python(with turtle)! This is super simple, nothing complicated like pygame(even though its not all that bad i think_
ok thanks. @Highwayman @Muffinlavania
Wait what did I do lol
@dominicl645
@Highwayman I know right why did he mention you
I looked through the whole comment section trying to find your name
i mentioned it cause it got his attention. @Muffinlavania @Highwayman
@dominicl645 wait why
cause its not illegal. @Muffinlavania
You could use pygame. I made this really helpful template that makes using pygame a breeze.
https://repl.it/talk/templates/Python-Game-Template/54766
Hey! I am looking to work on a game, and I am looking for someone to help. You were reccomended to me by @DigiLab . Please tell me if you are willing to work with me on a Python game. Thanks,
Turtle
Use turtle to make easy games. So once you've mastered it, just move on to pygame. Here are some links:
https://realpython.com/beginners-guide-python-turtle/
https://www.geeksforgeeks.org/turtle-programming-python/
thx. @RYANTADIPARTHI
@dominicl645 np
tbh imma keep this one open for suggestions, if u dont mind. @RYANTADIPARTHI
@dominicl645 sure!