Hey everyone! I've recently dived into Python and created my first project – a custom crosshair overlay for FPS games. I was frustrated with the limited crosshair options in games and the pricey apps that offer custom ones, so I decided to make my own solution. The overlay uses a 100x100 PNG image with a transparent background, allowing you to use any custom crosshair you can whip up in paint. I'm still learning, so I'd really appreciate it if anyone could take a look at my code and provide a review. Also, if there are any concerns about this potentially causing a ban in-game, I'd love to hear about it!
5 Answers
You might want to consider using an SVG file instead of a PNG. SVGs scale better and won’t pixelate like PNGs do. Might help with the visual quality!
Looks like a cool project! Just a heads-up, it only works in windowed fullscreen mode, not full-screen exclusive, which could be a limitation. But keep it up!
Your project's impressive for a first try! Here are a few pointers:
1. Consider switching to SVG for your images.
2. Think about enhancing your README with images, so users know what your app does. Adding clearer instructions and headers will help too.
3. For readability, separate classes into different files instead of one script. Also, adding comments in your code will really help when you revisit it later. And yes, you might want to implement better error handling for file operations. Overall, great job!
Hey, nice work on your first project! Just a few tips: try using pathlib instead of os for file paths, and remember to keep your type hints consistent. These small changes can really make your code cleaner!
What exactly does your code do? I'm a bit confused about its purpose.
Thanks for the tips! I've switched to pathlib.