Im using Code::Blocks, i int the window, and did everything, but i just dont understand how to load Maps, and get it to load otherfiles......
can someone tell me how to load maps, and how to get it to load files...
Like if i have start_menu.cpp, and i made a file called game_menu.cpp. How would i get start_menu to load game_menu?
What?
I think you're trying to make a game, and that seems pretty advanced...
youtube.com/antirtfm
Are you talking about the Source SDK?
[QUOTE=Xeon06;16168925]Are you talking about the Source SDK?[/QUOTE]
hell no, wow.....look at the discription, and learn to read....
im not designing a game, im just wanna know the commands to load a map......
also im not new to programming, i just havn't learned everything yet
[QUOTE=mikehadley;16184683]hell no, wow.....look at the discription, and learn to read....
im not designing a game, im just wanna know the commands to load a map......[/QUOTE]
Obvious troll
[QUOTE=mikehadley;16184683]hell no, wow.....look at the discription, and learn to read....
im not designing a game, im just wanna know the commands to load a map......
also im not new to programming, i just havn't learned everything yet[/QUOTE]Trust me, you are new to programming. For one you don't seem to be using the right terms for your problem. First you might want to clarify what you consider a "map". Do you mean a game map? A class called map? What exactly do you mean.
Judging by:
[quote]
Im using Code::Blocks, i int the window, and did everything, but i just dont understand how to load Maps, and get it to load otherfiles......
can someone tell me how to load maps, and how to get it to load files...
Like if i have start_menu.cpp, and i made a file called game_menu.cpp. How would i get start_menu to load game_menu?
[/quote]
I am going to assume that you are trying to get start_menu.cpp to see the classes/declariations you have in game_menu.cpp. If I am correct then the standard C++ way to do this is with a statement known as "#include" and files known as headers (.h). The idea is you create a file say called game_menu.h that looks like this
[cpp]
#ifndef GAME_MENU_H
#define GAME_MENU_H
class game_menu
{
public:
int somearg;
void someFunction();
};
#endif
[/cpp]
This is known as a "header" file, you can then type #include "game_menu.h" wherever you want and it will be able to use the class game_menu. However you also need a definition for the functions in the game_menu class, the actual code. So for example if someFunction() set somearg to 5 you would create another file called "game_menu.cpp" with code that looks like this
[cpp]
#include "game_menu.h"
void game_menu::someFunction()
{
somearg = 5;
}
[/cpp]
Now lets assume that start_menu.cpp contains your main() function. It might look something like this
[cpp]
#include <iostream>
#include "game_menu.h"
int main(int argc, char** argv)
{
game_menu myMenu;
myMenu.someFunction();
std::cout << myMenu.somearg << std::endl;
return 0;
}
[/cpp]
This would print "5", hopefully this helps somewhat. Or have I missed the point entirely?
[url=http://www.microsoft.com/express/vb/Default.aspx]This might be more down your street.[/url]
It seems from the way you worded your question you aren't really sure what you're talking about. Are you trying to run before you can walk?
[QUOTE=CarlBooth;16199920][url=http://www.microsoft.com/express/vb/Default.aspx]This might be more down your street.[/url]
It seems from the way you worded your question you aren't really sure what you're talking about. Are you trying to run before you can walk?[/QUOTE]
Even though you're right, i would NEVER reccommend vb as the starter language. If you're just learning, C# is gonna do fine.
[QUOTE=mastersrp;16200495]Even though you're right, i would NEVER reccommend vb as the starter language. If you're just learning, C# is gonna do fine.[/QUOTE]
everyone started with VB, dont lie
[QUOTE=efeX;16202122]everyone started with VB, dont lie[/QUOTE]
If there's irony in there, I don't sense it. But I never even considered VB.
Sorry, you need to Log In to post a reply to this thread.