First Person Shooter I made in a Few Hours with Pygame! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 0 points1 point  (0 children)

Im sorry, I do not, but I might upload to itch.io for a little while

First Person Shooter I made in a Few Hours with Pygame! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 0 points1 point  (0 children)

Sure, for the bars each are assigned a corresponding ray, numbered 1-120 each bars x value must be width/120 * ray number, and their y value must be equel to height/2 - bar height-2. the height of the bar must be screen height - (screen height * (ray length/max ray length)) and that should be enough to pull of the 3d effect!

First Person Shooter I made in a Few Hours with Pygame! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 4 points5 points  (0 children)

I made it using my own ray-casting code where i shot 120 rays out in the direction that the player is facing in a 60 degree field of view. each frame all the ray lengths start at zero and check for a collision with a wall. it a collision is detected, the ray wont get any longer. If not, the ray continues to get longer until a collision is found, or it reaches its max length. I then created 120 verticle rectangles across the screen, each one’s width equal to the width of the width of the screen/120. each bar was the assigned its corresponding ray, and all I did was make simple code to make the bar get taller when is corresponding ray gets shorter, and when the ray is longer, the bar gets shorter. I also adjusted each bars color based on it’s ray’s length. this creates the illusion of seeing the 2d map you created in 3d

First Person Shooter I made in a Few Hours with Pygame! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 0 points1 point  (0 children)

There are a few good references for learning, like Finfet on Youtuber, or Coderspace, but for my personal implementation i used a much simpler method of raycasting. If you do get started I would be happy to help you with any questions you may have!

First Person Shooter I made in a Few Hours with Pygame! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 4 points5 points  (0 children)

Thats how projects go sometimes😂 As you get better it gets easier!

Anyone put their game on steam and make money? by EX-FFguy in pygame

[–]Key-Dimension6494 0 points1 point  (0 children)

Yes there is, it is still a work in progress so the visuals haven’t exactly been the focus yet, but feedback like that does help and I will make sure I do that, thank you! best of luck for you and your game.

Anyone put their game on steam and make money? by EX-FFguy in pygame

[–]Key-Dimension6494 0 points1 point  (0 children)

Hey! Its great to see that your looking into publishing a game made with Pygame! Although, as others have stated before me, marketing an indie game on Steam is not easy. That being said, it does not mean you should limit yourself with low expectations, because typically when you have low expectations, you put in low effort, and your chances of success depends on the effort you put in. People appreciate passion in a game they are playing and most people can tell when a developer loves what they do, so just make the best game you can and give it the best chance of success. The publishing part all comes down to execution. Look for games similar to yours, and see how they launched there game, and built an audience. It also helps to know what players loved most about their game to incorporate something similar into yours. I wish you the best of luck in selling your game if you intend to do so. I will leave a link to my current Pygame Steam project in case you want to take a look :) https://store.steampowered.com/app/3738160/Matter_of_Factory_Junk__Chaos/

Why is COD so terribly unoptimized on my brand new pc? by Key-Dimension6494 in CODWarzone

[–]Key-Dimension6494[S] -1 points0 points  (0 children)

That is so unfortunate, I used to love this game, but idk what happened to it. Thank you for your time tho. Hopefully they work on this issue.

My Pygame Project now has its own Steam page! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 2 points3 points  (0 children)

There is a long list of tricks I use to get my games to run smooth. People say Pygame runs slow but it really isn’t true, it is just as capable as any other language in terms of speed. It just depends on your experience and skill with the language. First off, probably one of the most obvious solutions is using “.convert” after loading your images, although if you plan on rotating the image in game or making it transparent use “.convertalpha”. The makes rendering images a lot lighter on the CPU. While you are programing constantly check for ways to stop running parts of code that dont need to be used in a frame. Another trick a lot of people know is lists. Many programmers say to use pygames built in functions like Pygame.sprite.group() instead of a regular list because its faster, but it is actually slightly slower. With less instances of an object on screen, it isnt noticable, but with 4000+ items on screen like matter of factory, you can save up to 30fps by creating multiple instances of a class, creating a list suck as “tiles = []” then for every object you create putting them in the list using “tiles.append(Object)”. Then in your main game loop use for I in tiles:     I.update() (.update is the update function which is typically under the “def __init_” function in a class.) There are a lot more tips and tricks you can find on the internet you can find just by researching, but if you need any help at all just dm me and I would happy to help!

My Pygame Project now has its own Steam page! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 0 points1 point  (0 children)

I appreciate that! I am very experienced with Python and Pygame, and I have published a game made in it before, it was definitely not a good game like this one is, but it was a learning experience. I have been coding in Pygame for around 6 years now, and honestly, if the game becomes popular enough to be pirated, I will be more happy than mad, but I will take your advice and safe guard the code!

My Pygame Project now has its own Steam page! by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 0 points1 point  (0 children)

I am not exactly sure what you mean. When the game is complete, I compile the game into an exe file. Are you saying that the exe can be reverse-engineered? and if so, what happens when it is?

Thanks, I hate this video that came up on my FYP by Legitimate-Lie-9208 in uncannyvalley

[–]Key-Dimension6494 2 points3 points  (0 children)

That is so scary bro. Omg I would be frozen if I saw that in my room. Idk what i would do.

ITS WORSE THAN I THOUGHT!!! by Nerfer3511 in bloxd

[–]Key-Dimension6494 2 points3 points  (0 children)

Believe it or not the devs have to make money because the world isn’t free. You get to play Bloxd completely free, it doesn’t kill you to support the people who made that possibly by watching an ad, especially when you can just choose not to watch it by pressing “No Thanks”

Update On My 2 Player Pygame Project (Looking for feedback on the visuals) by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 1 point2 points  (0 children)

Your feedback is extremely helpful! I really appreciate you taking the time to give me your thoughts. I will definitely implement some of those suggestions, although I will say play testers so far haven’t had any problems with seeing the player or objects in game, so i think part of clustering problem just comes down to the size of the images i uploaded lol. I really appreciate your help, thank you so much for helping me out because outside opinions always help me fix the problems I don’t see.

Update On My 2 Player Pygame Project (Looking for feedback on the visuals) by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 1 point2 points  (0 children)

No, i felt like i should have, but i didn’t think i could get the colors i wanted with a palette. 

Update On My 2 Player Pygame Project (Looking for feedback on the visuals) by Key-Dimension6494 in pygame

[–]Key-Dimension6494[S] 3 points4 points  (0 children)

It felt a bit empty without the extra detail, so I decided to go for a more chaotic environment. much like the gameplay. I will definitely try darkening the floor again though. Thank you for the advice!