-
Notifications
You must be signed in to change notification settings - Fork 0
Property Editing
Descriptive summary of what the system is and what it does.
Entities (Player and enemies) can be selected and have their properties changed.
List of connecting/parent/subsystems.
Connecting Systems:
Subsystems:
- None
List of related controls.
Mouse Click:
- Opens the property menu for the clicked entity. Works on player and enemies.
Slider:
- Used to change all numeric values for player and enemies, such as jump height and shooting speed.
- Text field can also be used to adjust values.
Dropdown:
- Applies stat presets for the player. Changed properties are applied to a custom preset.
- Also swaps a starting direction between left and right for patrolling enemies.
Checkbox:
- Used to toggle properties such as patrolling enemy restriction or gravity for shooting enemies.
List of known bugs. Be descriptive but keep it brief!
- None.
List of features and descriptions within system.
Property Menu:
- Appears when clicking the player or enemy.
- Allows user to edit entity properties using sliders, dropdown menus or checkboxes.
Name the most important variables, their type, and what their purpose is
-
selectedEntity: Node2D= The currently selected entity by the property menu. -
playerHealth: float= The player's maximum health, which will be reflected and editable in the property menu. -
playerSpeed: float= The player speed, which will be reflected and editable in the property menu. -
playerAcceleration: float= The player acceleration when trying to move in a direction, which will be reflected and editable in the property menu. -
playerDeceleration: float= The player deceleration when trying to slow down, which will be reflected and editable in the property menu. -
playerJumpHeight: float= The player jump height, which will be reflected and editable in the property menu. -
playerAirControl: float= The player air control, which will be reflected and editable in the property menu. -
playerGravity: float= The player's gravity, which will be reflected and editable in the property menu. -
playerCoyoteTime: float= The player coyote time, which will be reflected and editable in the property menu. -
playerSlopeSlowdown: bool= Determines if the player gets slowed down/sped up by moving up and down slopes. -
playerOneways: bool= The player ability to drop through one ways, which will be reflected and editable in the property menu. -
playerDoubleJump: bool= The player ability to double jump, which will be reflected and editable in the property menu. -
playerWallJump: bool= The player ability to wall jump, which will be reflected and editable in the property menu. -
playerWallJumpDecay: bool= The player's wall jumps having decaying speed, which will be reflected and editable in the property menu. -
selectedPreset: Resource= The property file for the selected enemy type. Used to set their sliders to the default values. -
selectedPlayerPreset: Resource= The player movement preset, which is reflected and editable in the property menu.
Name of the most important functions, their parameters, and what they do.
-
func show_menu(resource: Resource) -> void: Displays the property menu with the selected entity's respective UI elements. -
func _on_preset_options_item_selected(index: int) -> void: A signal that sets the player's movement preset to the one indicated by the given index. -
func update_values() -> void: Updates all the player values and enemy property files with the values in the sliders, checkboxes and dropdowns. -
func update_sliders() -> void: Sets all sliders, checkboxes and dropdowns to reflect the current stats of the selected player/enemy. -
func update_custom() -> void: Loads the custom player preset, and also updates it with any new values.
List and description of upcoming work/risks.
Future Work:
Risks:
- None.
A place for miscellaneous notes pertaining to this system.
- None.
Resources
Known Issues
Future Work
Globals
Managers
- Main Menu Manager
- Master Manager
- Camera Manager
- Hotkey Manager
- Import Export Manager
- Audio Manager
- Animation Manager
- PopUp Manager
UI
Managers
- Editor Manager
- Tile Manager
- Entity Manager
- Icon Manager
- Preview Manager
- Tool Manager
- Asset Manager
- Custom Cursor Manager
Tiles & Entities
- Grid Lines
- Preview Line
- Tiles & Entities
- Enemies
- Patrolling Enemy
- Flying Enemy
- Shooting Enemy
- Stationary Enemy
- Moving Platform
- Property Editing
Asset Swapping
UI
Managers
Player