-
Notifications
You must be signed in to change notification settings - Fork 1
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
Level Editor #50
Draft
CollinWoo
wants to merge
18
commits into
menu_screens
Choose a base branch
from
level-editor
base: menu_screens
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Level Editor #50
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This Pull Request is the first step towards implementing a level editor to create
env.json
files using a GUI interface, simplifying the workflow for creating new environments.Changes Made
env.json
file that encapsulates all objects currently available in the game, to make sure the level editor can replicate all current functionalitypygame-gui
library to simplify the workflow for creating layouts/components for GUI elementsrobotouille_config.json
, places them in appropriate categories, and renders images of the objects that can be clicked on to select them. Users can jump between categories by clicking on the tabs at the top, and select an object to place in the grid by selecting its corresponding button.Test Coverage
Testing was performed by running the game using
python main.py
and playtesting the level editor to make sure everything behaves as intended. This included selecting different ingredients from the sidebar and placing them on the grid, verifying objects are registered as being placed in the correct grid coordinate, zooming in and out of the grid, and dragging the grid around the screen.Next Steps
env.json
Related PRs or Issues
This branch is branched off of
menu-screens
and is therefore related to #47 , since both PRs heavily deal with adding new GUI elements.Screenshots
Level Editor