This is the best! I really learned a lot from this, thanks a bunch!
@ScriptLineStudios3 жыл бұрын
No problem man. I am glad this tutorial was helpful 👍
@david_ouro10 ай бұрын
Incredible Kid have a bright future ahead
@TooManyNulls4 жыл бұрын
This is avery good tutorial, its pretty simple. it helped me understand classes a bit more!
@ScriptLineStudios4 жыл бұрын
Glad I was able to help! :)
@vagdrak65754 жыл бұрын
thank you for the awesome tutorial!liked and subbed
@ScriptLineStudios4 жыл бұрын
Thanks man! Appreciate the sub :)
@HabiburRahman-eq5tb4 жыл бұрын
brooooo! Never give up bro! You are great!
@ScriptLineStudios4 жыл бұрын
Thank you so much! :)
@joshuadavis74254 жыл бұрын
Epic
@TheCaptainMoo4 жыл бұрын
Very simple and easy to follow. Overall good video
@ScriptLineStudios4 жыл бұрын
Glad you liked it! Thanks for the feedback :)
@sireye_04 жыл бұрын
I was wondering how could I change it to a square class particle: def __init__(self,x,y): self.x = x self.y = y self.x_vel = random.randrange(-10,13)*1 self.y_vel = random.randrange(-10,-1)*1 self.lifetime = 0 def draw(self,window): self.lifetime += 1 if self.lifetime
@ScriptLineStudios4 жыл бұрын
Instead of using pygame.draw.circle you should use pygame.draw.rect(window, (255, 255, 255),(self.x, self.y, 16,16)) the two 16s that come after the x and y represent the width and height of the square. I hope this helps :)
@johnstarfire4 жыл бұрын
Nice, just remember that conventionally classes names are written in capital letters
@ScriptLineStudios4 жыл бұрын
Thanks! I didn't actually know that :)
@johnstarfire4 жыл бұрын
ScriptLine Studios the first letter
@canecorso35384 жыл бұрын
your google play games were created with python?
@ScriptLineStudios4 жыл бұрын
No, they were created with unity, I believe there is a way to create android games with pygame but I haven't done any research on it
@jaysanprogramming68183 жыл бұрын
You earned a sub. You make minor mistakes but it is very interesting. I advise to use pygame.math.Vector2 for position and velocity.
@johnbrowning10713 жыл бұрын
I'm getting line 248, in main for particle_ in Particle(): TypeError: __init__() missing 2 required positional arguments: 'x' and 'y' help pls reply ☕
@blueflamegaming75912 жыл бұрын
maybe try for particle_ in particles: instead of calling the class i'm still a beginner so im not sure
@pyco3742 жыл бұрын
I know this was posted 3 months ago. The reason you are getting an error is you are trying to index the particle class instead of the list containing the rest of your particles