1
0
mirror of https://github.com/Melon-Bread/Pet.GB synced 2025-07-04 05:14:37 -04:00

Initial Commit

This commit is contained in:
2016-10-03 20:43:09 -04:00
parent 207929f504
commit db230b8cc8
74 changed files with 4101 additions and 0 deletions

View File

@ -0,0 +1,84 @@
package lime;
import lime.utils.Assets;
class AssetData {
private static var initialized:Bool = false;
public static var library = new #if haxe3 Map <String, #else Hash <#end LibraryType> ();
public static var path = new #if haxe3 Map <String, #else Hash <#end String> ();
public static var type = new #if haxe3 Map <String, #else Hash <#end AssetType> ();
public static function initialize():Void {
if (!initialized) {
path.set ("assets/data/EarlyGameBoy.ttf", "assets/data/EarlyGameBoy.ttf");
type.set ("assets/data/EarlyGameBoy.ttf", Reflect.field (AssetType, "font".toUpperCase ()));
path.set ("assets/icon.png", "assets/icon.png");
type.set ("assets/icon.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/background.png", "assets/images/background.png");
type.set ("assets/images/background.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Cheer.png", "assets/images/Cheer.png");
type.set ("assets/images/Cheer.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Config.png", "assets/images/Config.png");
type.set ("assets/images/Config.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Egg.png", "assets/images/Egg.png");
type.set ("assets/images/Egg.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Egg2.png", "assets/images/Egg2.png");
type.set ("assets/images/Egg2.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Egg3.png", "assets/images/Egg3.png");
type.set ("assets/images/Egg3.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Feed.png", "assets/images/Feed.png");
type.set ("assets/images/Feed.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/HUD_Background.png", "assets/images/HUD_Background.png");
type.set ("assets/images/HUD_Background.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Info.png", "assets/images/Info.png");
type.set ("assets/images/Info.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Player.png", "assets/images/Player.png");
type.set ("assets/images/Player.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Rest.png", "assets/images/Rest.png");
type.set ("assets/images/Rest.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Rest_old.png", "assets/images/Rest_old.png");
type.set ("assets/images/Rest_old.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Scold.png", "assets/images/Scold.png");
type.set ("assets/images/Scold.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/tmp20.png", "assets/images/tmp20.png");
type.set ("assets/images/tmp20.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/tmp32.png", "assets/images/tmp32.png");
type.set ("assets/images/tmp32.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/tmpSelect.png", "assets/images/tmpSelect.png");
type.set ("assets/images/tmpSelect.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Train.png", "assets/images/Train.png");
type.set ("assets/images/Train.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/images/Wipe.png", "assets/images/Wipe.png");
type.set ("assets/images/Wipe.png", Reflect.field (AssetType, "image".toUpperCase ()));
path.set ("assets/music/music-goes-here.txt", "assets/music/music-goes-here.txt");
type.set ("assets/music/music-goes-here.txt", Reflect.field (AssetType, "text".toUpperCase ()));
path.set ("assets/sounds/Next.ogg", "assets/sounds/Next.ogg");
type.set ("assets/sounds/Next.ogg", Reflect.field (AssetType, "sound".toUpperCase ()));
path.set ("assets/sounds/Select.ogg", "assets/sounds/Select.ogg");
type.set ("assets/sounds/Select.ogg", Reflect.field (AssetType, "sound".toUpperCase ()));
path.set ("flixel/sounds/beep.ogg", "flixel/sounds/beep.ogg");
type.set ("flixel/sounds/beep.ogg", Reflect.field (AssetType, "sound".toUpperCase ()));
path.set ("flixel/sounds/flixel.ogg", "flixel/sounds/flixel.ogg");
type.set ("flixel/sounds/flixel.ogg", Reflect.field (AssetType, "sound".toUpperCase ()));
path.set ("flixel/fonts/nokiafc22.ttf", "flixel/fonts/nokiafc22.ttf");
type.set ("flixel/fonts/nokiafc22.ttf", Reflect.field (AssetType, "font".toUpperCase ()));
path.set ("flixel/fonts/monsterrat.ttf", "flixel/fonts/monsterrat.ttf");
type.set ("flixel/fonts/monsterrat.ttf", Reflect.field (AssetType, "font".toUpperCase ()));
path.set ("flixel/images/ui/button.png", "flixel/images/ui/button.png");
type.set ("flixel/images/ui/button.png", Reflect.field (AssetType, "image".toUpperCase ()));
initialized = true;
} //!initialized
} //initialize
} //AssetData