Jump to content
  • Advertisement
Sign in to follow this  
leagal4ever

c++, sdl - game editor questions

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

Hello im making my first game editor and have some questions.
1 I have some const and functions like message which is simple cout, collision, openimage, xypos.. which should be accesable in every class and main, how?
2 I make twodimensional vector for storing grid, also im making option for increasing grid if needed. Increasing at botom and right was easy, however up is making problems (its changing camera going up). Im not sure if this code is ok, code should add add vector at first place at 0.


if(map[0][0]){// insert UP
vector<int> tmpvec;
tmpvec.assign(map[0].size(), 0);
map.insert(map.begin(), tmpvec);
}


3 I have two class menu and map, menu have options like new game, save, load . Map class is saving, loading game. Where is better to put onclick logic?

Thanks for answers

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!