Created
December 3, 2014 20:34
-
-
Save gamebuilderstudio/014cd8aa3106cf04eb92 to your computer and use it in GitHub Desktop.
A class to embed all external assets into a GBs game to make it self contained.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import com.pblabs.engine.resource.ResourceBundle; | |
public class EmbeddedResources extends ResourceBundle | |
{ | |
[Embed(source="levels/GlobalsDescriptor.xml", mimeType="application/octet-stream")] | |
public var globalData : Class; | |
[Embed(source="levels/LevelsDescriptor.xml", mimeType="application/octet-stream")] | |
public var levelDescriptor : Class; | |
//Add All levels below | |
[Embed(source="levels/level0.pbelevel", mimeType="application/octet-stream")] | |
public var level0 : Class; | |
public function EmbeddedResources() | |
{ | |
super(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment