Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
8 votes
2 answers
958 views

2D block game like Minecraft

I have been working on a 2D block game. I like the progress I am making, but I would like to improve the performance and the overall quality of the code. The code and textures are stored in my GitHub ...
coder's user avatar
  • 235
2 votes
2 answers
260 views

Infinite 2d block world (2d minecraft) with chunk system, physics and slower loading

Follow up from this question. I have added a slower loading system that allows the main game to run faster but I still get under 30 fps with caves even if I allow the player to outrun the loading. I ...
coder's user avatar
  • 235
3 votes
2 answers
237 views

Infinite 2D block world chunk system with physics

I am coding an Infinite 2D block world chunk system with physics for fun. I am worried mainly about performance and code structure. I found that when I added more Perlin noise it made the performance ...
coder's user avatar
  • 235
2 votes
1 answer
112 views

Infinite 2D block world chunk system

I am coding an infinite 2D block world chunk system for fun. I would like to improve performance, but I'm not that worried. Game.py ...
coder's user avatar
  • 235
2 votes
2 answers
874 views

How can I get my CPU Utilization Down? PYGAME PROJECT

I get 25% CPU usage on this simple project. I hope it's okay if I just post the whole thing. It probably something to do with the rendering code. It's definitely the project though, my fans get loud, ...
DizzyDazzo12's user avatar
4 votes
1 answer
375 views

2D Minecraft - infinite chunk system

I am making a 2d minecraft clone for a hobby. Here is my code: 2D_MC.py: ...
coder's user avatar
  • 189
5 votes
1 answer
291 views

2d minecraft with infinite chunk system

I've made a python game called 2d minecraft (guess where I got the idea) that has an infinite chunk system. I believe the idea I have is alright but my coding is bad and I have tried to improve it as ...
coder's user avatar
  • 189
7 votes
2 answers
501 views

Solar System simulation with real values in Pygame

Inspired by TechWithTim, I built up the solar system including Pluto. I have added a camera feature, zoom feature and displaying information about the selected planet. Zoom in and out using arrow keys,...
RandomCoder59's user avatar
2 votes
2 answers
366 views

Movement and collision function

I just want this code optimized to the max and I don't mind knowing if the optimization is pretty much at the max already or if I am doing movement and collision wrong. My game is a 2d Minecraft style ...
coder's user avatar
  • 189
2 votes
1 answer
391 views

Simulation of sand particle collision

I am making a module that allows you to create sand and simulate it. I have successfully done this, but it runs very slowly. I need this to be able to simulate at least 1000 particles, at a fps higher ...
susthebus's user avatar
5 votes
1 answer
92 views

AI learning to drive (simplistic)

I have done a little program where the goal is trying to teach some cars (red and blue rectangles) to "drive" through genetic algorithm. It works well, and I haven't seen any bugs, but the ...
Clement Genninasca's user avatar
5 votes
2 answers
155 views

Language skill tester using Pygame

I made this little game that tests our language skills. It uses one external module, pinyin, which can be installed via the command prompt command ...
Chocolate's user avatar
  • 1,014
1 vote
1 answer
74 views

Draw-Your-Own-Cards One-file Memory Match Game

I've made a memory match game, where the users can draw each card. When the program is ran, there would be a canvas that allows the user to draw in. When the user is done drawing, they can press ENTER,...
Chocolate's user avatar
  • 1,014
5 votes
2 answers
183 views

Word finder using pygame

I made a word searching app that allows the user to input words into a text box, and parts of the word grid will be highlighted to show the location of the words. The letters of the grid can be edited ...
Chocolate's user avatar
  • 1,014
6 votes
1 answer
2k views

Scan-line algorithm to fill in a triangle

I wrote the following script to fill a Triangle. ...
Apple_Banana's user avatar

15 30 50 per page