diff options
| author | The Fuzzy Riolu <[email protected]> | 2018-03-12 11:52:38 -0400 |
|---|---|---|
| committer | The Fuzzy Riolu <[email protected]> | 2018-03-12 12:02:33 -0400 |
| commit | 40d01342d00c57dce5069e53a455db048a2967d5 (patch) | |
| tree | 99e64bed61317a564253e456e2aa45fba3c0c6ec /WatercolorGames.Pong/Assets | |
| parent | cdb0da6c34228a4034dbe179dc268aaded532619 (diff) | |
| download | shiftos-pong-master.tar.gz shiftos-pong-master.tar.bz2 shiftos-pong-master.zip | |
Diffstat (limited to 'WatercolorGames.Pong/Assets')
| -rw-r--r-- | WatercolorGames.Pong/Assets/AboutAssets.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/WatercolorGames.Pong/Assets/AboutAssets.txt b/WatercolorGames.Pong/Assets/AboutAssets.txt new file mode 100644 index 0000000..ee39886 --- /dev/null +++ b/WatercolorGames.Pong/Assets/AboutAssets.txt @@ -0,0 +1,19 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories) and given a Build Action of "AndroidAsset". + +These files will be deployed with you package and will be accessible using Android's +AssetManager, like this: + +public class ReadAsset : Activity +{ + protected override void OnCreate (Bundle bundle) + { + base.OnCreate (bundle); + + InputStream input = Assets.Open ("my_asset.txt"); + } +} + +Additionally, some Android functions will automatically load asset files: + +Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
\ No newline at end of file |
