Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

c++, sdl - game editor questions

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 leagal4ever   Members   

570
Like
0Likes
Like

Posted 09 June 2012 - 07:17 AM

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




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.