-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Level Editor #269
WIP Level Editor #269
Conversation
@Hume2 We need to figure out a way for the user to play the level. It needs to be saved to a temporary file (maybe somewhere in ~/.supertux2?) and then run from there. How can we run the level if the editor is already running a level? |
@Karkus476 What about ./supertux2/levels/misc/test.stl ? |
@Hume2 Also, I think you should allow right-clicking on objects to bring up a menu which has options like "Delete Object" and "View Object Properties" |
@Karkus476 You can delete the object by using the rubber tool. And for right clicking, I have no idea how to enable them in SuperTux. |
2335e08
to
bddebe0
Compare
88ed7d4
to
68d19d5
Compare
f845a22
to
544bd92
Compare
d219aa0
to
17c84d7
Compare
OK, so the level can be now played in the editor. |
GameObject::save(writer); | ||
writer.write("width", bbox.get_width()); | ||
writer.write("height", bbox.get_height()); | ||
writer.write("diatance_factor", distance_factor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: "diatance_factor". Should be "distance_factor".
Thanks, Tobbi! |
[ci skip]
[ci skip]
bool AddonManager::is_old_addon_enabled() const bool AddonManager::is_from_old_addon(std::string filename) const
It's very in-game and much editor.
48 new classes so far
commits:
Also merge: SuperTux/data#1
Right clicks don't work for some reason, so use ACTION + left click.Update
Now let's focus on bugfixes and merging this request. We can add features even after merging.
Feature freeze! All new features will go after we merge this.
TODO
Less important TODO:
FIXME:
When you create a directiry
./supertux2/levels/<levelset directory>
, it works.It happens only with the newly put objects or objects in addon-levels. Does never happen with some object classes.