Jump to content

  • Log In with Google      Sign In   
  • Create Account





Hi hi, everyone, or HelloWorld!

Posted by dmdSpirit, 22 September 2012 · 510 views

starting map editor
Hello everyone!
My name is Stas and I've got a dream. Yeah, right, my dream is to create games, but... There are plenty of reasons why I couldn't get a work of my dream: I'm living in Russia and here are no great gamedev companies, especially the one that would hire a student, who left his univercity after third course and does not have any big projects done. So today I'm working as a programmer, writing Enterprise software.
Enough about me, let's talk about my great super project!... There is no one.
But this is the beginning and I'd like to share this moment with you and I hope to get some support which will help me on this path.
So! I'm starting to write a game level editor tool for my self, using C#. Wait, wait, wait! I know that there are many already written, and that it is common mistake to start gamedev from something like this, not from using unity or like. But I'm gonna try. This is all about it - learning. I want to understand how everything works, I want to create something, that would fit me perfectly.
Everything I'm going to write is to be used for creating a tactical game.
Why C#? Cause I just decided so. I know C++ at a good level, used Java at my work and now I'm using C#, so I though "why not".
What's the idea and how It'll look like. It will have main OpenGl rendering window, object palette, Drag'n'drop functions, map save and load. That's it for begining. Simple? Yeah.
But I've already got some questions. Just after posting this entry I'll go to the forum for the answers, but it'll be great if you will spend some of your time to show me the right way.
-What's the better way to save my entire map?
-Some examples of convenient dragging of an object with a mouse in a 3D space?
-Good way to store resourses like object models and their definitions? I thought about some XML structured base.

Thanks for reading and see you later!




Hi there Stas,

Welcome here and enjoy the gamedev side of programming ;=)
I started with C# and XNA from this website http://www.riemers.net/ its a bit out dated. But you can use some of that code for you questions.
пpивет dmdSpirit!

Welcome to the site! Making tools is not a common mistake by any means, I've been doing this for many years! If anything, I was known for my tool development on private projects. Making your own generic level editor, or world designer allows you to gain a better understanding of how you manage maps, and levels in any game with ease! Not to mention, you could make an Engine directly link with your tool and having something you could re-use over and over again for many projects. Re-inventing the wheel is not bad if you want to learn, or because you feel the need to do it yourself. I've never used Mappy, or any other tool like Mappy in my life to make my own levels and designs when programming my own games.

Saving maps can be done very simply by using 2D Arrays, or by using Vectors. If you wish to load these maps from files later on, you can simply use XML or Text files to load the data, and of course other ways are available.

Dragging an object is nothing more than insuring the object's X, Y, Z (Forward / Backward Position - DEPTH) values equal your Mouse Position (in 3D SPACE). You will be using Vector3, and remember to use float not int! You can control depth by using the mouse wheel, or by making the program move the Z value if you're in a birds eye view, ect...

I wish you the best with your projects!

пока!
Thanks for your comments! It's amazing to get such support here. I appreciate it.
Hi, bwiersma! Thx for the link, I saw some useful things there.
Привет, Black-Rook) You know russian or just google translate?) Thanks for your answers. About moving the object currently I'm thinking about drowing the axis of selected object for the user to pull. But I'm still thinking about using mouse wheel too.
I'm Ukrainian, so I know some Russian, but I'm learning as much everyday as I can. I just never typed my whole paragraph in Russian so other people can at least benefit from reading it.
Answers to your questions:

1) "What's the better way to save my entire map?" Serialization, it's really fast (binary) and you can write your serialization code in like 5 lines.
2) "Some examples of convenient dragging of an object with a mouse in a 3D space?" Raycasting is the way to go. Using an octree would improve the performance.
3) "Good way to store resourses like object models and their definitions? I thought about some XML structured base." Ziplib, binary file or serialization.

December 2014 »

S M T W T F S
 123456
78910111213
14151617181920
21 22 2324252627
28293031   

Recent Entries

PARTNERS