question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Optimize folder structure

See original GitHub issue

Summary

Before releasing v4 we should consider optimizing the folder structure a bit. I propose that we introduce a separation between source code and the duality game engine.

To give a general idea the structure would look like this

root
  Assets (formerly the media folder)
  Source
   Solution.sln
   Launchers
     Gamelauncher
     Gameeditor
   Plugins
     Gameplugin
  Duality
    Data
    Plugins
    rest of the buildoutput....

Duality does use some hardcoded paths so these have to be changed to make this work.

Analysis

  • Simply zipping the duality folder would work for distributing the game.
  • Easier to find the .sln file
  • Easier to ignore certain files with wildcards from source control as files are not mixed together anymore.

EDIT: updated example structure

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Barsonaxcommented, May 29, 2020

I think for now we should keep DualityLauncher and Editor in the root folder as thats much easier to implement. Moving further discussion about this to #828

1reaction
Barsonaxcommented, May 22, 2020

Decided to go with Import as name and keep it in the root folder

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to organize files and folders
1. Establish a clear hierarchical folder structure · 2. Use a consistent naming convention · 3. Add tags · 4. Delete and archive...
Read more >
How to Create a Manageable and Logical Folder Structure
Sometimes people attempt to organize all their files into new, unrelated folders. They feel that their new folder structure must include every ...
Read more >
5 Folder Structure Best Practices To Keep Work Organised
1. Be proactive about creating subfolders. · 2. Name folders with as high a degree of specificity as you can. · 3. Don't...
Read more >
How to build and optimize your file structure
The easiest way to build a successful file structure is, in fact, to not focus on the structure at all. What we need...
Read more >
11 Best Practices for Organizing Your Business Files & ...
An organized file and folder structure can save you and your business hours of frustration searching for information. Here are some best ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found