Delta Engine
»
Support
»
Content
»
File Browser for Player
Joined: 11/19/2013(UTC) Posts: 6 Location: Hamburg
|
Hi all,
for our final Studentproject we want to create something along the lines of Audiosurf for Android:
The player can load a song into the game that gets analyzed using FFT-Algorythm and we dynamically create a level that fits the song (in a general way).
I really would like to use the Delta Engine since it allows us to use our preffered language C# and build for Android for a reasonable price imho.
The only problem I am facing right now is how am I going to let the user choose a musicfile?! I'd like to create a small filebrowser that lets the player browse through his SD-Card to select an MP3, but as of now I have no idea how I can implement this since the ContentLoader pretty much only allows the loading from the internal Content-Folder and its subdirectorys (correct me if I am wrong).
We already have libgdx using Java as our alternative planned but we really would like to use the Delta Engine, hope you can enlighten us. :)
Best Regards Jothaka
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
We do not currently have any predefined way of selecting user files in an app, just has not come up yet. On Windows you would use something like OpenFileDialog or FolderBrowserDialog http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog(v=vs.110).aspxWhich then has to be implemented in a completely different way depending on the platform (probably MacOS/Linux will be fine thanks to Mono). If you are just loading files from the app folder, a simple File.Open and Directory.GetFiles might work (and be converted correctly), but again, we had no usecase for that. We did something like that in v0.9.5, but I would have to check the old source code and see if we still can accomplish the same in the current code base. Supporting a file browser dialog is a different beast and not all platform provide an easy way to do that or are just fundamentally different. Obviously you can also go ahead and just implement the file browser on Android yourself and we help to plug it into your Delta Engine project :) http://custom-android-dn...-explore-in-android.html
|
|
|
|
Joined: 11/19/2013(UTC) Posts: 6 Location: Hamburg
|
Thanks for the answer.
I'll try the methods you mentioned and look if I am comfortable with it. The project is still in pre-production, so I'll probably won't be able to give feedback soon.
|
|
|
|
Delta Engine
»
Support
»
Content
»
File Browser for Player
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.