Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sys
- {
- import flash.utils.Endian;
- import flash.utils.ByteArray;
- public class ShitDS {
- [Embed(source = "../res/levels/J2MElvl.001", mimeType = "application/octet-stream")]
- private static var lvl_001:Class;
- [Embed(source = "../res/levels/J2MElvl.002", mimeType = "application/octet-stream")]
- private static var lvl_002:Class;
- [Embed(source = "../res/levels/J2MElvl.003", mimeType = "application/octet-stream")]
- private static var lvl_003:Class;
- [Embed(source = "../res/levels/J2MElvl.004", mimeType = "application/octet-stream")]
- private static var lvl_004:Class;
- [Embed(source = "../res/levels/J2MElvl.005", mimeType = "application/octet-stream")]
- private static var lvl_005:Class;
- [Embed(source = "../res/levels/J2MElvl.006", mimeType = "application/octet-stream")]
- private static var lvl_006:Class;
- [Embed(source = "../res/levels/J2MElvl.007", mimeType = "application/octet-stream")]
- private static var lvl_007:Class;
- [Embed(source = "../res/levels/J2MElvl.008", mimeType = "application/octet-stream")]
- private static var lvl_008:Class;
- [Embed(source = "../res/levels/J2MElvl.009", mimeType = "application/octet-stream")]
- private static var lvl_009:Class;
- [Embed(source = "../res/levels/J2MElvl.010", mimeType = "application/octet-stream")]
- private static var lvl_010:Class;
- [Embed(source = "../res/levels/J2MElvl.011", mimeType = "application/octet-stream")]
- private static var lvl_011:Class;
- [Embed(source = "../res/sounds/pickup.snd", mimeType = "application/octet-stream")]
- private static var snd_pickup:Class;
- [Embed(source = "../res/sounds/pop.snd", mimeType = "application/octet-stream")]
- private static var snd_pop:Class;
- [Embed(source = "../res/sounds/up.snd", mimeType = "application/octet-stream")]
- private static var snd_up:Class;
- [Embed(source = "../res/icons/bouncesplash.png", mimeType = "application/octet-stream")]
- private static var gfx_bouncesplash:Class;
- [Embed(source = "../res/icons/icon.png", mimeType = "application/octet-stream")]
- private static var gfx_icon:Class;
- [Embed(source = "../res/icons/nokiagames.png", mimeType = "application/octet-stream")]
- private static var gfx_nokiagames:Class;
- [Embed(source = "../res/icons/objects_nm.png", mimeType = "application/octet-stream")]
- private static var gfx_objectsnm:Class;
- private static var
- levels:Array = [lvl_001, lvl_002, lvl_003, lvl_004, lvl_005, lvl_006, lvl_007, lvl_008, lvl_009, lvl_010, lvl_011],
- sounds:Array = [snd_pickup, snd_pop, snd_up],
- graphs:Array = [gfx_bouncesplash, gfx_icon, gfx_nokiagames, gfx_objectsnm];
- public static var
- TYPE_LVL:int = 0,
- TYPE_SND:int = 1,
- TYPE_GFX:int = 2;
- public static var
- SND_PICKUP:int = 0,
- SND_POP:int = 1,
- SND_UP:int = 2;
- public static var
- GFX_BOUNCESPLASH:int = 0,
- GFX_ICON:int = 1,
- GFX_NOKIAGAMES:int = 2,
- GFX_OBJECTSNM:int = 3;
- public function ShitDS() { }
- public static function getFile(type:int, num:int):ByteArray {
- var ba:ByteArray;
- switch(type) {
- case TYPE_LVL: new levels[num](); break;
- case TYPE_SND: new sounds[num](); break;
- case TYPE_GFX: new graphs[num](); break;
- }
- ba.endian = Endian.LITTLE_ENDIAN;
- return ba;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement