Advertisement

Latest pygame Activity

Advertisement

Motivation is a tricky thing, it comes and goes randomly  and you never know when it will strike. 

My advise is to build a team for your game. Working with others offers a lot of motivation.  

Find a person or a few people that complement your strengths and weaknesses. 

Set time as…

4,897 views

There are different kinds of “impossible”:

  • There are things that are inherently impossible because they are self-contradictory, e.g. “I want a multi-player game where everyone has total freedom to attack other players and is totally safe from being attacked by other players”.
  • There are things that ar…
  • 5,471 views

    jdtec01 said:
    A slightly late reply

    Three months necro. Thread locked.

    11,933 views

    Hi, i have very good news. I did it! Thanks for your help. I finally have the dialog box i wanted. It's able to print multiple lines and it can render text char by char. Again thank you.

    Edit: Your code is works btw. I just add blit to your code and it works very well.

    11,801 views
    if self.animation_loop2 >= 5:
      self.kill

    I am guessing you expect this to kill the character, but you only say the name of the function, it never gets executed (you need to append a pair of parenthesis to it for that, ie “self.kill()”), so the next loop you are trying to get the 6th sprite from …

    6,669 views
    Tom Sloper
    November 18, 2020 07:56 PM

    This is not a Game Design question. Game Design and Programming are not the same. Moving to For Beginners.

    3,297 views
    renedudfield
    October 29, 2020 02:16 PM
    pygame 2 released on 20th birthday

    pygame 2.0, the most popular game library for python has been released on its 20th birthday.

    What's the best feature of pygame 2? Maybe it's "backwards compatibility". For many, many apps pygame 2 is backwards compatible. Have an pygame app from the year 2000? It will probably work. We still have so…

    8,036 views
    phylyp
    September 28, 2020 02:29 PM
    Discover Python and Patterns (11): Class

    I propose to introduce Python classes to implement the Game Loop pattern. Using these tools, I show how to refactor the code in the previous post to get a more robust and readable program.

    This post is part of the Discover Python and Patterns series

    Create a class with Python

    In this post, I introduce…

    5,263 views
    alex.coaton
    August 23, 2020 08:17 PM
    Arkanoid and PyGame Collision Detection
    Background

    I chose to write an Arkanoid-like clone (see the original below), assuming this would be a relatively simple place to start with PyGame.

    Arkanoid. Fresh outta the 80s.

    So I coded away and felt joy and satisfaction as I quickly implemented a sprite sheet loader, platform movement, block and …

    7,161 views
    phylyp
    July 14, 2020 09:34 AM
    Discover Python and Patterns (10): Keyboard

    Thanks to the Pygame library we installed in the previous post, we can draw 2D graphics. In this post, I propose to introduce controls with the keyboard as well as some improvements like window centering and frame rate handling.

    This post is part of the Discover Python and Patterns series

    Keyboard ev…
    3,185 views

    @Prototype thank you, I got it working now!

    7,270 views
    phylyp
    May 02, 2020 03:17 PM
    Discover Python and Patterns (9): Pygame

    In the previous posts, I introduced enough of Python and patterns to start creating games with graphics using the Pygame library.

    This post is part of the Discover Python and Patterns series

    Install Pygame

    Pygame is a popular library for creating 2D games. Like the random library we used before, the i…

    4,990 views
    Alberth
    April 05, 2020 06:12 PM

    Basically, what happens is that you let go of seeing integers as values, and instead see them as a collection of 0/1 bits. Python has operators &, |, ^, <<, and >>  to work with collections of bits. The bits view is also why ‘bin’, ‘oct’, and ‘hex’ exist in Python. A decimal va…

    5,823 views
    Advertisement
    Advertisement