Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #LD48 | #ludumdare on irc.afternet.org (Info)

Ludum Dare 30 — August 22nd-25th 2014 — Theme: Connected Worlds
  • Compo (Solo+Scratch+Src) Ends: in 1 day, 13 hours, 32 minutes, 47 seconds
  • Jam (Solo and Teams+Relaxed) Ends: in 2 days, 13 hours, 32 minutes, 47 seconds
  • [ Real World Gatherings | Ludum Deals | Warmup Weekend (Games) | MiniLD #53 | Wallpaper (1) (2) (3) | Mailing List ]

    [ Submit/Edit Game | View All Games | My Game ]

    Resource file generator for Actionscript 3

    Posted by (twitter: @jorjongames)
    January 16th, 2012 10:08 am

    Command-line tool that generates a single *.as file containing all the embeds of the folders passed.

    An example of what this tool can make is found here.

    This will help you if you, like me, like to store all your embed on a single “Resources.as” file. Every time I make a couple of assets I don’t want to add them by hand, so I run this application and it’s automatically done and embedded. It also handles *.tff (setting fontName and embedAsCFF=false as optional).



    You can run resmaker -h to get the available list of parameters, but it’s really simple: you specify a bunch of folders where your assets resides (separated by comma), and where is the file Resources.as (will be created), and it will recursively iterate the folders. Remember to use always absolute paths.

    For example, the sample I linked above was done using:

    resmaker c:\Projects\LD22\assets -o c:\Projects\LD22\src\Resources.as

    If you use it, let me know! It was originally made as a Python exercise, but as I found it very useful, I decided to share.

    Download link here.

    Tags: , ,

    Leave a Reply

    You must be logged in to post a comment.

    All posts, images, and comments are owned by their creators.

    [cache: storing page]