LevelEditor in 8 days or less

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

LevelEditor in 8 days or less

Post 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
See that?.....
Exactly
https://yournerdyjoe.github.io/
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

Re: LevelEditor in 8 days or less

Post by YourNerdyJoe »

Here are the screenshots that I promised last night.
Enjoy!
Attachments
editor2.PNG
the game running the current level
(207.16 KiB) Not downloaded yet
editor1.PNG
LevelEditor when it's first opened
(98.42 KiB) Not downloaded yet
See that?.....
Exactly
https://yournerdyjoe.github.io/
User avatar
lalacomun
VS Setup Wizard
VS Setup Wizard
Posts: 114
Joined: Wed Dec 28, 2011 10:18 pm
Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
Programming Language of Choice: C++
Location: Argentina
Contact:

Re: LevelEditor in 8 days or less

Post by lalacomun »

Awsome work!! ;) waitinf for more stuff!
Image
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

Re: LevelEditor in 8 days or less

Post 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.
See that?.....
Exactly
https://yournerdyjoe.github.io/
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

Re: LevelEditor in 8 days or less

Post 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.
See that?.....
Exactly
https://yournerdyjoe.github.io/
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

Re: LevelEditor in 8 days or less

Post 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.
See that?.....
Exactly
https://yournerdyjoe.github.io/
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

Re: LevelEditor in 8 days or less

Post 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.
See that?.....
Exactly
https://yournerdyjoe.github.io/
User avatar
superLED
Chaos Rift Junior
Chaos Rift Junior
Posts: 303
Joined: Sun Nov 21, 2010 10:56 am
Current Project: Engine
Favorite Gaming Platforms: N64
Programming Language of Choice: C++, PHP
Location: Norway

Re: LevelEditor in 8 days or less

Post by superLED »

Looking forward to see the result :D
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

Re: LevelEditor in 8 days or less

Post 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 2962 times
See that?.....
Exactly
https://yournerdyjoe.github.io/
Post Reply