-
Notifications
You must be signed in to change notification settings - Fork 0
Add project template without default state #8
Comments
Another option is to add the option to type a state name when creating the project. |
I'm thinking :)
So... I want to do 1. I'll do it ASAP. |
This is a start of "New Unit..." option, will also help with eugeneloza/castle-editor-tutorial#8
Adding new units, with optional new state, is almost finished on https://github.com/castle-engine/castle-engine/tree/new-code-features-in-editor branch. I will let here know when it is finished :) Note that it will address only 1 half of this issue ("adding new state"). It will not address the other half ("we want to remove the main state added initially"). Right now, I hesitate how/if to address it.
|
Adding new units (including adding new states) is now merged into CGE master. This is the draft news announcing them (not publicly announced yet; I may decide to first go with TUIState rename, and then actually update all examples; for now only 4 templates are actually updated to follow new conventions mentioned below): """" New Code options in the editor:Menu "Code":
Most of the new options are rather straightforward, but 2 require following certain conventions to make them work. You may want to adjust your existing projects to follow these conventions (nothing bad happens if you don't, these conventions are only necessary to allow editor to perform these operations automatically; they have 0 effect on the actual running game code):
The second pair delimits state creation lines (typically in Application.OnInitialize call) and may look like:
Of course all our templates/examples have been updated to follow these conventions. |
Thinking about how to simplify the notion "we want to remove the main state added initially" in tutorial: I'm leaning toward doing nothing in CGE about it for now. I have here some ideas, but they either feel incomplete/inconsistent in some way (asking user for new state name at "empty" template) or would be a lot of work just for this simple thing (window to "remove states" or "rename states" etc.). My proposition to simplify this part of the tutorial:
Unassigning myself. Hopefully what I did now is enough :) I'm leaving the issue open for @eugeneloza to update the tutorial text to simplify it, using latest CGE advancements :) |
@michaliskambi I'm still thinking about that. And I think we understand the name "Empty" differently - for me it's an "Empty project" (so the presence of the state is a little surprise), and for you (in my opnion) it's an "Empty state" - project with one empty state. When I realized it, I see two new possible solutions:
|
I have a problem with AD 1 and AD 2 admittedly -- because they create a project that is a non-obvious for a newcomer. Having a version of a project without any state means that a new person may struggle "what do I do with this", not knowing that the most advised sensible way forward is to click "New Unit With State" and we didn't show it just because we didn't know if the name I guess it's because I treat existing templates not only as "good starting points" but also "suitable points to start learning about the engine". I see the problem with trying here to "hit 2 birds with one stone"... but I'm not ready to resign from this. I mean, people will use this approach when trying to learn the engine ("I will not read documentation, however good it is, let me first just try clicking around in this editor and see what I can do."). New Unity projects also generally come with some scene (or maybe they open an unsaved scene by default?). |
OK, another idea: So maybe when creating a new empty project, immediately pop up the I also believe that a user who wants to learn the engine will start with a 2d or 3d game template. BTW. I also think that on editor main window we should add "Open example" button with easy way to open examples (list of them). Documentation/Tutorials link also should be there. I think that would be a greater convenience for newcomers than templates. |
Maybe the lack of "Open examples" makes you hesitant about templates. ;) |
Displaying the "Create new state" doesn't feel like best solution -- as we'd need a popup without "cancel" button, which is bad UX :) "Open examples" is something we want, but this opens another large set of questions :) We'd like to show anyway 4 most basic examples (empty, 3d, 2d etc.) :) and allow user to use them as a starting point -- which means that difference "templates" vs "basic examples" is blurred anyway. I'm leaning now most toward a special edit box "Name of new state" for "Empty". |
Done! @and3md convinced me this is an important feature :) The "Main State Name" is now configurable in the "New Project" window for "Empty" and "3D model viewer" templates ("3D model viewer" configurability is just an extra). |
Unassigning myself, leaving open so that @eugeneloza can hopefully now remove a lot of tutorial text :) Just create a "New Project" and it should be in a much more ready-to-use-state now. |
As with folders, we need a template without creating a default state. I think it's hard to come up with a name for the state that will be appropriate. Requiring the user to "clean up" an empty project right after creating it, in my opinion, means that we need a really empty project template. Such a template would definitely be useful for tutorials and advanced users. Perhaps not a separate template, but an option displayed when creating or selecting
Empty
template.How many things user need do presents 4.1 Section of tutorial. I think that it can be deleted if we add such template or option to not create default state.
The text was updated successfully, but these errors were encountered: