<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Pygame._Programaci%C3%B3_videojocs</id>
	<title>Pygame. Programació videojocs - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Pygame._Programaci%C3%B3_videojocs"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Pygame._Programaci%C3%B3_videojocs&amp;action=history"/>
	<updated>2026-08-30T10:19:15Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Pygame._Programaci%C3%B3_videojocs&amp;diff=257280&amp;oldid=prev</id>
		<title>Joan: Es crea la pàgina amb «=Introducció= Pygame ve instal.lat per defecte en la distribució Raspbian de la Raspberry Pi. &lt;pre&gt; python-pygame - SDL bindings for games development in Python python-...».</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Pygame._Programaci%C3%B3_videojocs&amp;diff=257280&amp;oldid=prev"/>
		<updated>2018-05-22T14:52:32Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «=Introducció= Pygame ve instal.lat per defecte en la distribució Raspbian de la Raspberry Pi. &amp;lt;pre&amp;gt; python-pygame - SDL bindings for games development in Python python-...».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introducció=&lt;br /&gt;
Pygame ve instal.lat per defecte en la distribució Raspbian de la Raspberry Pi.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python-pygame - SDL bindings for games development in Python&lt;br /&gt;
python-pygame-sdl2 - reimplementation of the Pygame API using SDL2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*https://www.pygame.org/news&lt;br /&gt;
*http://programarcadegames.com&lt;br /&gt;
&lt;br /&gt;
=Curs programarcadegames.com=&lt;br /&gt;
És un curs online incremental.&lt;br /&gt;
==Primeres proves==&lt;br /&gt;
He provat els exemples ''pygame_base_template.py'', ''platform_jumper.py'', i ''moving_sprites.py''.&lt;br /&gt;
&lt;br /&gt;
A mi la línia '''super().__init__()''' em peta. Per tal de què no peti:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        #TypeError: super() takes at least 1 argument (0 given) error&lt;br /&gt;
        #https://stackoverflow.com/questions/38963018/typeerror-super-takes-at-least-1-argument-0-given-error-is-specific-to-any&lt;br /&gt;
        #super().__init__()&lt;br /&gt;
        super(Block, self).__init__()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Per fer que un joc sigui fullscreen:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Set the height and width of the screen&lt;br /&gt;
screen_width = 700&lt;br /&gt;
screen_height = 400&lt;br /&gt;
#screen = pygame.display.set_mode([screen_width, screen_height])&lt;br /&gt;
screen = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
I en mode fullscreen, per tal de poder sortir del joc amb ESCAPE:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -------- Main Program Loop -----------&lt;br /&gt;
while not done:&lt;br /&gt;
    for event in pygame.event.get():&lt;br /&gt;
        if event.type == pygame.QUIT:&lt;br /&gt;
            done = True&lt;br /&gt;
&lt;br /&gt;
        if event.type == pygame.KEYDOWN:&lt;br /&gt;
            if event.key == pygame.K_ESCAPE:&lt;br /&gt;
                done = True&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Autor}}, maig 2018&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>