Jump to content

  • Log In with Google      Sign In   
  • Create Account

How do you make an easy level builder?


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
10 replies to this topic

#1 mk.jr.fan   Members   -  Reputation: 536

Like
0Likes
Like

Posted 19 July 2013 - 09:32 PM

Hi! I've been working on my sidescroller space ship shooter (in java) for about a month now and I have the basic components down so far (player, enemies, ect.), but one thing that I have trouble making is an easier level/map builder. Right now I am using a text map editor, but because the size of my game window the text editor gets pretty large (basically 50 lines down and 3,000 lines across).

 

Is there any better or efficient way to make a level builder instead of using just a text map? I haven't put in many of the sprites in for the enemies or players just mostly got the mechanics down.

 

Thank You for any help!



Sponsor:

#2 Ashaman73   Crossbones+   -  Reputation: 7407

Like
2Likes
Like

Posted 20 July 2013 - 12:05 AM

Best to use an existing, free map editor smile.png

e.g. tiled



#3 mk.jr.fan   Members   -  Reputation: 536

Like
0Likes
Like

Posted 20 July 2013 - 06:24 AM

Is it going to be easy to implement into an existing game?

 

 

EDIT: Actually after having a brief look at the game im not sure if this will help me because in this side scrollershooter the map is basically the only thing moving while the player can move only up and down. Also I would need to place enemies which I'm not sure if this program will do that.


Edited by mk.jr.fan, 20 July 2013 - 09:15 AM.


#4 Goran Milovanovic   Members   -  Reputation: 1104

Like
0Likes
Like

Posted 20 July 2013 - 11:10 PM

You could extend the game itself into a level editor. It's not going to be trivial, but most of the existing code could probably be utilized to support various editing features.

 

For example: Your "scrolling" code can be modified to respond to mouse movements, and you can write some code to spawn enemy ships wherever you click. Then, you can save the position of every object to a file, or you can start playing the current editor session, just to test things out.

 

As I said, it's not going to be trivial, but time invested in good tools is time well spent.


+---------------------------------------------------------------------+

| Game Dev video tutorials  ->   http://www.youtube.com/goranmilovano |
+---------------------------------------------------------------------+

#5 mk.jr.fan   Members   -  Reputation: 536

Like
0Likes
Like

Posted 21 July 2013 - 07:32 AM

Actually that's a pretty interesting idea! I think I will consider doing something like this later. Thank you!



#6 markr   Crossbones+   -  Reputation: 1653

Like
-1Likes
Like

Posted 21 July 2013 - 03:19 PM

Continue to use a text-file, but instead of having 3000 columns and 50 rows, have 50 columns and 3000 rows. Text editors work much better with this kind of file, you can simply rotate the data through 90 degrees.



#7 EarthBanana   Members   -  Reputation: 901

Like
0Likes
Like

Posted 21 July 2013 - 06:42 PM

what language? if c++ qt offers some good solutions but it is an entire project in and of itself to make an editor. We are using the qt framework for the GUI portion of the 3d map editor we are making now



#8 mk.jr.fan   Members   -  Reputation: 536

Like
0Likes
Like

Posted 21 July 2013 - 08:05 PM

Continue to use a text-file, but instead of having 3000 columns and 50 rows, have 50 columns and 3000 rows. Text editors work much better with this kind of file, you can simply rotate the data through 90 degrees.

I might try that if my own editor doesn't workout. It will be a good backup. 

 

what language? if c++ qt offers some good solutions but it is an entire project in and of itself to make an editor. We are using the qt framework for the GUI portion of the 3d map editor we are making now

I'm using java. Do you know of anything that works with that?



#9 EarthBanana   Members   -  Reputation: 901

Like
0Likes
Like

Posted 21 July 2013 - 10:05 PM


I'm using java. Do you know of anything that works with that?

 

http://qt-jambi.org/

 

Here's a forum post that talks about different java GUI options

 

http://stackoverflow.com/questions/7358775/java-gui-frameworks-what-to-choose-swing-swt-awt-swingx-jgoodies-javafx

 



#10 Krohm   Crossbones+   -  Reputation: 3109

Like
0Likes
Like

Posted 22 July 2013 - 01:08 AM

Wait wait wait.

Screw JavaFX in particular. It's broken big way.

For those kind of apps, I strongly suggest to learn HTML5+JavaScript. I predict it will successfully cannibalize most GUI-driven apps. For as much as I dislike JS: it's very successful.



#11 mk.jr.fan   Members   -  Reputation: 536

Like
0Likes
Like

Posted 22 July 2013 - 12:26 PM

What's wrong with javaFX?






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.



PARTNERS