Skip to content

Barysk/SSFv2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSFv2

I reviewed my code from the end of 2024 today (2025-09-23), and I am glad I am terrified by this code — this means I learned something :)

I placed comments in the code with (datetime~), the most common issues are:

  • Overusing methods where a general-purpose function would be much better.
  • Sometimes I had lines that were too long.
  • Nesting too far - 4 tabs should be the max.
  • Not properly reading the documentation for the library I used.
  • Why no structs?
  • For some reason, I wrote comments that literally describe what the code does.
  • Not using constants.
  • Some variables should be named better.
  • Some functions must be shorter.

I didn’t address logical issues; I am aware of most of them. I addressed them in my current project. One example is the way I was loading and unloading resources - it makes much more sense to have one place for all resources.

If someone ends up here, I hope you can learn from my mistakes.

About

Remake of the SSFv1 game but now in CPP with Raylib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published