fredsa / forplay

Automatically exported from code.google.com/p/forplay
Apache License 2.0
12 stars 4 forks source link

Asset manager assumes all resources are local to app - not able to fetch Internet resources #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Asset manager code seems
to be hard coded to pulling in resources from a local source..

What steps will reproduce the problem?
1. Consider the code:

private static final String CLOUDRESOURCES = "http://
commondatastorage.googleapis.com/myresources/";

...
... assetManager().getImage(CLOUDRESOURCES + "my_img.png");

I would get:

[WARN] No file found for: /mylocalgame/http://
commondatastorage.googleapis.com/myresources/myfolder/my_img.png

(mylocalgame is my local app)

What is the expected output? What do you see instead?

Ideally it would be cool if I could fetch resources from the
Internet - such as a cloud storage provider..

Please provide any additional information below.

Original issue reported on code.google.com by csch...@google.com on 28 May 2011 at 6:07

GoogleCodeExporter commented 9 years ago
Makes good sense to me. We'll want to preserve the simplicity of fetching 
bundled resources (especially on platforms like Flash and Android that have a 
native resource bundling structure), as well as those on the local server. But 
there should be an easy way to fetch arbitrary resources (maybe it's the exact 
same API, but with detection of absolute vs. relative URLs).

Original comment by jgw@google.com on 3 Jun 2011 at 2:02