Jump to content
  • Advertisement
Sign in to follow this  
Lord_Jabbercat

2D First Person Shooter

This topic is 4998 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, Could anyone please tell me how I would go about drawing, what the player sees to screen in a 2d FPS? Im using SDL but I have no experience in First person work. Also, Im thinking more dungeon crawl, to Doom! :P Many thanks, Lord Jabbercat~

Share this post


Link to post
Share on other sites
Advertisement
A 2D First-Person shooter would mean that your camera is on the plane that contains all the sprites around you. Therefore, all you have to do is render a horizontal or vertical line (depending on whether it's a top-down or side-scrolling shooter).

Could you explain better what you intend to do, or at least give an example?

Share this post


Link to post
Share on other sites
I think he means a 2.5D game, such as the original Wolfenstein, or a restricted-camera-movement engine such as Doom 2. In that case, read up on raycasting (in the context of game engines) and you'll find a whole bunch of info.

Otherwise, what ToohrVyk said. :)

Share this post


Link to post
Share on other sites
Very sorry, I should have worded my message better! I am intending to write a FPS, but I don't want to get into any of the complicated 3D math, so Im going for 2.5D!

What Im worndering is how I define what the player is looking at. Im pretty sure I can mange "ahead" but it is working out what the player sees every time they turn is my problem. Thank you for your replies, and the link is most helpful.
~Jabbercat

Share this post


Link to post
Share on other sites
Quote:
Original post by Lord_Jabbercat
I don't want to get into any of the complicated 3D math, so Im going for 2.5D!


i'm not really sure if it actualy is easier to do 2.5D (like doom etc), because with full on 3d you can just plug numbers into your favourite 3d API but with 2.5d you're on your own and have to do more calculations yourself.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!