Skip to content

Feature Request: Add functionality to the “New…” button in the Home screen #32

Description

@Osman-Kahraman

Currently, the New... button in the Home screen UI appears clickable but does not trigger any action. This means users cannot create a new game/project directly from the engine interface.

Image

At the moment, only the Open... and Open Recent... functionalities works, so starting a fresh project workflow is missing entirely.

Implement functionality for the New... button that allows users to:

  • Create a new project/game directory
  • Initialize the required engine structure automatically
  • Generate starter files such as:
    • main.py
    • asset folders
    • map folders
    • configuration files
  • Automatically open the newly created project afterward

A simple project creation dialog would also improve usability.


Currently, the only workaround is manually creating folders/files and then opening them through the Open... option.

Another alternative could be:

  • a project creation wizard
  • template-based project generation
  • cloning a default starter project internally

Additional context
Inside:

game_engine/ui/home.py

the New... button exists here:

UI.window("new_button", (2, 2), (110, 20), (50, 50, 50), "button", win_name="top_navbar_action")

However, its click handler currently does nothing:

if top_navbar_action_surf.item_coords == (2, 2):
    pass

This suggests the UI element already exists visually, but the feature has not yet been implemented.

Metadata

Metadata

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions