<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Guyzie754</title>
    <description>The latest articles on DEV Community by Guyzie754 (@ghazie754).</description>
    <link>https://dev.to/ghazie754</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1215448%2F7c4c6722-82ef-4f1d-ab70-a756f4a84c6b.jpeg</url>
      <title>DEV Community: Guyzie754</title>
      <link>https://dev.to/ghazie754</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ghazie754"/>
    <language>en</language>
    <item>
      <title>Pygame</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Mon, 17 Feb 2025 04:22:48 +0000</pubDate>
      <link>https://dev.to/ghazie754/pygame-121m</link>
      <guid>https://dev.to/ghazie754/pygame-121m</guid>
      <description></description>
    </item>
    <item>
      <title>games</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Mon, 17 Feb 2025 04:22:19 +0000</pubDate>
      <link>https://dev.to/ghazie754/games-45kj</link>
      <guid>https://dev.to/ghazie754/games-45kj</guid>
      <description></description>
    </item>
    <item>
      <title>Games</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Mon, 17 Feb 2025 04:21:37 +0000</pubDate>
      <link>https://dev.to/ghazie754/games-2fl5</link>
      <guid>https://dev.to/ghazie754/games-2fl5</guid>
      <description></description>
    </item>
    <item>
      <title>Dunder methods</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Fri, 22 Nov 2024 18:08:48 +0000</pubDate>
      <link>https://dev.to/ghazie754/dunder-methods-4ljh</link>
      <guid>https://dev.to/ghazie754/dunder-methods-4ljh</guid>
      <description></description>
      <category>python</category>
    </item>
    <item>
      <title>Dunder new</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Mon, 18 Nov 2024 00:44:48 +0000</pubDate>
      <link>https://dev.to/ghazie754/dunder-new-2c3l</link>
      <guid>https://dev.to/ghazie754/dunder-new-2c3l</guid>
      <description></description>
    </item>
    <item>
      <title>__new__</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Mon, 18 Nov 2024 00:44:16 +0000</pubDate>
      <link>https://dev.to/ghazie754/new-1ak9</link>
      <guid>https://dev.to/ghazie754/new-1ak9</guid>
      <description></description>
    </item>
    <item>
      <title>__new__</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Sun, 17 Nov 2024 16:47:09 +0000</pubDate>
      <link>https://dev.to/ghazie754/new-101j</link>
      <guid>https://dev.to/ghazie754/new-101j</guid>
      <description></description>
    </item>
    <item>
      <title>pygame button gui</title>
      <dc:creator>Guyzie754</dc:creator>
      <pubDate>Tue, 18 Jun 2024 20:40:35 +0000</pubDate>
      <link>https://dev.to/ghazie754/pygame-button-gui-1pbe</link>
      <guid>https://dev.to/ghazie754/pygame-button-gui-1pbe</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    def button (msg, x, y, w, h, ic, ac, action=None ):
        mouse = pygame.mouse.get_pos()
        click = pygame.mouse.get_pressed()

        if (x+w &amp;gt; mouse[0] &amp;gt; x) and (y+h &amp;gt; mouse[1] &amp;gt; y):
            pygame.draw.rect(watercycle, CYAN, (x, y, w, h))
            if (click[0] == 1 and action != None):
                if  (action == "Start"):
                    game_loop()
                elif  (action == "Load"):
                    ##Function that makes the loading of the saved file##
                elif  (action == "Exit"):
                    pygame.quit()

        else:
            pygame.draw.rect(watercycle, BLUE, (x, y, w, h))
            smallText = pygame.font.Font("freesansbold.ttf", 20)
            textSurf, textRect = text_objects(msg, smallText)
            textRect.center = ( (x+(w/2)), (y+(h/2)) )
            watercycle.blit(textSurf, textRect)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>python</category>
      <category>pygame</category>
      <category>gamedev</category>
      <category>ui</category>
    </item>
  </channel>
</rss>
