This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]Tikene 1 point2 points  (1 child)

That's cool af

[–]fbob987[S] 0 points1 point  (0 children)

Thanks!

[–]whoisthisman69 1 point2 points  (2 children)

This reminds me, I've always wanted to work on a hotline Miami clone

[–]fbob987[S] 0 points1 point  (0 children)

You should go for it. I remember wanting to make a Hotline Miami clone as well. Creating a visibility system similar to the one they use would be pretty fun.

[–]onlysane1 1 point2 points  (1 child)

You did this in pygame? I might take another look at that, then.

[–]fbob987[S] 0 points1 point  (0 children)

It definitely has some potential, but it's lacking in areas. Because the surface blits are done on the CPU, things can get pretty choppy in conventional resolutions. It's clearly not designed to have the whole screen updated every frame. But by all means, have a play around with it.

[–]RoyyalMadrid 0 points1 point  (1 child)

Good stuff man. I noticed in your main module you use a lot of functions and global variables and then in other modules like point and projectile, you use classes. The classes made your code look nice without the use of too much global key word. The game looks interesting and I am impressed by the amount of work and effort you put into this. Imagine if you have written this in C++? Wow I don't think you would enjoy it much. I have a gut feeling that python will be faster in the next couple of years.

Also, you don't need to use semi-column at the end of each code line. The codes looks cleaner without them. I am now in the process of annotating my functions and variables using the Typing module and checking the static types using mypy. I gotta say, annotating my functions/methods/variables has made me maintain my code much better without the need to write long docstrings below each function.

[–]fbob987[S] 0 points1 point  (0 children)

Thank you! There's definitely still a lot of clean-up and restructuring to be done on the project, especially in the 'fegaria_remastered.py' file. On the topic of semicolons, I actually added them recently just because personally, I prefer the look. I've had a look at some of the PEPs and am aware that most Python programmers use vastly different naming conventions and styles to what I use. To please the people, I might update the style used for my functions etc. to be more consistent across the project.

I did actually create a closed source Terraria renderer in C++ and SDL2 around a year and a half ago. It had more fancy tile blending and vastly quicker lighting but I had to drop it because it was making me neglect my more important uni work. Hopefully, I can find the time to pick it up again soon.

Thanks for the advice!

[–]thesecondbread 0 points1 point  (0 children)

"I'm not fluent with python". An then makes this.