UnderwaterApps / overlap2d-runtime-libgdx

Overlap2D - UI and Level Editor libgdx runtime
http://overlap2d.com
Other
170 stars 96 forks source link

Update resource paths #92

Closed Favorlock closed 8 years ago

Favorlock commented 8 years ago

Update ResouceManager and ResourceManagerLoader paths to be consistent with the Overlap2D editor.

azakhary commented 8 years ago

Wait, how was this working before? o_O

Favorlock commented 8 years ago

I was implementing the runtime as described by the wiki and I placed the orig folder within my assets folder and the other files where necessary and noticed that I was having to juggle files around because of the fact the paths were incorrect in the runtime. It's not that you couldn't get things to work, but the structure wasn't according to the editor, which from my understanding takes precedence for defining the structure the runtime reads from.

Favorlock commented 8 years ago

Is the editor contents intended to be added to the game projects assets folder so that it can be uploaded to a repo with the entire project or is it really intended that you only drag certain contents from the editor project whenever changes are made?

I was thinking that it would be convenient to use a file structure such that the entire editor project contents could be added to the core game project's assets. I'll elaborate with a visual.

content/
- orig/
- - <orig assets>
export/
scenes/
project.dt
project.pit

I think this structure would be good because it could differentiate the assets of the core project from the assets of the editor while still keeping the same structure.

azakhary commented 8 years ago

Will get back on this a bit later, but just to mention - you do not need to copy paste enything, Ctrl+E exports things from editor exporting only things needed. Going forward, we also have internal plugin, that we might share soon, that changes export behaviour to pack things smartly and aim for performance (like pack all animations and fonts and other assets in one pack, to avoid additional render calls)

Favorlock commented 8 years ago

Ah, ok. Going to close this pr for now then.