LevelEditor in 8 days or less
Posted: Sun Mar 04, 2012 9:24 pm
Sooooooooooooo.....
My school's computer club decided to take part in this year's STEM challenge. This is basically a game developement competition. However everyone is using something like gamemaker . I'm not a big fan of gamemaker so I was going to make an epic game in c++. For the first time I started making a game with a component system. This is when things got very very bad. I screwed it up by trying to put the components into linked lists and the code just got messy. So stared rewriting it the right way when I realized that the deadline was about 10 days away(3/12). So for now I said f**k it and now I'm just focusing on the Level Editor. And right here is where I'll be posting any progress day by day til I'm finished.
Day 1
Yesterday was officially Day 1. Got very little done that day. All you could do was place tiles on the screen. You couldn't even save or open a file yet. Although I did make it so you could right click and drag to fill that area with the selected tile. I copied that part from an old map editor that I made a while back and fixed the bugs that had.
Day 2
Today is when I got a TON of stuff done with it. You can finally save, open and make new levels, change the maps width and height and even add a Lua Script to the level. Then I finished what I thought would be done tomorrow which was allowing you to run the game from within the editor. All you have to do is set the path to it and press CTLR+R. I didn't feel like learning how to use Qt's QProcess so I just called ShellExecuteA to get the job done. Using this same method I made it so you can view the level's lua script in notepad as well as the debug.txt that the engine outputs.
Tomorrow morning I'll post some screenshots and if you have any questions on how something was implemented I'll be happy to help.
TO DO: add objects
My school's computer club decided to take part in this year's STEM challenge. This is basically a game developement competition. However everyone is using something like gamemaker . I'm not a big fan of gamemaker so I was going to make an epic game in c++. For the first time I started making a game with a component system. This is when things got very very bad. I screwed it up by trying to put the components into linked lists and the code just got messy. So stared rewriting it the right way when I realized that the deadline was about 10 days away(3/12). So for now I said f**k it and now I'm just focusing on the Level Editor. And right here is where I'll be posting any progress day by day til I'm finished.
Day 1
Yesterday was officially Day 1. Got very little done that day. All you could do was place tiles on the screen. You couldn't even save or open a file yet. Although I did make it so you could right click and drag to fill that area with the selected tile. I copied that part from an old map editor that I made a while back and fixed the bugs that had.
Day 2
Today is when I got a TON of stuff done with it. You can finally save, open and make new levels, change the maps width and height and even add a Lua Script to the level. Then I finished what I thought would be done tomorrow which was allowing you to run the game from within the editor. All you have to do is set the path to it and press CTLR+R. I didn't feel like learning how to use Qt's QProcess so I just called ShellExecuteA to get the job done. Using this same method I made it so you can view the level's lua script in notepad as well as the debug.txt that the engine outputs.
Tomorrow morning I'll post some screenshots and if you have any questions on how something was implemented I'll be happy to help.
TO DO: add objects