Jump to content

Building a game / game engine, and winging it as i go along


ChristianM26
 Share

Recommended Posts

I'm working on a game engine and winging it as i go along, now i realize this leaves me open for flack from the more seasoned programmars here, but i figured it best to start somewear and go on the advice that people can offer. And if they can provide test code, it will give me something to go on, an encentive. I've started work on the engine but i've hit a snag.

 

#include<iostream>
using namespace std;
int main()
{
/*Initializes the main world, before loading entities, physics, etc...*/
int WORLD_MAIN;
/*Initializes the default physics designed for the game*/
int INITIALIZE_PHYSICS;
/*Initializes the environment, sounds, lights, wind, water splashing, etc..*/
int INITIALIZE_ENVIRONMENT;
/*Initializes the world, after checking to makesure everything is in it's default place*/
int INITIALIZE_WORLD;
/*Initializes the shaders in the world*/
int INITIALIZE_SHADERS;
/*Initializes the scenery, after first initializing world_main, physics, environment, world, shaders, then scenery.*/
int INITIALIZE_SCENERY;
/*Initializes the camera in the game*/
int INITIALIZE_CAMERA;
/*Initializes the game sound and audio in the game*/
int INITIALIZE_AUDIO;


/*The idea for this part of the code, is to create a checker. Which checks through WORLD_MAIN for any errors
It's also the first file to be initialized when executing. So this line of code might be edited to fit it's purpose*/
cout << "This may take a few minutes, please be patient\n";
cin >> WORLD_MAIN;
cin.ignore();
cout << "Ready!" << WORLD_MAIN; << "\n";
cin.get();
}

 

This code more specifically.

/*The idea for this part of the code, is to create a checker. Which checks through WORLD_MAIN for any errors
It's also the first file to be initialized when executing. So this line of code might be edited to fit it's purpose*/
cout << "This may take a few minutes, please be patient\n";
cin >> WORLD_MAIN;
cin.ignore();
cout << "Ready!" << WORLD_MAIN; << "\n";
cin.get();

 

The idea behind that specific line of code, is to create an initializer. That checks to see if all the variables are set to their default setting. I think what I'm doing currently is only setting the code up to paste some text to the command screen, this code will be changed if I'm forgetting some variables or integers.

 

image2.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...