Sign in to follow this  
Lord_Jabbercat

2D First Person Shooter

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this