Anthony Cabrera
@cmglj
0
WebsitePracticefirst website
2
0
0
Is there any NEW VERSION pygame tutorial bc I watched a tutorial and it didn't work
PattanAhmed @cmglj Hi,
I have read your previous comments and have found that your main error to this question is solved.
But now if you run your Repl, you will receive a new error:-
..... File "main.py", line 31
pygame.draw.rect(screen, (255, 0, 0), (x, y, width, height))
^
SyntaxError: invalid syntax
exit status 1
Which is completly not linked with the post. -_-
But I will help you with that for now:-
On line 31 of your code, you didn't have code indented.
Just indent it and you will be done!
2 years ago
RYANTADIPARTHI The error is because one of your pygame.draw.rect is unindented:
Screenshot 2020-11-08 at 7.27.44 AM
Just indent that, and it will work2 years ago
so I've been trying to learn pygame bc im tryna become a game developer and a lot of tutorials aren't helping so if any of you guys know pygame please
OlauPla I have come to help!
Here is a very good series of videos where you can lern: click
Hope it helped2 years ago
badst Python Crash Course by Eric Matthes
Read this a few years ago, it's a good book. Pretty sure there's a newer version that has a Pygame Tutorial.
2 years ago
DynamicSquid You can check out the website for some cool stuff you can do. I also found this neat little tutorial about PyGame2 years ago
how do i put an image as the backround in html? @Coder100 by any chance can you tell me if you know? or anyone.
Coder100 So to do this, in your style.css add:
body {
background: url(img.png);
}
But make sure img.png is an actual image (replace img.png with the image of your choice).
Also, to make sure the image is full-size, read this:
html {
background: url(img.png) no-repeat center center fixed;
background-size: cover;
}
Read more about backgrounds here and here2 years ago
Whacko You need to use CSS.
.background {
background-image: url('theImage.jpg');
height: 100%;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
body, html {
height: 100%;
}
And then INSIDE the div you add what you want.
It should work.2 years ago
k9chelsea2 maybe [this] (https://www.w3schools.com/html/htmlimagesbackground.asp) or [this] (https://www.w3schools.com/cssref/pr_background-image.asp) can help2 years ago
just a little help for an input game!
Enjoy, plz some people notice this
Enjoy it. I'm new so don't hate
a small program that has most of my codes I made, like a search web idk, im new t coding so don't hate
I recently found out ab repl.it so here's one of my codes I made, hope its fun
A new and safer way to save information with a 4 digit code
Basically you type in how much degrees it is outside and this program will tell you if it's hot outside or not,