Page 1 of 1

LevelEditor in 8 days or less

Posted: Sun Mar 04, 2012 9:24 pm
by YourNerdyJoe
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

Re: LevelEditor in 8 days or less

Posted: Mon Mar 05, 2012 8:37 am
by YourNerdyJoe
Here are the screenshots that I promised last night.
Enjoy!

Re: LevelEditor in 8 days or less

Posted: Mon Mar 05, 2012 2:30 pm
by lalacomun
Awsome work!! ;) waitinf for more stuff!

Re: LevelEditor in 8 days or less

Posted: Mon Mar 05, 2012 9:31 pm
by YourNerdyJoe
Day 3

Today I didn't feel to well because I had an allergic reaction to an antibiotic I've been taking. Had a slight fever and a massive itch. However I was still able to start on the objects. The dialog box for adding new types of objects is almost done and then I just have to make it so you can place the objects in the level. Hopefully I'll feel better tomorrow so I can get all of this done.

Re: LevelEditor in 8 days or less

Posted: Tue Mar 06, 2012 9:45 pm
by YourNerdyJoe
Day 4

Today I had a ton of bugs popping up everywhere. So far I've solved all of them except for one where the preview for the object you're creating doesn't draw.
The dialog box that I created is going to add that object to a QListWidget. What I'll do is add a class that derives from a QListWidgetItem that also contains a pointer to a type of object. This way I can easily add whatever type of object is selected. And now when I delete it I don't have to worry about deleting something from a vector and most of my objects now looking at whatever the next item in the list is.

EDIT: Ignore what I said about the QListWidgetItem. It gives a compile error.

Re: LevelEditor in 8 days or less

Posted: Thu Mar 08, 2012 9:20 pm
by YourNerdyJoe
Days 5 & 6

Almost done with the objects. So far you can create new types of objects which get added to QListWidget And as far as I can tell the files save and load correctly. I just have to get it so you can place the objects in the level and make some things a little nicer and then it's all done and ready to submit. I'll post some more screenshots when I'm done with this which will hopefully be tomorrow.

Re: LevelEditor in 8 days or less

Posted: Sat Mar 10, 2012 11:00 pm
by YourNerdyJoe
Days 7 & 8

The LevelEditor is done!!!!!
I not going to show it off until tomorrow because I want to get some graphics done that I could use for objects.

Re: LevelEditor in 8 days or less

Posted: Sun Mar 11, 2012 10:50 am
by superLED
Looking forward to see the result :D

Re: LevelEditor in 8 days or less

Posted: Sun Mar 11, 2012 9:13 pm
by YourNerdyJoe
Day 9

-Bug fixes
-Original art
-DONE! :)
doneleveleditora.PNG
Finished!!
(214.81 KiB) Not downloaded yet
My game can't load objects yet so unforunately I can't show that off :(

List o' Features:
Right-click + drag to fill the area w/ tiles
Run the game from within the editor
Place/delete objects
etc
I think you can see the rest in the screenshots

EDIT: I forgot to add the sprite I spent so much time making
Day 9

-Bug fixes
-Original art
-DONE! :)
doneleveleditora.PNG
Finished!!
(214.81 KiB) Not downloaded yet
My game can't load objects yet so unforunately I can't show that off :(

List o' Features:
Right-click + drag to fill the area w/ tiles
Run the game from within the editor
Place/delete objects
etc
I think you can see the rest in the screenshots

EDIT: I forgot to add the sprite I spent so much time making
Forgot to add my guy
Forgot to add my guy
mysprite.PNG (57.43 KiB) Viewed 2959 times