Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  how to create GUI game editor  (Read 840 times)
0 Members and 1 Guest are viewing this topic.
Offline pavul

Junior Devvie


Medals: 3
Exp: 4 years



« Posted 2017-07-25 19:00:58 »

hello I would like to create a GUI editor for my game:

have some folder structures, right click and create a sprite, then add the image or animation of the sprite and set all properties according to what I want, I can do that with code ( and I have it like that ), but how to make with UI,
do I have to create the canvas, then how to add dynamically the sprite, I know I can put another panel and there all the properties to change, but how to define colisions between that sprite with other, things like that, I have the idea but I want to realize every thing.
thanks in advance.

its better not know why it works, that know why is not working
Offline Icecore
« Reply #1 - Posted 2017-07-25 20:07:41 »

if you want make all self without extra libraries:
make Gui in Photoshop, Paint etc..
then write every GUi data in some External format like XML, etc..
then load this XML in Game, and generate GUI from it

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Offline Sickan
« Reply #2 - Posted 2017-07-25 22:38:22 »

GUI is one of the great unsolved mysteries of programming. There are a million ways to do them and none of them are that great. WYSIWIG editors are cool for show off but most of them I've found hard code margins into your code meaning that you end up with a layout that looks good on your computer but breaks on any other. Generally developing anything is more frustrating, time-consuming and problematic than it seems when you think about it. I say just hardcode the UI into your game.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline FabulousFellini
« Reply #3 - Posted 2017-07-25 22:39:48 »

GUI is one of the great unsolved mysteries of programming. There are a million ways to do them and none of them are that great. WYSIWIG editors are cool for show off but most of them I've found hard code margins into your code meaning that you end up with a layout that looks good on your computer but breaks on any other. Generally developing anything is more frustrating, time-consuming and problematic than it seems when you think about it. I say just hardcode the UI into your game.

That's what I did, but then again my game is only for desktop so there's no resizing or anything going on. 

-FabulousFellini
www.fabulousfellini.com
Offline tariqbroadnax

Junior Devvie


Medals: 2
Exp: 3 years



« Reply #4 - Posted 2017-07-26 00:01:46 »

I have a decent amount of experience and so you can ask me any questions if you have any.

My best advice:

1. At the highest level, most level editors are a window with menu bar, a pane for viewing and editing your scene, and some pane for selecting entities. Saving and loading and similar stuff is handle in menu items. You might want to also throw tile map editing in there if are doing 2d.

2. If you cannot hardcode entities, which i highly recommend, then create another tool for making entities. This would have a menu bar, list for viewing list of entities, a pane for editing properties like collision and graphics. Save them to a file and load the file in your level editor.

3. In regard to making a properties pane, just create forms. If you've ever registered for a website, then you know what forms are.

4. Copy Copy Copy. There are hundreds if not thousands of guis. If we include websites then there are many more. You'll move a lot faster if you have a model.

5. focus on functionality not appearance

6. Choose a gui framework and stick with it. I am biased and so I will recommend Swing/AWT.  
Offline Stranger
« Reply #5 - Posted 2017-07-26 11:07:27 »

Hi,

if I got you right you wanna make the GUI editor for the only one game.

Even, if you're actually saying about the game engine e.i. the GUI editor for a number of games I'd still advice you not to try to solve all problems at once.

If this editor is the part of your game-play this is the one deal. if you develop it as a tool making your life easier, this is the another.

I biased to join @Sickan and my opinion is: do the games, not the tools.

I just talking about MY experience and I'm slightly regretting about the fact that I spent the big chunk of my time trying to automate automatic automation =).

Some tools had been released, but now nobody needs them.

Don't think I'm frustrated.

I'm currently working on non-game projects and very happy with that.

At the same time my advises are not more than the food for thought.

Me is me and you is you.
 
So I wish you to succed with your plans.

Anton
Offline pavul

Junior Devvie


Medals: 3
Exp: 4 years



« Reply #6 - Posted 2017-07-27 20:11:15 »

thanks man, I will sak u surely I have some idea but I want to be pretty sure about that.

I understand most of what you are pointing, but for example. how to specify how the player sprite will behave if is colliding with another sprite( enemy ), that part is to enter to the code editor and throw code right?,

then what you told me is like:

creatate a window with boardLayout, in the center I have to put the canvas of my game,
 on another panel I can specify to add an image as background( from menu), then the canvas will instance that image and will
put that on the background,
but if I want to add a new sprite ( from menu ), then the canvas will add another sprite instance to it ,and so on, I think that how it should work

its better not know why it works, that know why is not working
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (110 views)
2017-09-30 02:57:34

theagentd (136 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (241 views)
2017-08-02 12:19:43

cybrmynd (240 views)
2017-08-02 12:18:09

Sralse (254 views)
2017-07-25 17:13:48

Archive (864 views)
2017-04-27 17:45:51

buddyBro (1008 views)
2017-04-05 03:38:00

CopyableCougar4 (1568 views)
2017-03-24 15:39:42

theagentd (1373 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!