Matrix Digital Rain in Python with Pygame

preview_player
Показать описание
Pygame Tutorial on how to create a screensaver from the legendary movie "The Matrix" using the Python programming language.

SourceCode:

#coderspace #python #pygame #matrix #pythopygame
#programming #coding #programmer #developer #technology #code
Рекомендации по теме
Комментарии
Автор

I love how your pygame project tutorials are object oriented/class oriented from the beginning. I'm not that good with coding yet but somehow everything makes sense when I watch your tutorials.

marcomoscoso
Автор

For those running into this error:
font = pg.font.Font('font/ms mincho.ttf', FONT_SIZE, bold=True)

TypeError: function takes at most 2 arguments (3 given)

Change the code FROM THIS:
font = pg.font.Font('font/ms mincho.ttf', FONT_SIZE, bold=True)

TO THIS:
font = pg.font.Font('font/ms mincho.ttf', FONT_SIZE)
font.bold = True

paulotcj
Автор

Hey! love the video, how would you go about explaining method of skipping the first list item when selecting between the two brightnesses of the green? Curious, I was expecting a clear conditional imposed on the first index. Thanks!

jaakkomyyri
Автор

that is great ! now create the whole matrix

mmhtv
Автор

That's so amazing i tried it🥰🥰
How can i apply as a screen saver in windows 10
Please answer

sarv
Автор

[symbol_column.draw() for symbol_column in symbol_columns]
AttributeError: 'SymbolColumn' object has no attribute 'draw'

I got this error. What should I do to handle it?
Also I got the sourcecode but the letters looks all the same. It's kinda not supported emoji... All looks as little rectangles;(

onuryuce
Автор

TypeError: function takes at most 2 arguments (3 given)

font = pg.font.Font('Font/ms mincho.ttf', FONT_SIZE, bold=True)

ps: i add the extension .ttf but doesnt work.

panteaflorin
Автор

FIx the code with:

font = pg.font.Font('font/ms mincho.ttf', FONT_SIZE)
font.set_bold(True)

instead of:
font = pg.font.Font('font/ms mincho.ttf', FONT_SIZE, bold=True)

Ya welcome.

griffithe