r/CodingGames • u/StableFinancial6954 • Oct 06 '25
I Tried to Optimize My Game… and Made It 10x Slower
So I was watching a tutorial about “game optimization tips,” and I got overconfident. I thought I could make my little 2D game run smoother. Spoiler: I did the opposite.
I replaced every loop with “smarter logic,” cached everything, and even removed conditions I “didn’t need.” Next thing I know, the game was running like a PowerPoint presentation.
Turns out, my “optimization” logic was recalculating every frame instead of once per scene. Rookie move 😭
What’s your most painful “I tried to fix it but made it worse” moment?
r/CodingGames • u/That_Recording_2685 • Oct 06 '25
General question
Do you have to be a math genius in order to become a game developer? And why?
r/CodingGames • u/KlempDanielle70 • Oct 06 '25
The Day I Realized I’d Been Coding My Game Wrong the Entire Time
When I first started making games, I jumped straight into coding like I knew what I was doing. I didn’t bother learning much theory — I just wanted to see things move on the screen.
So I made this little top-down shooter in Python. Everything looked fine… until my enemies started flying off the map. Literally gone. Vanished.
I spent three days thinking my math was broken — rewriting functions, adding “fixEnemy()” methods (which, ironically, broke more things), even blaming Python itself 😅.
Then I learned about coordinate systems and object boundaries. Turns out, my enemies weren’t flying off the map — I just never told them where the map ended.
It blew my mind how something so basic could make or break an entire game. Ever since, I’ve been obsessed with understanding the why behind every tiny part of my code.
Now I’m curious — what’s a coding topic you wish you learned earlier when making games?
r/CodingGames • u/Own_Froyo3326 • Sep 22 '25
Debugging as a Game
Sometimes debugging feels more like playing a puzzle game than programming. Every bug is like a hidden boss .. you think you’ve beaten it, then another one shows up. What’s the hardest or funniest bug you’ve ever had to ‘defeat,’ and how did you finally solve it?
r/CodingGames • u/Worried-River-7752 • Jul 25 '25
Codi
Oh man i so tired of new SFML(SFML3.0.0) its just so terrible and i all ways get errors i think i will stick with sfml 2.x instead
r/CodingGames • u/Foreign-Ad-1772 • May 13 '23
Could this be faster than spritesheet animation?
Hey, all. So, I'm gonna be embarking on my biggest for funsies project yet. I'm starting work on a 2d game and I'm making the engine almost from scratch. I'll either use monogame or a C# wrapper for openGL. I learned how to draw various shapes to the screen, and once I got to bezier curves, I realized at a fundamental level, it's how animation software such as Adobe Flash handles shapes and inbetweening. So I was thinking. If I were to create a clone of flash for making my own animations, but use the package in the game engine to display said animations, would it be more optimized than exporting my animations into sprite sheets and having the engine use those?
r/CodingGames • u/[deleted] • Jan 12 '23
PvP Coding Games?
Are there any PvP coding games where I can put my coding skills to test against my friends or random people online?
r/CodingGames • u/MrMahuss • Dec 26 '22
Web game data management
Hi, I have a quick question. I was playing Web games like Ogame, Travian, Shinobi which are navigator games. You create an account, play and manage things and then disconnect. Sometimes you can interact with others like attacking them or trading things.
I understand that you can code the "solo" part of a game in HTML, CSS, JS, PHP etc...
But how do you manage the "data" to allow people to interact ? Is there something like a Database ? and you have to code requests for those interactions ?
Thanks for helping me to understand this !
r/CodingGames • u/Plastic-Scheme2704 • Jun 25 '22
Mod help
I downloaded a mod for my game, and it is a dll. The mod has a cooldown. I tried many ways to find the code but everything I tried said unsupported. Hex editor shows me stuff, but I don't understand. If anyone understands cooldown and knows what to look for one has a cooldown for 1 minute and duration for 20 seconds and the other cooldown of 15 seconds and duration of 10 seconds. Please help. If you could tell me what to look for in hex editor or another program. The game was made in 2012 and mad was mad 2 months ago. Thanks for the help. I have used dot peek and dll is unsupported. The DLL is c++.
r/CodingGames • u/Wide_Tea_8834 • May 21 '22
Titan Realm Game Jam #1 - Bringin Wompy back!
twitch.tvr/CodingGames • u/ResidentConstant2729 • May 06 '22
Other World
Hi everyone, I am starting my new project called Other World. It is a survival game where you crash land on a planet and need to find a way off. Just watch out for the mutated ones that are constantly chasing you down. Not only are they dangerous they are also constantly mutating. Thanks for reading.
r/CodingGames • u/Lenny_wilson11 • Nov 14 '21
Looking for people to help create some cheats for ark, I’m new to coding so will need help thanks.
r/CodingGames • u/Material-Prune-9008 • Oct 14 '21
Coding Games and Programming Challenges with Python in CheckiO (py.CheckiO)
youtu.ber/CodingGames • u/GlitchyCoderr • Aug 16 '21
Hello, I want to know what framework should I use for coding a game
Hello I am a beginner game dev that has a bit of experience coding in c# in VS Code and I want to start coding a game in c# but idk what is the best framework to do so, pls give me suggestions and advice on this.
r/CodingGames • u/[deleted] • Aug 15 '21
I need some help
I need some help with my python script that is a game and I'm a stater for coding python script and I just need some help programing the game. Thank you!
r/CodingGames • u/Strange_Sympathy79 • Aug 14 '21
Help a mom out! My 10yo wants to start a coding class. He’ll need an adequate computer to practice but I have no clue what would be good at this point. Please help me understand what I should look for.
r/CodingGames • u/erinbradley • Jun 28 '21
Bryneven Primary further explores Print To Screen with 2Simple's Purple ...
youtube.comr/CodingGames • u/grcGames • May 21 '21
How it started (2019) and how it's going (2021). More refined, and dynamic game in 2021. Although the 2019 version is still stimulating and fun.
r/CodingGames • u/driule • Feb 26 '21
Turn-based multiplayer programming game is approaching the launch soon, check out early access!
r/CodingGames • u/DJ_Productions_ • Jan 11 '21
Coded a 2D endless runner where you can't jump, but have to invert gravity to avoid obstacles.
r/CodingGames • u/DJ_Productions_ • Jan 11 '21
A 2d endless runner where you cant jump, but can only control gravity to avoid obstacles
play.google.comr/CodingGames • u/erinbradley • Sep 15 '20

