game-development

ZX81 BASIC to Pygame Conversion of "Dropout" Game

ZX81 BASIC to Pygame Conversion of "Dropout" Game Question: I based the code below on this article: http://kevman3d.blogspot.com/2015/07/basic-games-in-python-1982-would-be.html and on the ZX BASIC in this image: 10 LET P=0 20 LET T=P 30 FOR Z=1 T0 10 35 CLS 37 PRINT AT 12,0;T 40 LET R=INT (RND*17) 50 FOR Y=0 TO 10 60 PRINT AT …

Total answers: 1

Get any objects (Rect, Surfaces…) at position / coordinates X, Y

Get any objects (Rect, Surfaces…) at position / coordinates X, Y Question: So the question is simple: Given a Surface, let’s call it screen and x,y coordinates, can I get anything that lays at that coordinates on that Surface? For example, let’s say we have typical, Player attack, and if the attack reach the Enemy …

Total answers: 1

How do I read a .csv file for a tile map in pygame?

How do I read a .csv file for a tile map in pygame? Question: I’m making a sequel to an entry I made in the GMTK Game Jam. It’s a platformer where the player has to get through randomly selected maps of various game modes, like a platforming race, a boss battle, and what I …

Total answers: 3

Can i let a for n in range keep going despite item

Can i let a for n in range keep going despite item Question: I relatively new to coding, so I need a bit of help figuring this out. I’m creating a game using pygame, and I have a for n in range loop that sorts through the characters ‘frames’ for the animations. The issue I’m …

Total answers: 1

How to install ursina?

How to install ursina? Question: I went to powershell and said pip install ursina, but the only thing that came up was pip : The term ‘pip’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify …

Total answers: 3

How to make an enemy follow the player in pygame?

How to make an enemy follow the player in pygame? Question: I made part of a game. It runs well but I would like to add enemies in my game. So far I add the image of the enemies in pygame sprites. But how do I make the enemies follow the player? I tried do …

Total answers: 5