WILL THIS WORK?
If i use the #include statement, will i be abke to just put regular backgrounds in my first person mystesque game? All help appreciated.
I don''t understand what you are asking.
You cannot do something like #include
#include is meant only for header files...
You cannot do something like #include
#include is meant only for header files...
My first person game is animation. I want to start a new game with actual background. I''m aware that #include is a header file, but you can specify the drive anyway. So will it work?
yes ofcourse you can
heres how:
there! easy as that
heres how:
#include backgroundviod Main{background))
there! easy as that
as if it is!
i''ve been programming for over 50 years
whats it mean anyway?
i''ve been programming for over 50 years
whats it mean anyway?
Quantum:
I knew I was doing something wrong all the time Your way is so ... simple ... I always worry about bpp here, fullscreen there ... oh well, you never stop learning
reverie:
OK, a series of things (since I''m nice and you seem to be new to this board):
1. Don''t post things with CAPS ... it''s annoying to read and will piss several people off (they''ll never even read your post)
2. #include is used only for header files. It has nothing to do with what appears on the screen!!
3. You should do some C/C++ tutorials first, before doing any serious graphics programming. This ain''t as easy as it looks. Just, because you are able to compile "Hello World!" doesn''t mean *you* have done anything. Experiment with the simple programs and modify them, to learn and get experience with the programming language.
4. Then, when you have written a few classes, which do something useful, you should find some DirectX or OpenGL tutorials and try compiling these ... modify some stuff to get a feel for things.
Alternatively, you can look into regular windows programming and the GDI.
I don''t want to be mean by saying this, but you don''t seem ''ready'' to start graphics programming yet. Don''t get discouraged by this, though. We all started programming. The above is probably the best advice you''ll get.
I knew I was doing something wrong all the time Your way is so ... simple ... I always worry about bpp here, fullscreen there ... oh well, you never stop learning
reverie:
OK, a series of things (since I''m nice and you seem to be new to this board):
1. Don''t post things with CAPS ... it''s annoying to read and will piss several people off (they''ll never even read your post)
2. #include is used only for header files. It has nothing to do with what appears on the screen!!
3. You should do some C/C++ tutorials first, before doing any serious graphics programming. This ain''t as easy as it looks. Just, because you are able to compile "Hello World!" doesn''t mean *you* have done anything. Experiment with the simple programs and modify them, to learn and get experience with the programming language.
4. Then, when you have written a few classes, which do something useful, you should find some DirectX or OpenGL tutorials and try compiling these ... modify some stuff to get a feel for things.
Alternatively, you can look into regular windows programming and the GDI.
I don''t want to be mean by saying this, but you don''t seem ''ready'' to start graphics programming yet. Don''t get discouraged by this, though. We all started programming. The above is probably the best advice you''ll get.
dood you have a ways to go yet....
first you set up your video mode
then you set up memory ( usually called a surface by most game makers)
then load the bitmap (background) into the surface
then blit the surface to the screen surface ( oops did i forget to mention about setting that up to...?
its a pretty intense little feature there for a beginner. dood I would start out with a smaller task and then growing. check out some of the c++ books, and then some of the graphics API books....
to Code, or Not To Code
first you set up your video mode
then you set up memory ( usually called a surface by most game makers)
then load the bitmap (background) into the surface
then blit the surface to the screen surface ( oops did i forget to mention about setting that up to...?
its a pretty intense little feature there for a beginner. dood I would start out with a smaller task and then growing. check out some of the c++ books, and then some of the graphics API books....
to Code, or Not To Code
to Code, or Not To Code
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement