Tag Info

New answers tagged


Here are some more thoughts to complement the existing answer. Gaffer On Games has a great article on game loops that has been referenced everywhere. Your game loop should have different independent stages: Input, Update, Render. You could for example read inputs 30 times per second (or in real-time for better responsiveness), do 30 updates per second and ...


tl;dr don't mix your event loop with your game loop. When you move your mouse, the game receives a load of pygame.MOUSEMOTION events. You don't actually use these events to update your mouse position though, you are getting the current state of the mouse using pygame.mouse.get_pos(). That's inefficient, but it's not the problem. The problem is you are ...


From the documentation for pygame.mouse.get_pressed(): Note, remember to call pygame.event.get() before this function. Otherwise it will not work.


As an answer to this question and to most of the comments. Try making some other games first. Since you are a beginner, creating a multiplayer tic-tac-toe (as Shiro suggested) will be hard enough. Even if you can manage to create that creating an MMO is a massive task that most of us, and definitely the beginners, will underestimate. For example: how will ...

Top 50 recent answers are included