How to Draw Different Shapes in Pygame. Lines, Rectangles, Circles, Ellipses, Arcs, Polygons etc

  Рет қаралды 20,278

MK Coding Space

MK Coding Space

Күн бұрын

Пікірлер: 24
@mkcodingspace
@mkcodingspace 3 жыл бұрын
Hi Guys, if you like the video or find the video useful, please support the channel by LIKING and SUBSCRIBING. Thank you for your support!
@DaLastMonster
@DaLastMonster 3 жыл бұрын
what is the best way to calculate vertical and horizontal lines for checkerboard individual squares? I am trying to represent fences for a Quoridor type game and I want the fences to fit exactly to the height and width of each individual rectangle. I guess the best way to visually describe it is that I want one side of a rectangle border via the draw line method, so I want the leftmost vertical border line for a rectangle.
@afailable
@afailable 3 жыл бұрын
Good job getting straight to the point
@pier8105
@pier8105 3 жыл бұрын
Bro, thanks so much!!! I’ve been trying to figure out how to draw a rectangle for days!!
@mkcodingspace
@mkcodingspace 3 жыл бұрын
Glad it helps :)
@meeswouterse9077
@meeswouterse9077 2 жыл бұрын
Thanks bro, it really helped me out, gonna drop a follow for sure
@stutteringcris468
@stutteringcris468 2 жыл бұрын
my backround won't turn white..... and my pygame.display.update() keeps getting an error
@meeswouterse9077
@meeswouterse9077 2 жыл бұрын
is the order in wich your lines are inside the main loop correct? i had the same problem but mine got fixed when i changed the order correctly, hope tis helps :D
@stutteringcris468
@stutteringcris468 2 жыл бұрын
@@meeswouterse9077 it helped when I finally realized that the orders of the lines, MATTER! Thanks for your your tip!
@carlriley5580
@carlriley5580 2 жыл бұрын
You might have to teach the other channels how to make videos. Good Job.
@mkcodingspace
@mkcodingspace 2 жыл бұрын
I have been a tutor for quite some time, and have gained some experience :D
@zeybess6467
@zeybess6467 2 жыл бұрын
quick question how do i fix iccp known incorrest sRGB profile
@madhavkrishnab6088
@madhavkrishnab6088 2 жыл бұрын
Thank you 👌😃
@athanb94
@athanb94 3 жыл бұрын
very helpful tutorial, thank you man. subbed
@BRIJESH_VYAS
@BRIJESH_VYAS 2 жыл бұрын
I have problems with " clock has no attributes tick" how to solve?
@mariekorthuis5308
@mariekorthuis5308 3 жыл бұрын
Thank you, this was very helpful!
@RainDev.
@RainDev. 2 жыл бұрын
I keep getting a error at "state=False" any help? (python 3.8.2) Edit1: also an error at "pygame.display.update()"
@legend3305
@legend3305 3 жыл бұрын
bro...it does not work
@mkcodingspace
@mkcodingspace 3 жыл бұрын
If you give more information, I might be able to help. Thanks.
@حسينمحمدكاظم-ي6غ
@حسينمحمدكاظم-ي6غ 3 жыл бұрын
maybe u did something wrong? maybe
@thomasbassil140
@thomasbassil140 2 жыл бұрын
maybe you forgot pygame.display.update()
@dynast7550
@dynast7550 2 жыл бұрын
when you were making the straight line u forgot to add width to it it should be startX=0; startY=0; endX=720; endY=480; width=10 pygame.draw.line(WIN, BLACK, (startX, startY), (endX, endY) , width) and not what you put startX=0; startY=0; endX=720; endY=480; width=10 pygame.draw.line(WIN, BLACK, (startX, startY), (endX, endY)) you do not have the width added to urs (also my window resolution is different and i used mine for second example just took away width i also had wn named WIN instead and a different thickness) it is used to make ur line thicker so put a comman then width at the end of them bracket thingys
@mkcodingspace
@mkcodingspace 2 жыл бұрын
You are right. I did forget the width😅
Saving and loading in pygame with json
25:23
Clear Code
Рет қаралды 30 М.
Pygame Menu System Tutorial Part 1: Game Loops and Structure
18:26
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Creating an animated button in Pygame
32:49
Clear Code
Рет қаралды 36 М.
Pygame Top Down Shooter Tutorial #1 - Player Setup
20:57
ScriptLine Studios
Рет қаралды 36 М.
Making an Executable from a Pygame Game (PyInstaller)
6:08
DaFluffyPotato
Рет қаралды 108 М.
Python Pygame Tutorial - Scrolling Background With Player
13:51
code.Pylet
Рет қаралды 28 М.
15 Python Projects in Under 15 Minutes (Code Included)
12:37
Tech With Tim
Рет қаралды 2 МЛН
PyGame Beginner Tutorial in Python - Infinite Scrolling Background
12:35
Coding With Russ
Рет қаралды 52 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 1,1 МЛН
Pygame Tutorial - Creating Space Invaders
1:56:03
Tech With Tim
Рет қаралды 817 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН