Jump to content
  • Advertisement
Sign in to follow this  
pheonix2468

Need help starting an fps

This topic is 4873 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

OK ill be honest im not that good at codeing. Im pretty new and i want to make an fps, i know how to do quads and stuff so i can make the levels and stuff but i need help to get started on keyboard interaction (say W,S,A,D) for movement and the mouse to look around. I have experience with basic4gl wich is a bit like c++ but with some differences like (int(in c++) is dim(in basic4gl)) but i lost most of my code for that.PLZ could you guys help me as i ant to get started in fps's.

Share this post


Link to post
Share on other sites
Advertisement
Erm, you have no chance what so ever of creating a FPS if you are "not that good at codeing" (which is coding btw :-P)

i suggest you keep on programming, do some smaller projects just to get a feel for openGL and perfect your C++ skills, then try and tackle a FPS.

hope that helps
-Dan

Share this post


Link to post
Share on other sites
I don't meen to be rough or to break down your dreams... but Ademan555 is completely right.

Doing an FPS is a complete overkill for someone working alone, and with little coding skills. Start small. Try to make small demo programs, learning something new with everyone of them... just gathering knowledge and learning.

And, by the way, ask yourself why do you want to make an FPS. If you want to make an FPS because that's the type of games you prefer, then i would point you to making mods. The advantage of making mods is that the engine already exists, you change the content of the game. And i must say that just making new contents for an already existing engine is a lot of work by itself. Now imagine making everything by yourself.
If, by the other side, you want to make an FPS because you are curious about the technology and techniques behind it, than stick to Ademan555 advice and start with small projects.

Best of lucks on whatever path that lies before you!

Share this post


Link to post
Share on other sites
Thanks for the advice. Although before i came back to this i had a go at trying to convert an fps from another language basic4gl, it's pretty simple, a coridoor wich you can move arround in by useing the arrow keys and i changed them to W, S, A and D. But whilst converting dev c++ says that cos and sin aren't declared (i used cosd and sind for movement)like this;
if (keys['A']);
{
camx = camx + 1;
}
if (keys['D']);
{
camx = camx - 1;
}
if (keys['W']);
{
camx = camx - sin (camang) * .2;
camz = camz - cos (camang) * .2;

}
if (keys['S']);
{
camx = camx + sin (camang) * .2;
camz = camz + cos (camang) * .2;
}
is there a file that needs to be included for me to use these or does c++ use something different. You're help would be appreciated, though if i've gone about it wrong, could you tell me which direction i should be going in either carry on and look for help in the tutorials and places or should i forget about an fps and start on something alot easier.

Share this post


Link to post
Share on other sites
Thanks it compiled and ran. i probably will carry on with it in parts as im learning and hopefully it by the end i would have learned new things and have an fps.

Share this post


Link to post
Share on other sites
For the record, if your using c++, you should include cmath not math.h its the "new standard" way of doing things just like iostream over iostream.h (well kinda, since math is a carry over from the old c days, hence the cmath)

hope that helps,
-Dan

Share this post


Link to post
Share on other sites
i said cmath not cmath.h

double edit: (mispelled edit lol) edit: no disadvantages, and the advantage is being more "correct" and considering it costs you nothing more than typing a different name, you might as well do it

-Dan

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!